Petites modifs
This commit is contained in:
parent
d631cd3e93
commit
819ce2d6de
12
main.ml
12
main.ml
@ -112,10 +112,14 @@ if !computetype_option then (
|
|||||||
raise e
|
raise e
|
||||||
)
|
)
|
||||||
in
|
in
|
||||||
begin
|
begin match (computeType [] lambda_term) with
|
||||||
match (computeType [] lambda_term) with
|
| Some t ->
|
||||||
| Some t -> Printf.printf "The type of %s is %s\n" (string_of_lam lambda_term) (string_of_ty t)
|
Printf.printf "The type of %s is %s\n" (string_of_lam lambda_term) (string_of_ty t)
|
||||||
| None -> Printf.printf "λ-term %s cannot be typed ! (Therfore, it has to be either wrong or not closed)\n" (string_of_lam lambda_term)
|
| None -> (
|
||||||
|
Printf.printf
|
||||||
|
"λ-term %s can't be typed! (it is not closed or not typable)\n"
|
||||||
|
(string_of_lam lambda_term)
|
||||||
|
)
|
||||||
end;
|
end;
|
||||||
exit 0
|
exit 0
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user