1 4 package gnu.kawa.lispexpr; 5 import gnu.text.Lexer; 6 import gnu.text.SyntaxException; 7 8 public abstract class ReadTableEntry 9 { 10 public static final ReadTableEntry whitespace 11 = new ReaderMisc(ReadTable.WHITESPACE); 12 public static final ReadTableEntry singleEscape 13 = new ReaderMisc(ReadTable.SINGLE_ESCAPE); 14 public static final ReadTableEntry multipleEscape 15 = new ReaderMisc(ReadTable.MULTIPLE_ESCAPE); 16 public static final ReadTableEntry constituent 17 = new ReaderMisc(ReadTable.CONSTITUENT); 18 19 public static ReadTableEntry getWhitespaceInstance() 20 { return whitespace; } 21 public static ReadTableEntry getSingleEscapeInstance() 22 { return singleEscape; } 23 public static ReadTableEntry getMultipleEscapeInstance() 24 { return multipleEscape; } 25 public static ReadTableEntry getDigitInstance() 26 { return constituent; } 27 public static ReadTableEntry getConstituentInstance() 28 { return constituent; } 29 30 public int getKind() 31 { 32 return ReadTable.TERMINATING_MACRO; 33 } 34 35 public Object read (Lexer in, int ch, int count) 36 throws java.io.IOException , SyntaxException 37 { 38 throw new Error ("invalid character"); 39 } 40 41 } 42 | Popular Tags |