gnu.q2.lang

Class Q2Read


public class Q2Read
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

Q2Read(InPort port)
Q2Read(InPort port, SourceMessages messages)

Method Summary

Object
readCommand()
Read a "command" - a top-level expression or declaration.
Object
readCommand(boolean forceList)
static Object
readObject(InPort port)

Methods inherited from class gnu.kawa.lispexpr.LispReader

getReadCase, handleToken, lookupUnit, makeNil, makePair, makePair, makeSymbol, parseNumber, readCharacter, readCommand, 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, skip_quick, tokenBufferAppend, unread, unread, unread_quick

Constructor Details

Q2Read

public Q2Read(InPort port)

Q2Read

public Q2Read(InPort port,
              SourceMessages messages)

Method Details

readCommand

public Object readCommand()
            throws java.io.IOException,
                   SyntaxException
Read a "command" - a top-level expression or declaration. Return Sequence.eofValue of end of file.
Overrides:
readCommand in interface LispReader

readCommand

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

readObject

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