print.ml 426 B

12345678910111213
  1. open Ast
  2. open Stringify
  3. let phase repr =
  4. (* TODO: check verbosity *)
  5. (*print_endline "- Print AST";*)
  6. match repr with
  7. | Node (node, verbose) ->
  8. print_endline "-------------------------------------------------------";
  9. print_endline (node2str node);
  10. print_endline "-------------------------------------------------------";
  11. repr
  12. | _ -> failwith "invalid input for this phase"