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

Add json mapper for pp_ast #3

Closed

Conversation

pedrobslisboa
Copy link

@pedrobslisboa pedrobslisboa commented Sep 20, 2024

Description

Add json mapper on pp_ast to improve usage in tools such as AST Explorer.
The idea is to increment the @NathanReb PR ocaml-ppx#517

@NathanReb, your opinion on how to structure it better is very welcome.
@jchavarri @davesnx thank you for the help.

How

To use it we just need to pass --json to ppxlib-pp-ast. It works with all other flags, such as --show-attrs and --show-loc.

NathanReb and others added 17 commits September 4, 2024 12:10
Signed-off-by: Nathan Rebours <[email protected]>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Nathan Rebours <[email protected]>

Co-authored-by: Patrick Ferris <[email protected]>
Signed-off-by: Nathan Rebours <[email protected]>
Signed-off-by: Nathan Rebours <[email protected]>
Signed-off-by: Nathan Rebours <[email protected]>
Signed-off-by: Nathan Rebours <[email protected]>
Signed-off-by: Nathan Rebours <[email protected]>
@NathanReb
Copy link
Owner

Thanks @pedrobslisboa for working on this! I'm just about to merge ocaml-ppx#517. Would you mind opening this as a new PR upstream directly once it's done?

We can discuss this feature there then but I think it would be a great addition!

@pedrobslisboa
Copy link
Author

Thanks @pedrobslisboa for working on this! I'm just about to merge ocaml-ppx#517. Would you mind opening this as a new PR upstream directly once it's done?

We can discuss this feature there then but I think it would be a great addition!

Sure

@pedrobslisboa
Copy link
Author

Closing to continue it on ppxlib

@NathanReb NathanReb closed this Sep 25, 2024
@pedrobslisboa
Copy link
Author

@NathanReb Sorry, I forgot to link the PR here.

For those who are interested: ocaml-ppx#526

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