Abort the processing of a grammar due to syntax errors
Abort the processing of a grammar (due to syntax errors)
Perform the following translations:
AST related translations
## -> currentRule_AST
#(x,y,z) -> codeGenerator.getASTCreateString(vector-of(x,y,z))
#[x] -> codeGenerator.getASTCreateString(x)
#x -> codeGenerator.mapTreeId(x)
Inside context of #(...), you can ref (x,y,z), [x], and x as shortcuts.
Perform the following translations:
AST related translations
## -> currentRule_AST
#(x,y,z) -> codeGenerator.getASTCreateString(vector-of(x,y,z))
#[x] -> codeGenerator.getASTCreateString(x)
#x -> codeGenerator.mapTreeId(x)
Inside context of #(...), you can ref (x,y,z), [x], and x as shortcuts.
Perform the following translations:
AST related translations
## -> currentRule_AST
#(x,y,z) -> codeGenerator.getASTCreateString(vector-of(x,y,z))
#[x] -> codeGenerator.getASTCreateString(x)
#x -> codeGenerator.mapTreeId(x)
Inside context of #(...), you can ref (x,y,z), [x], and x as shortcuts.
This class contains information about how an action
was translated (using the AST conversion rules).
or this element into this set (grow as necessary to accommodate)
Add an object to the end of the list.
Add a child to the current AST
Add a (rightmost) child to this node
Add a (rightmost) child to this node
Add a node to the end of the child list for this node
This adds LT(1) to the current parse subtree.
Adds a semantic predicate string to the sem pred vector
These strings will be used to build an array of sem pred names
when building a debugging parser.
Adds a semantic predicate string to the sem pred vector
These strings will be used to build an array of sem pred names
when building a debugging parser.
Adds a semantic predicate string to the sem pred vector
These strings will be used to build an array of sem pred names
when building a debugging parser.
If op.index > lastRewriteTokenIndexes, just add to the end.
Make sure that child is the last sibling
Intermediate data class holds information about an alternative
Return true if someone used the '.' wildcard default idiom.
Simple class that uses build.Tool to compile ANTLR's Java stuff
Run ANTLR on a grammar file, leaving the output in the directory of the
grammar file.
ANTLRError constructor comment.
ANTLRError constructor comment.
Simple lexer/parser for reading token definition files
in support of the import/export vocab option for grammars.
Add token to end of the queue
Add token to end of the queue
Append an object to the end of the list.
args - field in class antlr.preprocessor.
Rule args - field in class antlr.preprocessor.
Tool AST - interface antlr.collections.
AST Minimal AST node interface used by ANTLR AST generation
and tree-walker.
ASTArray is a class that allows ANTLR to
generate code that can create and initialize an array
in one expression, like:
(new ASTArray(3)).add(x).add(y).add(z)
AST Support code shared by TreeParser and Parser.
AST support code; parser delegates to this object.
AST support code; parser and treeparser delegate to this object
Create factory with a specific mapping from token type
to Java AST node type.
Set to type of AST node to create during parse.
Set to a value in the tokens {...} section
The AST Null object; the parsing cursor is set to this when
it is found to be null.
There is only one instance of this class *
ASTPair: utility class used for manipulating a pair of ASTs
representing the current AST root and current AST sibling.