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

switch to menhir #1705

Merged
merged 9 commits into from
Nov 14, 2023
Merged

switch to menhir #1705

merged 9 commits into from
Nov 14, 2023

Conversation

zapashcanon
Copy link
Contributor

@zapashcanon zapashcanon commented Nov 10, 2023

Hi @rossberg,

As discussed in WebAssembly/gc#474, I switched to Menhir.

In a second commit I demonstrate some of the facilities offered by Menhir. There are plenty others we could use to remove some code. But I already did this in Owi and I'm not feeling like rewriting a whole parser for the second time right now. :-)

Copy link
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's nicer. I'm not entirely convinced the functorisation of the parse function is worth it, but I'm fine merging this for now.

interpreter/script/run.ml Outdated Show resolved Hide resolved
interpreter/script/run.ml Outdated Show resolved Hide resolved
interpreter/jslib/wast.ml Outdated Show resolved Hide resolved
interpreter/script/js.ml Outdated Show resolved Hide resolved
interpreter/text/parse.ml Outdated Show resolved Hide resolved
interpreter/text/parse.ml Outdated Show resolved Hide resolved
interpreter/text/parser.mly Show resolved Hide resolved
@rossberg rossberg merged commit 4f69eee into WebAssembly:main Nov 14, 2023
1 check passed
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