Click or drag to resize

Lexer Properties

The Lexer type exposes the following members.

Properties
  NameDescription
Public propertyBacktrackingLevel (Inherited from BaseRecognizer.)
Public propertyCharIndex
What is the index of the current character of lookahead?
Public propertyCharPositionInLine
Public propertyCharStream
Public propertyFailed
Return whether or not a backtracking attempt failed.
(Inherited from BaseRecognizer.)
Public propertyGrammarFileName
For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.
(Inherited from BaseRecognizer.)
Public propertyLine
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
(Inherited from BaseRecognizer.)
Public propertySourceName (Overrides BaseRecognizerSourceName.)
Public propertyText
Gets or sets the text matched so far for the current token or any text override.
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.
(Inherited from BaseRecognizer.)
Public propertyTraceDestination (Inherited from BaseRecognizer.)
Top
See Also