| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectantlr.Parserantlr.LLkParserpublic class LLkParserextends ParserToken, TokenBufferField Summary | |
(package private) int | |
Fields inherited from class antlr.Parser | |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth | |
Constructor Summary | |
| |
| |
| |
| |
Method Summary | |
int |
|
Token |
|
void |
|
void |
|
void |
|
public void consume()
throws TokenStreamExceptionConsume another token from the input stream. Can only write sequentially! If you need 3 tokens ahead, you must consume() 3 times. 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.