#ifndef ERROR_HANDLER_HH #define ERROR_HANDLER_HH #include struct ErrorHandler { ErrorHandler() : had_error{false} {}; void error(int line, const std::string &message); void report(int line, const std::string &where, const std::string &message); bool had_error; }; #endif