class ErrorStrategyAdaptor extends DefaultErrorStrategy
Adapt ANTLR's DefaultErrorStrategy so that we add error nodes for EOF if reached at start of resync's consumeUntil(). Also set start/stop of missing token to always be the current token, even if that's EOF.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorStrategyAdaptor
- DefaultErrorStrategy
- ANTLRErrorStrategy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ErrorStrategyAdaptor()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def beginErrorCondition(arg0: Parser): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def consumeUntil(recognizer: Parser, set: IntervalSet): Unit
- Attributes
- protected[parser]
- Definition Classes
- ErrorStrategyAdaptor → DefaultErrorStrategy
- Annotations
- @Override()
- def endErrorCondition(arg0: Parser): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def escapeWSAndQuote(arg0: String): String
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getErrorRecoverySet(arg0: Parser): IntervalSet
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def getExpectedTokens(arg0: Parser): IntervalSet
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def getMissingSymbol(recognizer: Parser): Token
By default ANTLR makes the start/stop -1/-1 for invalid tokens which is reasonable but here we want to highlight the current position indicating that is where we lack a token.
By default ANTLR makes the start/stop -1/-1 for invalid tokens which is reasonable but here we want to highlight the current position indicating that is where we lack a token. if no input, highlight at position 0.
- Attributes
- protected[parser]
- Definition Classes
- ErrorStrategyAdaptor → DefaultErrorStrategy
- def getSymbolText(arg0: Token): String
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def getSymbolType(arg0: Token): Int
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def getTokenErrorDisplay(arg0: Token): String
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def inErrorRecoveryMode(arg0: Parser): Boolean
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def recover(arg0: Parser, arg1: RecognitionException): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- def recoverInline(arg0: Parser): Token
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- Annotations
- @throws(classOf[org.antlr.v4.runtime.RecognitionException])
- def reportError(arg0: Parser, arg1: RecognitionException): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- def reportFailedPredicate(arg0: Parser, arg1: FailedPredicateException): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def reportInputMismatch(arg0: Parser, arg1: InputMismatchException): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def reportMatch(arg0: Parser): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- def reportMissingToken(arg0: Parser): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def reportNoViableAlternative(arg0: Parser, arg1: NoViableAltException): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def reportUnwantedToken(arg0: Parser): Unit
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def reset(arg0: Parser): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- def singleTokenDeletion(arg0: Parser): Token
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def singleTokenInsertion(arg0: Parser): Boolean
- Attributes
- protected[v4.runtime]
- Definition Classes
- DefaultErrorStrategy
- def sync(arg0: Parser): Unit
- Definition Classes
- DefaultErrorStrategy → ANTLRErrorStrategy
- Annotations
- @throws(classOf[org.antlr.v4.runtime.RecognitionException])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)