01: // Copyright (c) 2001 Per M.A. Bothner
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.kawa.lispexpr;
05:
06: import gnu.text.Lexer;
07: import gnu.text.SyntaxException;
08:
09: public abstract class ReadTableEntry {
10: public static final ReadTableEntry whitespace = new ReaderMisc(
11: ReadTable.WHITESPACE);
12: public static final ReadTableEntry singleEscape = new ReaderMisc(
13: ReadTable.SINGLE_ESCAPE);
14: public static final ReadTableEntry multipleEscape = new ReaderMisc(
15: ReadTable.MULTIPLE_ESCAPE);
16: public static final ReadTableEntry constituent = new ReaderMisc(
17: ReadTable.CONSTITUENT);
18:
19: public static ReadTableEntry getWhitespaceInstance() {
20: return whitespace;
21: }
22:
23: public static ReadTableEntry getSingleEscapeInstance() {
24: return singleEscape;
25: }
26:
27: public static ReadTableEntry getMultipleEscapeInstance() {
28: return multipleEscape;
29: }
30:
31: public static ReadTableEntry getDigitInstance() {
32: return constituent;
33: }
34:
35: public static ReadTableEntry getConstituentInstance() {
36: return constituent;
37: }
38:
39: public int getKind() {
40: return ReadTable.TERMINATING_MACRO;
41: }
42:
43: public Object read(Lexer in, int ch, int count)
44: throws java.io.IOException, SyntaxException {
45: throw new Error("invalid character");
46: }
47:
48: }
|