All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy