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

@@ -0,0 +1,44 @@
#pragma once
#include <ehs/Str.h>
#include <ehs/Types.h>
enum class SymbolType
{
UNKNOWN,
VARIABLE,
FUNCTION,
CLASS,
MEMBER,
METHOD
};
class Symbol
{
private:
SymbolType type;
ehs::UInt_64 id;
ehs::Str_8 name;
ehs::UInt_64 address;
public:
Symbol();
Symbol(const SymbolType &type, ehs::Str_8 name, const ehs::UInt_64 &address);
Symbol(Symbol &&other) noexcept;
Symbol(const Symbol &other);
Symbol &operator=(Symbol &&other) noexcept;
Symbol &operator=(const Symbol &other);
SymbolType GetType() const;
ehs::Str_8 GetName() const;
ehs::UInt_64 GetId() const;
ehs::UInt_64 GetAddress() const;
};