From b3f83360282bfe327c0ccbeecab706e0e7d2c050 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Mon, 9 Feb 2026 11:59:14 +0000 Subject: Changed .h to .hpp --- include/lexer/token.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/lexer/token.hpp (limited to 'include/lexer/token.hpp') diff --git a/include/lexer/token.hpp b/include/lexer/token.hpp new file mode 100644 index 0000000..86a41f6 --- /dev/null +++ b/include/lexer/token.hpp @@ -0,0 +1,17 @@ +#ifndef TOKEN_H +#define TOKEN_H + +#include "token_type.hpp" + +#include + +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 -- cgit v1.2.3