TorqueScript  0.2
parsererrorlistener.hpp
1 
15 #pragma once
16 
17 #include <string>
18 #include <stdexcept>
19 
20 #include "antlr4-runtime.h"
21 
22 namespace TorqueScript
23 {
24  class ParserErrorListener : public antlr4::BaseErrorListener
25  {
26  public:
27  virtual void syntaxError(antlr4::Recognizer* recognizer, antlr4::Token* offendingSymbol, size_t line, size_t charPositionInLine, const std::string& msg, std::exception_ptr e) override;
28  const std::vector<std::string>& getErrors();
29 
30  private:
31  std::vector<std::string> mErrors;
32  };
33 }
Definition: parsererrorlistener.hpp:25
Definition: ast.hpp:28