Two rules have the same signature if they have:
same name
same return value
same args
I do a simple string compare now, but later
the type could be pulled out so it is insensitive
to names of args etc...
Set the stream without pushing old stream
RecognitionException constructor comment.
RecognitionException constructor comment.
Specify an object with support code (shared by
Parser and TreeParser.
Specify an object with support code (shared by
Parser and TreeParser.
Specify the type of node to create during tree building
Specify the type of node to create during tree building.
Specify the type of node to create during tree building; use setASTNodeClass now
to be consistent with Token Object Type accessor.
Specify the type of node to create during tree building.
Set the character vocabulary for a lexer
Set the character vocabulary used by the lexer
setFileOption: Associate an option value with a key.
Set the first child of a node.
Set the first child of a node.
Set the first child of a node.
Set a grammar for the code generator to use
Set the grammar for the analyzer
setGrammarOption: Associate an option value with a key.
Set the name of the token manager
Support C++ & C# namespaces (for now).
Set the next sibling after this one.
Set the next sibling after this one.
Set the next sibling after this one.
Set parser options -- performs action on the following options:
Set the token text for this node
Set the token text for this node
Set the token text for this node
Set the token text for this node
Set or change the input token buffer
Specify an "override" for the Java AST object created for a
specific token.
In order to make it so existing subclasses don't break, we won't require
that the antlr.Tool instance be passed as a constructor element.
In order to make it so existing subclasses don't break, we won't require
that the antlr.Tool instance be passed as a constructor element.
Set the token type for this node
Set the token type for this node
Set the token type for this node
Set the token type for this node
User can override to do their own debugging
This method exists so a subclass, namely VAJCodeGenerator,
can open the file in its own evil way.
This method exists so a subclass, namely VAJCodeGenerator,
can open the file in its own evil way.
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
This should NOT be called from anyone other than ParserEventSupport!
A simple stack definition; restrictive in that you cannot
access arbitrary stack elements.
Stderr from executing sub tools
Stdout from executing sub tools
Who do we suck tokens from?
Adapted from JavaWorld article by Michael Daconta
Used to track stack of input streams
General-purpose utility function for removing
characters from back of string
General-purpose utility function for removing
characters from back of string
General-purpose utility function for removing
characters from front of string
General-purpose utility function for removing
characters from front of string
General-purpose utility function for removing
characters from the front and back of string
Is this contained within a?
Subtract the elements of 'a' from 'this' in-place.
if not derived from another grammar, might still specify a non-ANTLR
class to derive from like this "class T extends Parser(MyParserClass);"
Sync up deferred consumption
non-zero if inside syntactic predicate generation
non-zero if inside syntactic predicate generation
non-zero if inside syntactic predicate generation
A portable system command execution routine that logs stdout/stderr
and handles cmd-line wildcards properly.