This commit is contained in:
2025-04-14 00:28:12 -07:00
parent ee8e4d37ff
commit 70d35cf0e3
15 changed files with 236 additions and 4 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <ehs/Str.h>
enum class TokenType : ehs::UInt_8
{
VALUE,
KEYWORD,
IDENTIFIER,
UNARY_OPERATOR,
COMPOUND_OPERATOR
};
class Token
{
private:
TokenType type;
ehs::Str_8 value;
public:
Token();
Token(TokenType type, ehs::Str_8 value);
Token(Token &&token) noexcept;
Token(const Token &token);
Token &operator=(Token &&token) noexcept;
Token &operator=(const Token &token);
TokenType GetType() const;
ehs::Str_8 GetValue() const;
};