Skip to content

Commit

Permalink
Added program tree printing to lospec test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo2622 committed Nov 30, 2023
1 parent 025fb42 commit 46292a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libs/lospecs/lospecs_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ open Lospecs

(* -------------------------------------------------------------------- *)
let _ =
Io.parse IO.stdin

Format.printf "%a@." Ptree.pp_program (Io.parse IO.stdin)

(* -------------------------------------------------------------------- *)
module List : sig
Expand Down
2 changes: 1 addition & 1 deletion libs/lospecs/ptree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ type pprogram =
pdef list

let pp_program (fmt: Format.formatter) (prog: pprogram) =
Format.pp_print_list ~pp_sep:(fun out () -> Format.fprintf out "@.") pp_def fmt prog
Format.pp_print_list ~pp_sep:(fun out () -> Format.fprintf out "@.@.") pp_def fmt prog

0 comments on commit 46292a6

Please sign in to comment.