File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ static Expr* unary() {
6161 if (match (TOKEN_MINUS )) {
6262 Expr * expr = malloc (sizeof (Expr ));
6363 expr -> type = EXPR_UNARY ;
64- expr -> unary .op = parser .previous ;
65- expr -> unary .right = unary ();
64+ expr -> data . unary .op = parser .previous ;
65+ expr -> data . unary .right = unary ();
6666 return expr ;
6767 }
6868 return primary ();
@@ -88,9 +88,9 @@ static Expr* binary() {
8888 Expr * right = unary ();
8989 Expr * new_expr = malloc (sizeof (Expr ));
9090 new_expr -> type = EXPR_BINARY ;
91- new_expr -> binary .left = expr ;
92- new_expr -> binary .op = operator ;
93- new_expr -> binary .right = right ;
91+ new_expr -> data . binary .left = expr ;
92+ new_expr -> data . binary .op = operator ;
93+ new_expr -> data . binary .right = right ;
9494 expr = new_expr ;
9595 break ;
9696 default :
You can’t perform that action at this time.
0 commit comments