Skip to content
Snippets Groups Projects
Commit cab67bd0 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Source code cleanup.

parent 17f971db
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ let rec eval exp =
| (Not, Bool b) -> Bool (not b)
| _ -> raise (Failure "Unknown unary operator")
in
let eval_binop binop = match binop with
let eval_binop = function
(op, Num a, Num b) ->
(* Arithmethic or relational operation is possible on numbers *)
(match op with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment