Package org.apache.groovy.parser.antlr4.internal
package org.apache.groovy.parser.antlr4.internal
Internal utilities for the ANTLR4 (Parrot) parser: ATN management, friendly
error strategies (
DescriptiveErrorStrategy fail-fast,
RecoveringDescriptiveErrorStrategy multi-error), and related
diagnostics (MissingDelimiterDiagnostic for relocated missing-closer
carets; fallback wording lives on AbstractFriendlyErrorStrategy,
including reserved keywords, a leading ?[ without a path to
attach to, array-creation mistakes, an unclosed type argument, a method
header in a statement position, an unmatched do, enum constants
that need ; before members, and a singleton expected-punctuation
token after optional newlines are ignored). Reporting is one listener
dispatch after locate/refine. Diagnostic helpers run only after
recognition has already failed so they do not affect steady-state parse
performance.-
ClassesClassDescriptionFail-fast parser error strategy with friendly diagnostics (default Parrot mode).Recovering parser error strategy with the same friendly diagnostics as
DescriptiveErrorStrategy.