gnu.q2.lang
Class Q2Read

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

public class Q2Read
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, nesting, port, tokenBuffer, tokenBufferLength
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
Q2Read(InPort port)
           
Q2Read(InPort port, SourceMessages messages)
           
 
Method Summary
 java.lang.Object readCommand()
          Read a "command" - a top-level expression or declaration.
 java.lang.Object readCommand(boolean forceList)
           
static java.lang.Object readObject(InPort port)
           
 
Methods inherited from class gnu.kawa.lispexpr.LispReader
getReadCase, handleToken, lookupUnit, makeNil, makePair, makePair, makeSymbol, parseNumber, readCharacter, readEscape, readEscape, readNestedComment, readNumberWithRadix, readObject, readObject, readSimpleVector, readSpecial, readToken, readValues, readValues, returnSymbol, setCdr
 
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

Q2Read

public Q2Read(InPort port)

Q2Read

public Q2Read(InPort port,
              SourceMessages messages)
Method Detail

readCommand

public java.lang.Object readCommand()
                             throws java.io.IOException,
                                    SyntaxException
Description copied from class: LispReader
Read a "command" - a top-level expression or declaration. Return Sequence.eofValue of end of file.

Overrides:
readCommand in class LispReader
Throws:
java.io.IOException
SyntaxException

readCommand

public java.lang.Object readCommand(boolean forceList)
                             throws java.io.IOException,
                                    SyntaxException
Throws:
java.io.IOException
SyntaxException

readObject

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