#pragma once #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; };