Updated the parser to handle treating variables as expressions. Updated the symbols table to handle computing the values of variables.

This commit is contained in:
2023-09-07 21:29:58 -05:00
parent 21c2bf046e
commit c95d739e16
3 changed files with 62 additions and 65 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ int TryGetSymbol(const char* name, const SymbolTable* table, Symbol** outSymbol)
Symbol* AddSymbolToTable(const char* name, int address, SymbolTable* table);
void FreeSymbolTable(SymbolTable* table);
void FreeSymbol(Symbol* symbol);
int SymbolResolved(const Symbol* symbol);
int SymbolResolved(const Symbol* symbol, const SymbolTable* table);
int TryGetSymbolValue(const Symbol* symbol, const SymbolTable* table, unsigned short* value);
#endif