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

Use Menhir's new incremental API to simplify Lambtex and Lambwiki readers #31

Closed
darioteixeira opened this issue Mar 26, 2015 · 1 comment
Closed

Comments

@darioteixeira
Copy link
Owner

@darioteixeira darioteixeira commented Mar 26, 2015

Menhir's new incremental API allows for greater control over the parsing process. In particular, we can now drive the parser externally, which potentially offers a much cleaner solution to the on-the-fly lexer switching problem that complicated enormously the design of the Lambtex and Lambwiki readers. Note that in the current design the Lambtex reader is not even reentrant, which somewhat limits its usefulness.

Bear in mind that the redesigned readers must somehow be able to inspect the current parser state, a feature which unfortunately Menhir does not yet offer. Nevertheless, this feature is acknowledged by Menhir's developers and is planned for the near future.

@darioteixeira
Copy link
Owner Author

@darioteixeira darioteixeira commented Mar 12, 2016

A better solution using Menhir's parameterised parsers was implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.