public final class RecoveringDescriptiveErrorStrategy
extends AbstractFriendlyErrorStrategy
Recovering parser error strategy with the same friendly diagnostics as DescriptiveErrorStrategy.
Uses ANTLR's default resync / single-token repair so multiple recognition errors can be reported in one pass (IDE editing). Prefer construction via DescriptiveErrorStrategy.create.
Callers must parse with LL prediction and error listeners installed. Hosts should read diagnostics from ErrorCollector: a partial tree may still fail during AST building after recovery.
| Constructor and description |
|---|
RecoveringDescriptiveErrorStrategy(CharStream charStream)
|
| Methods inherited from class | Name |
|---|---|
class AbstractFriendlyErrorStrategy |
createFailedPredicateErrorMessage, createInputMismatchErrorMessage, createNoViableAlternativeErrorMessage, reportFailedPredicate, reportInputMismatch, reportNoViableAlternative |
charStream - source character stream used for snippet extractionCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.