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 the menhir stanza an extension #901

Merged
3 commits merged into from Jun 20, 2018
Merged

Make the menhir stanza an extension #901

3 commits merged into from Jun 20, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jun 20, 2018

This PR takes the menhir stanza out of the vanila dune language and makes it an extension with its own version. The jbuild language is unchanged and still has a menhir stanza.

It also adds the necessary boilerplate so that when using the menhir stanza, the (using menhir 1.0) line is automatically added to the dune-project file if needed.

@fpottier after this you'll be able change the syntax of the menhir stanza.

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
@rgrinberg
Copy link
Member

Looks good. This T convention for constructors is a bit weird however since we aren't using it anywhere else. Are we going to switch to it for all extensions?

@ghost
Copy link
Author

ghost commented Jun 20, 2018

It's just that I find it a bit weird to write Menhir.Menhir

@ghost ghost merged commit 58997d9 into ocaml:master Jun 20, 2018
This pull request was closed.
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