Touched up the Scanner. Refactored the Parser some more, this time it's able to be run on simple expressions. String concatenation can be performed by the Parser however, numbers and Booleans are not being stored correctly in the Object structures.

This commit is contained in:
2022-03-15 20:45:06 +00:00
parent d4dd459389
commit 78e07778b1
5 changed files with 85 additions and 18 deletions
+2 -3
View File
@@ -20,8 +20,7 @@ typedef struct Object {
} value;
} Object;
const void* VisitLiteralExpression(Expr*);
void* VisitGroupingExpression(Expr*);
Object* VisitBinaryExpression(Expr*);
void Interpret(Expr*);
void FreeObject(Object*);
#endif