Port heptcheck to recent changes
This commit is contained in:
parent
6e5e7ec814
commit
8dad10f39b
1 changed files with 4 additions and 3 deletions
|
@ -26,15 +26,16 @@ let check_implementation modname filename =
|
|||
|
||||
try
|
||||
init_compiler modname;
|
||||
add_include (Filename.dirname filename);
|
||||
|
||||
(* Parsing of the file *)
|
||||
let p = do_silent_pass parse_implementation "Parsing" lexbuf true in
|
||||
let p = do_silent_pass "Parsing" (parse_implementation modname) lexbuf in
|
||||
|
||||
(* Convert the parse tree to Heptagon AST *)
|
||||
let p = do_pass Hept_scoping.translate_program "Scoping" p pp true in
|
||||
let p = do_pass "Scoping" Hept_scoping.translate_program p pp in
|
||||
|
||||
(* Call the compiler*)
|
||||
let p = do_silent_pass Hept_compiler.compile_impl "Checking" p true in
|
||||
let _ = compile_impl pp p in
|
||||
|
||||
close_all_files ()
|
||||
|
||||
|
|
Loading…
Reference in a new issue