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

Remove hard dependency on camlp4 #10

Closed
whitequark opened this issue Oct 22, 2014 · 0 comments
Closed

Remove hard dependency on camlp4 #10

whitequark opened this issue Oct 22, 2014 · 0 comments

Comments

@whitequark
Copy link

camlp4 was separated from OCaml in 4.02 and is being phased out. It would be great if Camomile did not have a hard dependency on camlp4. The only part of it that depends on camlp4 is tools/camomilelocaledef.ml, and it is used for the parser syntax.

I think a viable solution is shipping already preprocessed source, e.g. just by doing:

mv tools/camomilelocaledef.ml tools/camomilelocaledef.pp.ml
camlp4o -printers o tools/camomilelocaledef.pp.ml >tools/camomilelocaledef.ml

It is not even much less readable than with camlp4 syntax.

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