Class SimpleParserTokenManager
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.parser.SimpleParserTokenManager
-
- All Implemented Interfaces:
SimpleParserConstants
public class SimpleParserTokenManager extends Object implements SimpleParserConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
curChar
PrintStream
debugStream
Debug output.protected SimpleCharStream
input_stream
static int[]
jjnewLexState
Lex State array.static String[]
jjstrLiteralImages
Token literal values.static String[]
lexStateNames
Lexer state names.-
Fields inherited from interface it.unimi.di.big.mg4j.query.parser.SimpleParserConstants
ALIGN, AND, ANNO, CLOSE_ENLARGE, CLOSE_PAREN, CLOSE_RANGE, CLOSE_REMAP, CLOSE_WEIGHT, COLON, DEFAULT, EOF, FALSE, HOLE, INTERVAL_SEPARATOR, LEFTARROW, MINUS, NOT, OAND, OPEN_ENLARGE, OPEN_PAREN, OPEN_RANGE, OPEN_REMAP, OPEN_WEIGHT, OR, PLUS, PREFIX, QUOTE, RIGHTARROW, SEMICOLON, SHARP, TILDA, tokenImage, TRUE, WORD
-
-
Constructor Summary
Constructors Constructor Description SimpleParserTokenManager(SimpleCharStream stream)
Constructor.SimpleParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
jjnewLexState
public static final int[] jjnewLexState
Lex State array.
-
input_stream
protected SimpleCharStream input_stream
-
curChar
protected int curChar
-
-
Constructor Detail
-
SimpleParserTokenManager
public SimpleParserTokenManager(SimpleCharStream stream)
Constructor.
-
SimpleParserTokenManager
public SimpleParserTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(PrintStream ds)
Set debug output.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
ReInit
public void ReInit(SimpleCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
-