SyntaxErrorStrategy

class SyntaxErrorStrategy : DefaultErrorStrategy

Syntax error strategy

Custom syntax error strategy to override default ANTLR syntax errors.

Constructors

SyntaxErrorStrategy
Link copied to clipboard
fun SyntaxErrorStrategy()
Create empty Syntax error strategy

Functions

beginErrorCondition
Link copied to clipboard
open fun beginErrorCondition(p0: Parser)
consumeUntil
Link copied to clipboard
open fun consumeUntil(p0: Parser, p1: IntervalSet)
endErrorCondition
Link copied to clipboard
open fun endErrorCondition(p0: Parser)
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
escapeWSAndQuote
Link copied to clipboard
open fun escapeWSAndQuote(p0: String): String
getErrorRecoverySet
Link copied to clipboard
open fun getErrorRecoverySet(p0: Parser): IntervalSet
getExpectedTokens
Link copied to clipboard
open fun getExpectedTokens(p0: Parser): IntervalSet
getMissingSymbol
Link copied to clipboard
open fun getMissingSymbol(p0: Parser): Token
getSymbolText
Link copied to clipboard
open fun getSymbolText(p0: Token): String
getSymbolType
Link copied to clipboard
open fun getSymbolType(p0: Token): Int
getTokenErrorDisplay
Link copied to clipboard
open fun getTokenErrorDisplay(p0: Token): String
hashCode
Link copied to clipboard
open fun hashCode(): Int
inErrorRecoveryMode
Link copied to clipboard
open override fun inErrorRecoveryMode(p0: Parser): Boolean
recover
Link copied to clipboard
open override fun recover(p0: Parser, p1: RecognitionException)
recoverInline
Link copied to clipboard
open override fun recoverInline(p0: Parser): Token
reportError
Link copied to clipboard
open override fun reportError(p0: Parser, p1: RecognitionException)
reportMatch
Link copied to clipboard
open override fun reportMatch(p0: Parser)
reset
Link copied to clipboard
open override fun reset(p0: Parser)
singleTokenDeletion
Link copied to clipboard
open fun singleTokenDeletion(p0: Parser): Token
singleTokenInsertion
Link copied to clipboard
open fun singleTokenInsertion(p0: Parser): Boolean
sync
Link copied to clipboard
open override fun sync(p0: Parser)
toString
Link copied to clipboard
open fun toString(): String

Properties

errorRecoveryMode
Link copied to clipboard
val errorRecoveryMode: Boolean
lastErrorIndex
Link copied to clipboard
val lastErrorIndex: Int
lastErrorStates
Link copied to clipboard
val lastErrorStates: IntervalSet