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:
+14
-14
@@ -18,24 +18,24 @@
|
||||
// int resolved;
|
||||
// } Symbol;
|
||||
|
||||
typedef struct {
|
||||
Mnemonic Mnemonic;
|
||||
TokenClass ParameterOneType;
|
||||
TokenClass ParameterTwoType;
|
||||
// typedef struct {
|
||||
// Mnemonic Mnemonic;
|
||||
// TokenClass ParameterOneType;
|
||||
// TokenClass ParameterTwoType;
|
||||
|
||||
union {
|
||||
uint16_t Constant;
|
||||
Symbol* Address;
|
||||
} ParameterOne;
|
||||
// union {
|
||||
// uint16_t Constant;
|
||||
// Symbol* Address;
|
||||
// } ParameterOne;
|
||||
|
||||
union {
|
||||
uint16_t Constant;
|
||||
Symbol* Address;
|
||||
} ParameterTwo;
|
||||
} IROpcode;
|
||||
// union {
|
||||
// uint16_t Constant;
|
||||
// Symbol* Address;
|
||||
// } ParameterTwo;
|
||||
// } IROpcode;
|
||||
|
||||
typedef struct {
|
||||
List* Opcodes;
|
||||
List* Instructions;
|
||||
SymbolTable* SymbolsTable;
|
||||
} IRState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user