| 20 | { |
| 21 | |
| 22 | class Error : public std::exception |
| 23 | { |
| 24 | public: |
| 25 | |
| 26 | Error(const char *error, int line, int column); |
| 27 | |
| 28 | ~Error() {} |
| 29 | |
| 30 | const char *what() const noexcept { return m_error.c_str(); } |
| 31 | |
| 32 | private: |
| 33 | std::string m_error; |
| 34 | }; |
| 35 | |
| 36 | |
| 37 | class Node; |