BaseRecognizerReportError Method |
Report a recognition problem.
Namespace:
Stimulsoft.Data.Expressions.Antlr.Runtime
Assembly:
Stimulsoft.Data (in Stimulsoft.Data.dll) Version: 2019.3.1.0
Syntaxpublic virtual void ReportError(
RecognitionException e
)
Public Overridable Sub ReportError (
e As RecognitionException
)
Parameters
- e
- Type: Stimulsoft.Data.Expressions.Antlr.RuntimeRecognitionException
[Missing <param name="e"/> documentation for "M:Stimulsoft.Data.Expressions.Antlr.Runtime.BaseRecognizer.ReportError(Stimulsoft.Data.Expressions.Antlr.Runtime.RecognitionException)"]
Remarks
This method sets errorRecovery to indicate the parser is recovering
not parsing. Once in recovery mode, no errors are generated.
To get out of recovery mode, the parser must successfully match
a token (after a resync). So it will go:
1. error occurs
2. enter recovery mode, report error
3. consume until token found in resynch set
4. try to resume parsing
5. next match() will reset errorRecovery mode
If you override, make sure to update syntaxErrors if you care about that.
See Also