1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "BaseErrorListener.h"
12 class ANTLR4CPP_PUBLIC ConsoleErrorListener : public BaseErrorListener {
15 * Provides a default instance of {@link ConsoleErrorListener}.
17 static ConsoleErrorListener INSTANCE;
23 * This implementation prints messages to {@link System#err} containing the
24 * values of {@code line}, {@code charPositionInLine}, and {@code msg} using
25 * the following format.</p>
28 * line <em>line</em>:<em>charPositionInLine</em> <em>msg</em>
31 virtual void syntaxError(Recognizer *recognizer, Token * offendingSymbol, size_t line, size_t charPositionInLine,
32 const std::string &msg, std::exception_ptr e) override;