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

Dumpast #98

Merged
merged 3 commits into from
Nov 16, 2021
Merged

Dumpast #98

merged 3 commits into from
Nov 16, 2021

Conversation

n-osborne
Copy link
Contributor

Add a command to print the gospel ast on stdout: gospel dumpast <file.mli>

This is inspired by the dumpast from ppx_tools.

This uses ppx_deriving to automatically derive the printers from the types.
Beware that the output is not correct OCaml code: the extrinsic types are printed as "" because the output is already quite big.

@pascutto pascutto merged commit 6bd9ba3 into ocaml-gospel:main Nov 16, 2021
@n-osborne n-osborne deleted the dumpast branch November 16, 2021 09:10
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

Successfully merging this pull request may close these issues.

2 participants