This commit is contained in:
Simon Cruanes 2014-11-04 18:00:04 +01:00
parent 6cc3510d0e
commit aa5af3b0f2

View file

@ -21,11 +21,12 @@ let of_input f =
raise (Syntax_error (-1))
end
| l ->
begin try begin match List.rev_map int_of_string l with
| 0 :: r -> Clause r
| _ -> raise (Syntax_error (-1))
end with
| Invalid_argument _ -> raise (Syntax_error (-1))
begin try
begin match List.rev_map int_of_string l with
| 0 :: r -> Clause r
| _ -> raise (Syntax_error (-1))
end
with Invalid_argument _ -> raise (Syntax_error (-1))
end
let parse_with todo file =