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_CHAR
Fields 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 TypeMethodDescriptionboolean
True if in literal text (even if nested inside an escaped expression).boolean
Read a "command" - a top-level expression or declaration.static Object
readObject
(gnu.kawa.io.InPort port) void
setBrlCompatible
(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, validPostfixLookupStart
Methods 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_quick
Methods 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:LispReader
Read a "command" - a top-level expression or declaration. Return Sequence.eofValue at end of file.- Overrides:
readCommand
in classLispReader
- Throws:
IOException
SyntaxException
-
readObject
- Overrides:
readObject
in classLispReader
- Throws:
IOException
SyntaxException
-
readObject
- Throws:
IOException
SyntaxException
-
isBrlCompatible
public boolean isBrlCompatible() -
setBrlCompatible
public void setBrlCompatible(boolean compat)
-