summaryrefslogtreecommitdiff
path: root/debian/tests/parse_and_print.ml
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/parse_and_print.ml')
-rw-r--r--debian/tests/parse_and_print.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/tests/parse_and_print.ml b/debian/tests/parse_and_print.ml
new file mode 100644
index 0000000..d66a1fa
--- /dev/null
+++ b/debian/tests/parse_and_print.ml
@@ -0,0 +1,3 @@
+let filename = Sys.argv.(1)
+let ast = Morsmall.parse_file filename
+let _ = Morsmall.pp_print_safe Format.std_formatter ast