1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include "token_type.hpp" #include <string> struct Token { TokenType type; std::string value; int line; int column; Token(TokenType t, const std::string& val, int line, int col) : type{t}, value{val}, line{line}, column{col} {}; };