|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of LexicalAnalyzer.TokenType in inf.compilers |
---|
Methods in inf.compilers that return LexicalAnalyzer.TokenType | |
---|---|
static LexicalAnalyzer.TokenType |
LexicalAnalyzer.createTokenType(java.lang.String str)
This function must be called to create a new TokenType that corresponds to a fixed String. |
static LexicalAnalyzer.TokenType |
LexicalAnalyzer.createTokenType(java.lang.String name,
java.lang.String regex)
This function must be called to create a new TokenType that corresponds to a regular expression. |
Methods in inf.compilers with parameters of type LexicalAnalyzer.TokenType | |
---|---|
java.lang.String |
LexicalAnalyzer.getMatchedString(LexicalAnalyzer.TokenType tType)
This function returns the String that has been matched by the previous call to matchesNext(...). |
java.lang.String |
LexicalAnalyzer.ignoreToken(LexicalAnalyzer.TokenType ignorableTT)
This function can be used to ignore comments and/or whitespace. |
boolean |
LexicalAnalyzer.matchesNext(LexicalAnalyzer.TokenType tType)
This function tests whether there is more input to be read for matching from the current Reader and returns true iff a token of the given TokenType can be read next. |
java.lang.String |
LexicalAnalyzer.parseToken(LexicalAnalyzer.TokenType tt,
java.lang.String msg)
This function attempts to parse a token of the given type from this LexicalAnalyzer. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |