#include <LLkParser.hpp>
Inheritance diagram for LLkParser:

Public Methods | |
| LLkParser (const ParserSharedInputState &lexer, int k_) | |
| LLkParser (TokenBuffer &tokenBuf, int k_) | |
| LLkParser (TokenStream &lexer, int k_) | |
| virtual void | consume () |
| virtual int | LA (unsigned int i) |
| virtual RefToken | LT (unsigned int i) |
| Return the i-th token of lookahead. | |
| virtual void | traceIn (const char *rname) |
| virtual void | traceOut (const char *rname) |
Protected Attributes | |
| int | k |
| the lookahead this LL(k) parser is using. | |
|
||||||||||||
|
An LL(k) parser.
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
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. Implements Parser. |
|
|
Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet). Implements Parser. |
|
|
Return the i-th token of lookahead.
Implements Parser. |
|
|
Reimplemented from Parser. |
|
|
Reimplemented from Parser. |
|
|
the lookahead this LL(k) parser is using.
|
1.2.18