Method | Description | |
---|---|---|
AntlrLexerBase ( ) : System |
The default constructor.
|
|
AntlrLexerBase ( ICharStream input, Antlr.Runtime.RecognizerSharedState state ) : System |
A simple constructor.
|
|
DisplayRecognitionError ( String tokenNames, |
Logs the given error to the ErrorTracker.
|
|
GetErrorMessage ( |
Generates a human-readable error message for the given error.
|
|
NextToken ( ) : IToken |
This reads the next token from the input. If there is a lexing error, this method inserts an error token containing the bad input, and continues lexing. |
|
ReportError ( |
Reports the given error. This ensures that the error is thrown so that our NextToken() override can handle it. |
public AntlrLexerBase ( ICharStream input, Antlr.Runtime.RecognizerSharedState state ) : System | ||
input | ICharStream | The code to lex. |
state | Antlr.Runtime.RecognizerSharedState | The |
return | System |
public DisplayRecognitionError ( String tokenNames, |
||
tokenNames | String | The names of the tokens in the current language. |
e | The error. | |
return | void |
public GetErrorMessage ( |
||
e | The error. | |
tokenNames | string | The names of the tokens in the current language. |
return | string |
public ReportError ( |
||
e | The error. | |
return | void |