This commit is contained in:
2025-04-27 10:34:53 -07:00
parent 70d35cf0e3
commit ba08245e02
25 changed files with 551 additions and 77 deletions

View File

@@ -2,8 +2,9 @@
#include <ehs/Str.h>
enum class TokenType : ehs::UInt_8
enum class TokenT : ehs::UInt_8
{
UNKNOWN,
VALUE,
KEYWORD,
IDENTIFIER,
@@ -11,16 +12,16 @@ enum class TokenType : ehs::UInt_8
COMPOUND_OPERATOR
};
class Token
class EHS_LIB_IO Token
{
private:
TokenType type;
TokenT type;
ehs::Str_8 value;
public:
Token();
Token(TokenType type, ehs::Str_8 value);
Token(const TokenT &type, ehs::Str_8 value);
Token(Token &&token) noexcept;
@@ -30,7 +31,7 @@ public:
Token &operator=(const Token &token);
TokenType GetType() const;
TokenT GetType() const;
ehs::Str_8 GetValue() const;
};