Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter: ppx #13

Open
mimoo opened this issue Nov 5, 2022 · 3 comments
Open

chapter: ppx #13

mimoo opened this issue Nov 5, 2022 · 3 comments

Comments

@mimoo
Copy link
Contributor

mimoo commented Nov 5, 2022

you can dump any AST by doing ocamlfind ppx_tools/dumpast your_file.ml

@mimoo
Copy link
Contributor Author

mimoo commented Nov 5, 2022

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.

@mimoo
Copy link
Contributor Author

mimoo commented Dec 13, 2022

@mimoo
Copy link
Contributor Author

mimoo commented Jan 4, 2023

started here: 7c6a95d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant