Interface ANTLRErrorStrategy

  • All Known Implementing Classes:
    BailErrorStrategy, DefaultErrorStrategy

    public interface ANTLRErrorStrategy
    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:
    • The parser could not figure out which path to take in the ATN (none of the available alternatives could possibly match)
    • The current input does not match what we were looking for
    • A predicate evaluated to false
    Implementations of this interface report syntax errors by calling Parser.notifyErrorListeners(java.lang.String).

    TODO: what to do about lexers