antlr
public class LLkParser extends Parser
See Also: Token TokenBuffer
Field Summary | |
---|---|
int | k |
Constructor Summary | |
---|---|
LLkParser(int k_) | |
LLkParser(ParserSharedInputState state, int k_) | |
LLkParser(TokenBuffer tokenBuf, int k_) | |
LLkParser(TokenStream lexer, int k_) |
Method Summary | |
---|---|
void | consume() Consume another token from the input stream. |
int | LA(int i) |
Token | LT(int i) |
void | traceIn(String rname) |
void | traceOut(String rname) |
Note that it is possible to overwrite tokens that have not been matched. For example, calling consume() 3 times when k=2, means that the first token consumed will be overwritten with the 3rd.