commonMain.at.asitplus.jsonpath.implementation.AntlrSyntaxErrorDetector.kt Maven / Gradle / Ivy
package at.asitplus.jsonpath.implementation
import org.antlr.v4.kotlinruntime.BaseErrorListener
import org.antlr.v4.kotlinruntime.RecognitionException
import org.antlr.v4.kotlinruntime.Recognizer
internal class AntlrSyntaxErrorDetector : BaseErrorListener() {
var isError: Boolean = false
override fun syntaxError(
recognizer: Recognizer<*, *>,
offendingSymbol: Any?,
line: Int,
charPositionInLine: Int,
msg: String,
e: RecognitionException?
) {
isError = true
}
}