gnu.q2.lang
Class Q2Read
java.lang.Object
java.io.Reader
gnu.text.Lexer
gnu.kawa.lispexpr.LispReader
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).
Fields inherited from class java.io.Reader |
lock |
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 |
Q2Read
public Q2Read(InPort port)
Q2Read
public Q2Read(InPort port,
SourceMessages messages)
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