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
public class BRLRead extends LispReader
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
Constructors Constructor Description BRLRead(gnu.kawa.io.InPort port)
BRLRead(gnu.kawa.io.InPort port, SourceMessages messages)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
inLiteral()
True if in literal text (even if nested inside an escaped expression).boolean
isBrlCompatible()
Object
readCommand()
Read a "command" - a top-level expression or declaration.Object
readObject()
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 Detail
-
BRLRead
public BRLRead(gnu.kawa.io.InPort port)
-
BRLRead
public BRLRead(gnu.kawa.io.InPort port, SourceMessages messages)
-
-
Method Detail
-
inLiteral
public boolean inLiteral()
True if in literal text (even if nested inside an escaped expression).
-
readCommand
public Object readCommand() throws IOException, SyntaxException
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
public Object readObject() throws IOException, SyntaxException
- Overrides:
readObject
in classLispReader
- Throws:
IOException
SyntaxException
-
readObject
public static Object readObject(gnu.kawa.io.InPort port) throws IOException, SyntaxException
- Throws:
IOException
SyntaxException
-
isBrlCompatible
public boolean isBrlCompatible()
-
setBrlCompatible
public void setBrlCompatible(boolean compat)
-
-