#include <errorhandler.hpp>
Static Public Member Functions | |
void | error (int lineNumber, const std::string &message) |
Checker error handling function. | |
void | error (const std::string &file, const int &line, const int &column, const std::string &msg) |
Parser error handling function. | |
int | getNumErrors () |
Get the total number of errors. | |
Static Private Attributes | |
int | TotalErrors = 0 |
This class has static error functions used by the parser and the checker to report errors.
Definition at line 19 of file errorhandler.hpp.
|
Parser error handling function. Reports error and then returns normally.
Definition at line 46 of file errorhandler.cpp. |
|
Checker error handling function. Reports error and then returns normally. After 5 errors are encountered it quits.
Definition at line 24 of file errorhandler.cpp. |