From 5c1f937a7eb7a9cc9cd86cb69b3263f41f24408f Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Sun, 22 Feb 2026 22:24:27 +0000 Subject: Partially completed lots of changes, refactoring most of the files --- include/token.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/token.hpp (limited to 'include/token.hpp') diff --git a/include/token.hpp b/include/token.hpp new file mode 100644 index 0000000..d85ba94 --- /dev/null +++ b/include/token.hpp @@ -0,0 +1,14 @@ +#pragma once + +#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} {}; +}; -- cgit v1.2.3