Added empty AST node for binops, to prevent build warnings.

master
Rohan Jacob-Rao 9 years ago
parent 264a46f80c
commit e9f1f03aa0

@ -42,6 +42,7 @@ type instr =
| Store of operand * typ * variable
| Alloc of variable * typ * int * int (* return variable, element type,
number of elements, alignment *)
| Binop
type func_def = FuncDef of variable * typ option * (typ * string) list * instr list

@ -195,6 +195,7 @@ instr:
| var = variable EQUALS LOAD tp = ptr_typ ptr = variable { Load (var, tp, ptr) }
| STORE val_tp = typ value = operand COMMA ptr_tp = ptr_typ var = variable { Store (value, val_tp, var) }
(* don't yet know why val_tp and ptr_tp would be different *)
| variable EQUALS binop { Binop }
binop:
| ADD arith_options binop_args { () }

Loading…
Cancel
Save