diff options
Diffstat (limited to 'include/token.hpp')
| -rw-r--r-- | include/token.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
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 <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} {}; +}; |
