1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef TOKEN_H #define TOKEN_H #include "token_type.h" #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} {}; }; #endif