Trying a more object oriented approach and created an 'Object' struct to have metadata for the values the interpreter works with.

This commit is contained in:
2022-03-08 22:08:06 +00:00
parent 2d587e75b1
commit e802c57a93
4 changed files with 63 additions and 12 deletions
+2
View File
@@ -50,6 +50,8 @@ extern KeyValuePair TokenTypeMappings[TOKENTYPE_MAPPINGS_COUNT];
//If the first parameter is NULL, the token creation will attempt to infer the lexeme from the TokenType.
Token* CreateToken(const char*, void*, int, TokenType);
char* GetTokenStringValue(Token*, int*);
int GetTokenNumberValue(Token*, double*);
void FreeToken(Token*);
#endif