Minor cleanup.

This commit is contained in:
2022-03-03 17:12:01 +00:00
parent d039a26c16
commit caf4f02428
5 changed files with 36 additions and 23 deletions
+2 -7
View File
@@ -24,11 +24,6 @@ struct grouping {
struct Expr* expression;
};
struct literal {
Token* type;
void* object;
};
struct unary {
Token* op;
struct Expr* right;
@@ -39,14 +34,14 @@ struct Expr {
union ex {
struct binary Binary;
struct grouping Grouping;
struct literal Literal;
Token* Literal;
struct unary Unary;
} expression;
};
void VisitBinary(struct binary);
void VisitGrouping(struct grouping);
void VisitLiteral(struct literal);
void VisitLiteral(Token);
void VisitUnary(struct unary);
#endif