diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-02-09 11:59:14 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-02-09 11:59:14 +0000 |
| commit | b3f83360282bfe327c0ccbeecab706e0e7d2c050 (patch) | |
| tree | 1ab29e9ebbf3d3f2fb66f59cbbc687451f8da62e /include/lexer/token.hpp | |
| parent | 26738e6c932038ea309a5dbaa9e941fc1ce144b8 (diff) | |
Changed .h to .hpp
Diffstat (limited to 'include/lexer/token.hpp')
| -rw-r--r-- | include/lexer/token.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 <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 |
