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

Make ppx_metaquot a source-level utility #45

Open
bobzhang opened this issue May 12, 2016 · 1 comment
Open

Make ppx_metaquot a source-level utility #45

bobzhang opened this issue May 12, 2016 · 1 comment

Comments

@bobzhang
Copy link

currently ppx_metaquot.ml is hard coded with Ast_mapper.run_main which makes it can not be reused as a library.

the only way to use ppx_metaquot is ocamlc.opt -ppx ppx_metaquot (it will imply type checking which is a bit annoying)

My use case is that I want to have a command line utilty to do pure source transformation,
so I can check in generated code without imposing dependencies to my users, are you interested in such use case? thanks

@alainfrisch
Copy link
Collaborator

If you only want to source transformation without running the compiler, you can use the rewriter tool, part of this package. Otherwise, I'm not against splitting ppx_metaquot into a reusable library and the ppx wrapper; feel free to submit a PR.

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

2 participants