TreeParser Properties |
The TreeParser type exposes the following members.
Name | Description | |
---|---|---|
![]() | BacktrackingLevel | (Inherited from BaseRecognizer.) |
![]() | Failed | Return whether or not a backtracking attempt failed. (Inherited from BaseRecognizer.) |
![]() | GrammarFileName |
For debugging and other purposes, might want the grammar name.
Have ANTLR generate an implementation for this method.
(Inherited from BaseRecognizer.) |
![]() | NumberOfSyntaxErrors |
Get number of recognition errors (lexer, parser, tree parser). Each
recognizer tracks its own number. So parser and lexer each have
separate count. Does not count the spurious errors found between
an error and next valid token match
(Inherited from BaseRecognizer.) |
![]() | SourceName | (Overrides BaseRecognizerSourceName.) |
![]() | TokenNames |
Used to print out token names like ID during debugging and
error reporting. The generated parsers implement a method
that overrides this to point to their String[] tokenNames.
(Inherited from BaseRecognizer.) |
![]() | TraceDestination | (Inherited from BaseRecognizer.) |