Click or drag to resize

BaseRecognizer Properties

The BaseRecognizer type exposes the following members.

Properties
  NameDescription
Public propertyBacktrackingLevel
Public propertyFailed
Return whether or not a backtracking attempt failed.
Public propertyGrammarFileName
For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.
Public propertyNumberOfSyntaxErrors
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
Public propertySourceName
Public propertyTokenNames
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.
Public propertyTraceDestination
Top
See Also