LA(int i) 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).
getTokenTypeToASTClassMap() If the user specifies a tokens{} section with heterogeneous
AST node types, then ANTLR generates code to fill
this mapping.
match(int t) Make sure current lookahead symbol matches token type t.
public void
match(BitSet b) Make sure current lookahead symbol matches the given set
Throw an exception upon mismatch, which is catch by either the
error handler or by the syntactic predicate.
setASTNodeType(String nodeType) Specify the type of node to create during tree building; use setASTNodeClass now
to be consistent with Token Object Type accessor.
AST support code; parser delegates to this object.
This is set during parser construction by default
to either "new ASTFactory()" or a ctor that
has a token type to class map for hetero nodes.
Make sure current lookahead symbol matches token type t.
Throw an exception upon mismatch, which is catch by either the
error handler or by the syntactic predicate.
Make sure current lookahead symbol matches the given set
Throw an exception upon mismatch, which is catch by either the
error handler or by the syntactic predicate.