Method LexicalError
LexicalError(Boolean, Int32, Int32, Int32, String, Char)
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error.
Declaration
protected static string LexicalError(bool eofSeen, int lexState, int errorLine, int errorColumn, string errorAfter, char curChar)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | eofSeen | indicates if EOF caused the lexical error |
System.Int32 | lexState | lexical state in which this error occurred |
System.Int32 | errorLine | line number when the error occurred |
System.Int32 | errorColumn | column number when the error occurred |
System.String | errorAfter | prefix that was seen before this error occurred |
System.Char | curChar | the offending character |
Returns
Type | Description |
---|---|
System.String | Detailed error message |
Remarks
You can customize the lexical error message by modifying this method.