Skip to content

Commit 6996be8

Browse files
committed
cleaner output
1 parent 096e455 commit 6996be8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/toplevel.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ let run_main in_channel ~the_fpm ~the_execution_engine =
88
in
99
let rec run_loop the_fpm the_execution_engine supplier =
1010
let incremental = Parser.Incremental.toplevel Lexing.dummy_pos in
11-
printf "\nready> " ;
11+
printf "\n" ;
12+
printf "ready> " ;
1213
Out_channel.flush stdout ;
1314
( try
1415
match Parser.MenhirInterpreter.loop supplier incremental with
1516
| `Expr ast ->
17+
printf "parsed a toplevel expression" ;
1618
(* Evaluate a top-level expression into an anonymous function. *)
1719
let func = Ast.func_of_no_binop_func ast in
18-
printf "parsed a toplevel expression" ;
1920
Out_channel.flush stdout ;
2021
Llvm_executionengine.add_module Codegen.the_module
2122
the_execution_engine ;

0 commit comments

Comments
 (0)