Some refactoring to update everything to use the new structures and some new considerations for how Symbols and Instructions shoudl be represented.
This commit is contained in:
@@ -8,11 +8,21 @@
|
||||
|
||||
#define SYMBOLSTABLE_DEFAULT_CAPACITY 128
|
||||
|
||||
typedef enum {
|
||||
Data,
|
||||
Address
|
||||
} SymbolType;
|
||||
|
||||
typedef struct {
|
||||
void* Value;
|
||||
char* Name;
|
||||
int Length;
|
||||
int Resolved;
|
||||
|
||||
union {
|
||||
char* Text;
|
||||
int Number;
|
||||
//Instruction Instruction;
|
||||
} Value;
|
||||
} Symbol;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user