Expand description
Error handling and recovery
Structs§
- Bail
Error Strategy - This implementation of
ANTLRErrorStrategy
responds to syntax errors by immediately canceling the parse operation with aParseCancellationException
. The implementation ensures that theParserRuleContext.exception
field 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
ErrorStrategy
used for error reporting and recovery in ANTLR parsers. - Parse
Cancelled Error ANTLRError::FallThrough
Error returnedBailErrorStrategy
to 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: