public class Q2Read extends LispReader
Modifier and Type | Field and Description |
---|---|
static ReaderExtendedLiteral |
braces |
static Symbol |
wordSym |
SCM_ANGLE, SCM_COLATITUDE, SCM_LEXPONENT_IS_BIGDECIMAL, SCM_NUMBERS, seenEscapes, symbolReadCase, TOKEN_ESCAPE_CHAR
nesting, port, tentative, tokenBuffer, tokenBufferLength
Constructor and Description |
---|
Q2Read(gnu.kawa.io.InPort port) |
Q2Read(gnu.kawa.io.InPort port,
SourceMessages messages) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
handlePostfix(java.lang.Object value,
ReadTable rtable,
int line,
int column)
After reading a value check for following
'[' or ':' . |
protected boolean |
isTerminatingChar(int ch,
ReadTable rtable) |
java.lang.Object |
readCommand()
Read a "command" - a top-level expression or declaration.
|
static java.lang.Object |
readObject(gnu.kawa.io.InPort port) |
Pair |
readValuesAndAppend(int ch,
ReadTable rtable,
Pair last) |
bindSharedObject, checkEncodingSpec, getReadCase, handleToken, makeNil, makePair, makePair, makePair, makePair2, parseNumber, parseNumber, readAndHandleToken, readCharacter, readEscape, readEscape, readGeneralArray, readHexEscape, readNestedComment, readNumberWithRadix, readObject, readObject, readObject, readSpecial, readTokenString, readValues, readValues, setCar, setCar, setCdr, setReadCase, setReturnMutablePairs, validPostfixLookupStart
checkErrors, checkNext, clearErrors, close, eofError, eofError, error, error, error, fatal, getColumnNumber, getErrors, getLineNumber, getMessages, getName, getPort, isInteractive, isTentative, mark, peek, popNesting, pushNesting, read, read, readCodePoint, readDelimited, readDigits, readDigitsInBuffer, readIntDigits, readOptionalExponent, readUnicodeChar, reset, seenErrors, setInteractive, setMessages, setTentative, skip_quick, skip, tokenBufferAppend, tokenBufferString, unread_quick, unread, unread
public static Symbol wordSym
public static final ReaderExtendedLiteral braces
public Q2Read(gnu.kawa.io.InPort port)
public Q2Read(gnu.kawa.io.InPort port, SourceMessages messages)
public Pair readValuesAndAppend(int ch, ReadTable rtable, Pair last) throws java.io.IOException, SyntaxException
readValuesAndAppend
in class LispReader
java.io.IOException
SyntaxException
public java.lang.Object readCommand() throws java.io.IOException, SyntaxException
LispReader
readCommand
in class LispReader
java.io.IOException
SyntaxException
protected boolean isTerminatingChar(int ch, ReadTable rtable) throws java.io.IOException, SyntaxException
isTerminatingChar
in class LispReader
java.io.IOException
SyntaxException
protected java.lang.Object handlePostfix(java.lang.Object value, ReadTable rtable, int line, int column) throws java.io.IOException, SyntaxException
LispReader
'['
or ':'
.handlePostfix
in class LispReader
java.io.IOException
SyntaxException
public static java.lang.Object readObject(gnu.kawa.io.InPort port) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException