Expand description
Error handling and recovery
Structs§
- Bail
Error Strategy - This implementation of
ANTLRErrorStrategyresponds to syntax errors by immediately canceling the parse operation with aParseCancellationException. The implementation ensures that theParserRuleContext.exceptionfield is set for all parse tree nodes that were not completed prior to encountering the error. - Default
Error Strategy - This is the default implementation of
ErrorStrategyused for error reporting and recovery in ANTLR parsers. - Parse
Cancelled Error ANTLRError::FallThroughError returnedBailErrorStrategyto bail out from parsing
Traits§
- Error
Strategy - The interface for defining strategies to deal with syntax errors encountered during a parse by ANTLR-generated parsers. We distinguish between three different kinds of errors: