Package gnu.kawa.lispexpr
Class ReaderParens
- java.lang.Object
-
- gnu.kawa.lispexpr.ReadTableEntry
-
- gnu.kawa.lispexpr.ReaderParens
-
public final class ReaderParens extends ReadTableEntry
-
-
Field Summary
-
Fields inherited from class gnu.kawa.lispexpr.ReadTableEntry
ampersand, brace, constituent, illegal, multipleEscape, singleEscape, whitespace
-
-
Constructor Summary
Constructors Constructor Description ReaderParens(char open, char close, int kind, Object command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReaderParens
getInstance(char open, char close)
static ReaderParens
getInstance(char open, char close, int kind)
static ReaderParens
getInstance(char open, char close, int kind, Object command)
int
getKind()
Object
read(Lexer in, int ch, int count, int sharingIndex)
Read a list (possibly improper) of zero or more Scheme forms.static Object
readList(LispReader lexer, Object last, int ch, int count, int close, int sharingIndex)
-
Methods inherited from class gnu.kawa.lispexpr.ReadTableEntry
getConstituentInstance, getDigitInstance, getIllegalInstance, getMultipleEscapeInstance, getSingleEscapeInstance, getWhitespaceInstance, read
-
-
-
-
Constructor Detail
-
ReaderParens
public ReaderParens(char open, char close, int kind, Object command)
-
-
Method Detail
-
getKind
public int getKind()
- Overrides:
getKind
in classReadTableEntry
-
getInstance
public static ReaderParens getInstance(char open, char close)
-
getInstance
public static ReaderParens getInstance(char open, char close, int kind)
-
getInstance
public static ReaderParens getInstance(char open, char close, int kind, Object command)
-
read
public Object read(Lexer in, int ch, int count, int sharingIndex) throws IOException, SyntaxException
Read a list (possibly improper) of zero or more Scheme forms. Assumes '(' has been read.- Overrides:
read
in classReadTableEntry
- Throws:
IOException
SyntaxException
-
readList
public static Object readList(LispReader lexer, Object last, int ch, int count, int close, int sharingIndex) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
-