Class ToolANTLRParser



  • public class ToolANTLRParser
    extends ANTLRParser
    Override error handling for use with ANTLR tool itself; leaves nothing in grammar associated with Tool so others can use in IDEs, ...
    • Field Detail

      • tool

        public Tool tool
    • Constructor Detail

      • ToolANTLRParser

        public ToolANTLRParser(TokenStream input,
                               Tool tool)
    • Method Detail

      • displayRecognitionError

        public void displayRecognitionError(String[] tokenNames,
                                            RecognitionException e)
      • getParserErrorMessage

        public String getParserErrorMessage(Parser parser,
                                            RecognitionException e)
      • grammarError

        public void grammarError(ErrorType etype,
                                 org.antlr.runtime.Token token,
                                 Object... args)