2025-04-27 10:34:53 -07:00

38 lines
490 B
C++

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