Class ParseErrorLogger

  • All Implemented Interfaces:
    org.antlr.v4.runtime.ANTLRErrorListener

    public class ParseErrorLogger
    extends org.antlr.v4.runtime.BaseErrorListener
    Adapter for ANTLR error listener that logs errors.
    Author:
    Kostiantyn Shchepanovskyi
    • Constructor Detail

      • ParseErrorLogger

        public ParseErrorLogger()
    • Method Detail

      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer,
                                Object offendingSymbol,
                                int line,
                                int charPositionInLine,
                                String msg,
                                org.antlr.v4.runtime.RecognitionException e)
        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
        Overrides:
        syntaxError in class org.antlr.v4.runtime.BaseErrorListener