gnu.kawa.brl
Class BRLRead

java.lang.Object
  extended by java.io.Reader
      extended by gnu.text.Lexer
          extended by gnu.kawa.lispexpr.LispReader
              extended by gnu.kawa.brl.BRLRead
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class BRLRead
extends LispReader

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


Field Summary
 
Fields inherited from class gnu.kawa.lispexpr.LispReader
finalColonIsKeyword, initialColonIsKeyword, SCM_NUMBERS, seenEscapes, TOKEN_ESCAPE_CHAR
 
Fields inherited from class gnu.text.Lexer
interactive, port, tokenBuffer, tokenBufferLength
 
Fields inherited from class java.io.Reader
lock
 
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()
           
 java.lang.Object readObject()
           
static java.lang.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, 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_quick, skip, tokenBufferAppend, unread_quick, unread, unread
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRLRead

public BRLRead(InPort port)

BRLRead

public BRLRead(InPort port,
               SourceMessages messages)
Method Detail

inLiteral

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


readObject

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

readObject

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

isBrlCompatible

public boolean isBrlCompatible()

setBrlCompatible

public void setBrlCompatible(boolean compat)