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

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

Comments

Projects
None yet
1 participant
@darioteixeira
Owner

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

This comment has been minimized.

Show comment
Hide comment
@darioteixeira

darioteixeira Mar 12, 2016

Owner

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

Owner

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