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:
2022-09-15 22:14:38 -05:00
parent 2ae60a607c
commit 0b58e0124f
5 changed files with 119 additions and 64 deletions
+11 -1
View File
@@ -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 {