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:
@@ -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
|
||||
Reference in New Issue
Block a user