-
Notifications
You must be signed in to change notification settings - Fork 412
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
Sibling modules are unbound in qualified Menhir parsers #11119
Comments
I tried to clarify the issue further in comment thread on the PR: #11118 (comment), but thought I’d try to spell it out more clearly here, in case it’s helpful to anyone in the future. To summarise, given the following menhir file:
I’ve tried the following approaches to set up a nested menhir parser that can refer to sibling modules:
I’m not sure if any of those, or none of those are intended to work with |
This seems potentially related to #8989, though from what I understand, that issue is for the specific case of the |
For a concrete use case, this project currently contains some modules that I’d like to convert to using |
Expected Behavior
When using
(include_subdirs qualified)
, a Menhir parser in a qualified subdirectory should be able to access its sibling modules. This is useful for if a programming language has a number of intermediate languages, each with its own parser and AST module, nested within their own subdirectories:Actual Behavior
Sibling modules are unbound in qualified Menhir parsers:
Reproduction
#11118
Specifications
dune
(output ofdune --version
):3.12.0-1285-gf7af2d0
ocaml
(output ofocamlc --version
):The OCaml toplevel, version 5.1.1
The text was updated successfully, but these errors were encountered: