Class MorParserErrorStrategy
java.lang.Object
org.antlr.v4.runtime.DefaultErrorStrategy
ca.phon.orthography.mor.parser.MorParserErrorStrategy
- All Implemented Interfaces:
org.antlr.v4.runtime.ANTLRErrorStrategy
public class MorParserErrorStrategy
extends org.antlr.v4.runtime.DefaultErrorStrategy
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.DefaultErrorStrategy
errorRecoveryMode, lastErrorIndex, lastErrorStates, nextTokensContext, nextTokensState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
recover
(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e) org.antlr.v4.runtime.Token
recoverInline
(org.antlr.v4.runtime.Parser recognizer) protected void
reportInputMismatch
(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.InputMismatchException e) protected void
reportMissingToken
(org.antlr.v4.runtime.Parser recognizer) protected void
reportNoViableAlternative
(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.NoViableAltException e) protected void
reportUnwantedToken
(org.antlr.v4.runtime.Parser recognizer) Methods inherited from class org.antlr.v4.runtime.DefaultErrorStrategy
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, reportError, reportFailedPredicate, reportMatch, reset, singleTokenDeletion, singleTokenInsertion, sync
-
Constructor Details
-
MorParserErrorStrategy
public MorParserErrorStrategy()
-
-
Method Details
-
recover
public void recover(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.RecognitionException e) - Specified by:
recover
in interfaceorg.antlr.v4.runtime.ANTLRErrorStrategy
- Overrides:
recover
in classorg.antlr.v4.runtime.DefaultErrorStrategy
-
reportNoViableAlternative
protected void reportNoViableAlternative(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.NoViableAltException e) - Overrides:
reportNoViableAlternative
in classorg.antlr.v4.runtime.DefaultErrorStrategy
-
reportInputMismatch
protected void reportInputMismatch(org.antlr.v4.runtime.Parser recognizer, org.antlr.v4.runtime.InputMismatchException e) - Overrides:
reportInputMismatch
in classorg.antlr.v4.runtime.DefaultErrorStrategy
-
reportUnwantedToken
protected void reportUnwantedToken(org.antlr.v4.runtime.Parser recognizer) - Overrides:
reportUnwantedToken
in classorg.antlr.v4.runtime.DefaultErrorStrategy
-
reportMissingToken
protected void reportMissingToken(org.antlr.v4.runtime.Parser recognizer) - Overrides:
reportMissingToken
in classorg.antlr.v4.runtime.DefaultErrorStrategy
-
recoverInline
public org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer) throws org.antlr.v4.runtime.RecognitionException - Specified by:
recoverInline
in interfaceorg.antlr.v4.runtime.ANTLRErrorStrategy
- Overrides:
recoverInline
in classorg.antlr.v4.runtime.DefaultErrorStrategy
- Throws:
org.antlr.v4.runtime.RecognitionException
-