|
@@ -107,7 +107,7 @@ let eval node =
|
|
|
|
|
|
|
|
(* Binop - logical *)
|
|
(* Binop - logical *)
|
|
|
| Binop (And, Const (BoolVal left, _), Const (BoolVal right, _), ann) ->
|
|
| Binop (And, Const (BoolVal left, _), Const (BoolVal right, _), ann) ->
|
|
|
- Const (BoolVal (left & right), ann)
|
|
|
|
|
|
|
+ Const (BoolVal (left && right), ann)
|
|
|
| Binop (Or, Const (BoolVal left, _), Const (BoolVal right, _), ann) ->
|
|
| Binop (Or, Const (BoolVal left, _), Const (BoolVal right, _), ann) ->
|
|
|
Const (BoolVal (left || right), ann)
|
|
Const (BoolVal (left || right), ann)
|
|
|
|
|
|