summaryrefslogtreecommitdiff
path: root/src/main.ml
diff options
context:
space:
mode:
authorKathy Gray2014-01-17 19:53:33 +0000
committerKathy Gray2014-01-17 19:53:46 +0000
commit9ee67ed106808b5e82d5942e4d782fbf8cd133cd (patch)
tree60e32496edc0d49ba99d68739db52c375cdad16c /src/main.ml
parent828f19828e41ced146f06e9a7eb4183cd9ef3ab4 (diff)
Type check through type definitions and val specifications, building definition environment. Skipping function definition, let bind, and expression checking for this commit (to come).
Diffstat (limited to 'src/main.ml')
-rw-r--r--src/main.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.ml b/src/main.ml
index 5698b81a..639da7d7 100644
--- a/src/main.ml
+++ b/src/main.ml
@@ -393,12 +393,13 @@ let main() =
then Printf.printf "L2 pre alpha \n"
else let parsed = (List.map (fun f -> (f,(parse_file f))) !opt_file_arguments) in
let asts = (List.map (fun (f,past) -> (f,convert_ast past)) parsed) in
+ let chkedasts = (List.map (fun (f,(ast,kenv)) -> (f,check_ast ast kenv)) asts) in
begin
(if !(opt_print_verbose)
- then ((Pretty_print.pp_defs Format.std_formatter) (snd (List.hd asts)))
+ then ((Pretty_print.pp_defs Format.std_formatter) (snd (List.hd chkedasts)))
else ());
(if !(opt_print_lem)
- then output "" Lem_ast_out asts
+ then output "" Lem_ast_out chkedasts
else ());
end