public class CSSErrorStrategy
extends org.antlr.v4.runtime.DefaultErrorStrategy
| Constructor and Description |
|---|
CSSErrorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeUntil(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow,
CSSLexerState.RecoveryMode mode,
CSSLexerState ls)
Consumes token until lexer state is function-balanced and
token from follow is matched.
|
protected void |
consumeUntilGreedy(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow)
Consumes token until lexer state is balanced and
token from follow is matched.
|
protected void |
consumeUntilGreedy(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet set,
CSSLexerState.RecoveryMode mode)
Consumes token until lexer state is function-balanced and
token from follow is matched.
|
org.antlr.v4.runtime.Token |
recoverInline(org.antlr.v4.runtime.Parser recognizer)
throws RecognitionException to handle in parser's catch block
|
void |
sync(org.antlr.v4.runtime.Parser recognizer) |
beginErrorCondition, consumeUntil, endErrorCondition, escapeWSAndQuote, getErrorRecoverySet, getExpectedTokens, getMissingSymbol, getSymbolText, getSymbolType, getTokenErrorDisplay, inErrorRecoveryMode, recover, 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.RecognitionExceptionpublic org.antlr.v4.runtime.Token recoverInline(org.antlr.v4.runtime.Parser recognizer)
throws org.antlr.v4.runtime.RecognitionException
recoverInline in interface org.antlr.v4.runtime.ANTLRErrorStrategyrecoverInline in class org.antlr.v4.runtime.DefaultErrorStrategyorg.antlr.v4.runtime.RecognitionExceptionprotected void consumeUntilGreedy(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow)
protected void consumeUntilGreedy(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet set,
CSSLexerState.RecoveryMode mode)
public void consumeUntil(org.antlr.v4.runtime.Parser recognizer,
org.antlr.v4.runtime.misc.IntervalSet follow,
CSSLexerState.RecoveryMode mode,
CSSLexerState ls)
Copyright © 2018. All rights reserved.