Skip to content

Allow building FLambda parser in Dune #495

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

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

lukemaurer
Copy link

Unfortunately, I couldn't find a nice way to regenerate
flambda_parser.ml, etc. conditionally, which is important because it
requires not just Menhir but precisely the correct version of
Menhir (the same one the library was built with). So one has to change
the mode from fallback to promote manually. But after that, you get
all the benefits of dune build -w when editing the parser or lexer.

Unfortunately, I couldn't find a nice way to regenerate
`flambda_parser.ml`, etc. conditionally, which is important because it
requires not just Menhir but precisely the correct version of
Menhir (the same one the library was built with). So one has to change
the mode from `fallback` to `promote` manually. But after that, you get
all the benefits of `dune build -w` when editing the parser or lexer.
@lukemaurer lukemaurer force-pushed the build-parser-with-dune branch from d713d58 to 7c5a15b Compare June 24, 2021 16:09
@lukemaurer lukemaurer merged commit 3bd0288 into flambda2.0-stable Jun 24, 2021
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.

1 participant