Open mimoo opened 1 year ago
or ocamlfind ppx_tools/dumpast -e "1 + 1"
(from https://tarides.com/blog/2019-05-09-an-introduction-to-ocaml-ppx-ecosystem)
Similarly, you can use the -t or -p options to respectively pretty print ASTs from type expressions or patterns.
you can dump any AST by doing
ocamlfind ppx_tools/dumpast your_file.ml