Package gnu.kawa.brl
Class BRLRead
java.lang.Object
java.io.Reader
gnu.text.Lexer
gnu.kawa.lispexpr.LispReader
gnu.kawa.brl.BRLRead
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
A class to read Scheme forms (S-expressions).
-
Field Summary
Fields inherited from class gnu.kawa.lispexpr.LispReader
SCM_ANGLE, SCM_COLATITUDE, SCM_LEXPONENT_IS_BIGDECIMAL, SCM_NUMBERS, seenEscapes, symbolReadCase, TOKEN_ESCAPE_CHARFields inherited from class gnu.text.Lexer
port, tentative, tokenBuffer, tokenBufferLength -
Constructor Summary
ConstructorsConstructorDescriptionBRLRead(gnu.kawa.io.InPort port) BRLRead(gnu.kawa.io.InPort port, SourceMessages messages) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if in literal text (even if nested inside an escaped expression).booleanRead a "command" - a top-level expression or declaration.static ObjectreadObject(gnu.kawa.io.InPort port) voidsetBrlCompatible(boolean compat) Methods inherited from class gnu.kawa.lispexpr.LispReader
bindSharedObject, checkEncodingSpec, getReadCase, handlePostfix, handleToken, isTerminatingChar, makeNil, makePair, makePair, makePair, makePair2, parseNumber, parseNumber, readAndHandleToken, readCharacter, readEscape, readEscape, readGeneralArray, readHexEscape, readNestedComment, readNumberWithRadix, readObject, readObject, readSpecial, readTokenString, readValues, readValues, readValuesAndAppend, setCar, setCar, setCdr, setReadCase, setReturnMutablePairs, validPostfixLookupStartMethods inherited from class gnu.text.Lexer
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, skip_quick, tokenBufferAppend, tokenBufferString, unread, unread, unread_quickMethods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, skip, transferTo
-
Constructor Details
-
BRLRead
public BRLRead(gnu.kawa.io.InPort port) -
BRLRead
-
-
Method Details
-
inLiteral
public boolean inLiteral()True if in literal text (even if nested inside an escaped expression). -
readCommand
Description copied from class:LispReaderRead a "command" - a top-level expression or declaration. Return Sequence.eofValue at end of file.- Overrides:
readCommandin classLispReader- Throws:
IOExceptionSyntaxException
-
readObject
- Overrides:
readObjectin classLispReader- Throws:
IOExceptionSyntaxException
-
readObject
- Throws:
IOExceptionSyntaxException
-
isBrlCompatible
public boolean isBrlCompatible() -
setBrlCompatible
public void setBrlCompatible(boolean compat)
-