public class Lexer extends Lexer
Modifier and Type | Field and Description |
---|---|
static Char |
colonToken |
static Char |
commaToken |
static Char |
condToken |
static Char |
dotToken |
static Reserved |
elseToken |
static java.lang.Object |
eofToken |
static java.lang.Object |
eolToken |
static Char |
equalToken |
static Char |
lbraceToken |
static Char |
lbracketToken |
static Char |
lparenToken |
static Reserved |
newToken |
static Char |
notToken |
static Char |
rbraceToken |
static Char |
rbracketToken |
static Char |
rparenToken |
static Char |
semicolonToken |
static Char |
tildeToken |
nesting, port, tentative, tokenBuffer, tokenBufferLength
Constructor and Description |
---|
Lexer(gnu.kawa.io.InPort port) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
checkReserved(java.lang.String name) |
java.lang.String |
getIdentifier(int ch) |
java.lang.Double |
getNumericLiteral(int c) |
java.lang.String |
getStringLiteral(char quote) |
java.lang.Object |
getToken()
Returns the next token.
|
static java.lang.Object |
getToken(gnu.kawa.io.InPort inp) |
static void |
main(java.lang.String[] args) |
java.lang.Object |
maybeAssignment(java.lang.Object token) |
checkErrors, checkNext, clearErrors, close, eofError, eofError, error, error, error, fatal, getColumnNumber, getErrors, getLineNumber, getMessages, getName, getPort, isInteractive, isTentative, mark, peek, popNesting, pushNesting, read, read, readCodePoint, readDelimited, readDigits, readDigitsInBuffer, readIntDigits, readOptionalExponent, readUnicodeChar, reset, seenErrors, setInteractive, setMessages, setTentative, skip_quick, skip, tokenBufferAppend, tokenBufferString, unread_quick, unread, unread
public static final Char lparenToken
public static final Char rparenToken
public static final Char lbraceToken
public static final Char rbraceToken
public static final Char lbracketToken
public static final Char rbracketToken
public static final Char dotToken
public static final Char condToken
public static final Char commaToken
public static final Char colonToken
public static final Char equalToken
public static final Char tildeToken
public static final Char notToken
public static final Char semicolonToken
public static final java.lang.Object eolToken
public static final java.lang.Object eofToken
public static final Reserved elseToken
public static final Reserved newToken
public static java.lang.Object checkReserved(java.lang.String name)
public java.lang.Double getNumericLiteral(int c) throws java.io.IOException
java.io.IOException
public java.lang.String getStringLiteral(char quote) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public java.lang.String getIdentifier(int ch) throws java.io.IOException
java.io.IOException
public java.lang.Object maybeAssignment(java.lang.Object token) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public java.lang.Object getToken() throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public static java.lang.Object getToken(gnu.kawa.io.InPort inp) throws java.io.IOException, SyntaxException
java.io.IOException
SyntaxException
public static void main(java.lang.String[] args)