public final class AdvancedErrorStrategy
extends org.antlr.v4.runtime.DefaultErrorStrategy
Override sync method,when failed matching, try again with ID.
| Constructor and Description |
|---|
AdvancedErrorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
sync(org.antlr.v4.runtime.Parser recognizer) |
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, recover, recoverInline, reportError, reportFailedPredicate, reportInputMismatch, reportMatch, reportMissingToken, reportNoViableAlternative, reportUnwantedToken, reset, singleTokenDeletion, singleTokenInsertionpublic void sync(org.antlr.v4.runtime.Parser recognizer)
throws org.antlr.v4.runtime.RecognitionException
sync in interface org.antlr.v4.runtime.ANTLRErrorStrategysync in class org.antlr.v4.runtime.DefaultErrorStrategyorg.antlr.v4.runtime.RecognitionExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.