DynGenPar
Dynamic Generalized Parser
|
Public Member Functions | |
ListTokenSource () | |
virtual | ~ListTokenSource () |
virtual bool | rewindTo (int pos, const LexerState &=LexerState()) |
overridden because lists can be rewound More... | |
Public Member Functions inherited from DynGenPar::TokenSource | |
TokenSource () | |
virtual | ~TokenSource () |
Cat | nextToken () |
get the next token from the input, increment current position, save parse tree More... | |
Node | parseTree () |
get the parse tree for the last shifted token More... | |
virtual bool | matchParseTree (const Node &treeToMatch) |
match the parse tree for the last shifted token against the given tree More... | |
int | currentPosition () |
get the current input position More... | |
bool | rewindTo (int pos, const Node &parseTree, const LexerState &lexerState=LexerState()) |
rewind to an older position (requires buffering) and restore the parse tree (needed for lookahead) More... | |
virtual LexerState | saveState () |
saves the current lexer state, by default a null LexerState More... | |
Public Attributes | |
QList< Cat > | inputTokens |
Protected Member Functions | |
virtual Cat | readToken () |
just fetch the next token from the list More... | |
Protected Member Functions inherited from DynGenPar::TokenSource | |
bool | simpleRewind (int pos, bool rewindOnly=false) |
basic implementation of rewindTo for subclasses which support it More... | |
Additional Inherited Members | |
Protected Attributes inherited from DynGenPar::TokenSource | |
int | currPos |
Node | tree |
sub-parse-tree for hierarchical parsing More... | |
Definition at line 906 of file dyngenpar.h.
|
inline |
Definition at line 908 of file dyngenpar.h.
|
inlinevirtual |
Definition at line 909 of file dyngenpar.h.
|
inlineprotectedvirtual |
just fetch the next token from the list
Implements DynGenPar::TokenSource.
Definition at line 917 of file dyngenpar.h.
|
inlinevirtual |
overridden because lists can be rewound
Reimplemented from DynGenPar::TokenSource.
Definition at line 912 of file dyngenpar.h.
Definition at line 910 of file dyngenpar.h.