-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Signed-off-by: Nathan Rebours <[email protected]>
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]>
Signed-off-by: Nathan Rebours <[email protected]>
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]>
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]>
Signed-off-by: Nathan Rebours <[email protected]>
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 |
Closing to continue it on ppxlib |
@NathanReb Sorry, I forgot to link the PR here. For those who are interested: ocaml-ppx#526 |
Description
Add
json
mapper onpp_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
toppxlib-pp-ast
. It works with all other flags, such as--show-attrs
and--show-loc
.