Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
antlr.Parser
antlr.LLkParser
public class LLkParser
extends Parser
Token
, TokenBuffer
Field 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 TokenStreamException
Consume 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.