gnu.kawa.brl

Class BRLRead


public class BRLRead
extends LispReader

A class to read Scheme forms (S-expressions).

Field Summary

Fields inherited from class gnu.kawa.lispexpr.LispReader

SCM_NUMBERS, TOKEN_ESCAPE_CHAR, finalColonIsKeyword, initialColonIsKeyword, seenEscapes

Fields inherited from class gnu.text.Lexer

interactive, nesting, port, tokenBuffer, tokenBufferLength

Constructor Summary

BRLRead(InPort port)
BRLRead(InPort port, SourceMessages messages)

Method Summary

boolean
inLiteral()
True if in literal text (even if nested inside an escaped expression).
boolean
isBrlCompatible()
Object
readObject()
static Object
readObject(InPort port)
void
setBrlCompatible(boolean compat)

Methods inherited from class gnu.kawa.lispexpr.LispReader

handleToken, lookupUnit, makeNil, makePair, makePair, parseNumber, readCharacter, readCommand, readEscape, readEscape, readNestedComment, readNumberWithRadix, readObject, readObject, readSimpleVector, readSpecial, readValues, readValues, returnSymbol, setCdr, 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, mark, peek, popNesting, pushNesting, read, read, readDigitsInBuffer, readOptionalExponent, reset, seenErrors, setInteractive, setMessages, skip, skip_quick, tokenBufferAppend, unread, unread, unread_quick

Constructor Details

BRLRead

public BRLRead(InPort port)

BRLRead

public BRLRead(InPort port,
               SourceMessages messages)

Method Details

inLiteral

public boolean inLiteral()
True if in literal text (even if nested inside an escaped expression).

isBrlCompatible

public boolean isBrlCompatible()

readObject

public Object readObject()
            throws java.io.IOException,
                   SyntaxException
Overrides:
readObject in interface LispReader

readObject

public static Object readObject(InPort port)
            throws java.io.IOException,
                   SyntaxException

setBrlCompatible

public void setBrlCompatible(boolean compat)