prefix the debug logs
This commit is contained in:
parent
d7bb317e2b
commit
c61c1d4e25
|
@ -6,9 +6,9 @@ let () =
|
|||
|
||||
try
|
||||
let ast = parse "fun f() 3 val x = f() + 1" in
|
||||
Logs.debug (fun m -> m "%a" Ast.pp_modl ast);
|
||||
Logs.debug (fun m -> m "[AST] %a" Ast.pp_modl ast);
|
||||
let prog = compile ast in
|
||||
Logs.debug (fun m -> Code.dump (m "%s") prog.main);
|
||||
Logs.debug (fun m -> Code.dump (m "[BC] %s") prog.main);
|
||||
let modl = run prog in
|
||||
Logs.debug (fun m -> m "%a" Value.pp modl)
|
||||
Logs.debug (fun m -> m "[RET] %a" Value.pp modl)
|
||||
with Error msg -> Logs.err (fun m -> m "%s" msg)
|
||||
|
|
Loading…
Reference in New Issue