Repository navigation
prototype(menhir): infer through a private alias interface - #199
Closed
anmonteiro wants to merge 8 commits into
Closed
anmonteiro wants to merge 8 commits into
anmonteiro wants to merge 8 commits into
Conversation
anmonteiro
force-pushed
the
prototype/menhir-inference-alias-cmi
branch
2 times, most recently
from
September 24, 2026 06:07
8281966 to
39518e1
Compare
anmonteiro
force-pushed
the
prototype/menhir-inference-alias-cmi
branch
2 times, most recently
from
September 26, 2026 05:11
3b72241 to
3462170
Compare
Extract the alias group lookup from fold_no_vlib_with_aliases for reuse in ocaml#16464. No behavior changes. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Compile a private CMI re-exporting enclosing alias scopes, and anonymously open it in the query before preprocessing. Keep ordinary logical dependency lookup and final parser compilation unchanged. Alternative to #195 for ocaml#8989. Cover helper-name collisions and snapshot the generated interface and logical dependencies. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Use Module_name.wrap for helper names and check only enclosing aliases for guards, reusing the existing virtual-library-aware group lookup. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro
force-pushed
the
prototype/menhir-inference-alias-cmi
branch
from
September 26, 2026 22:52
afdc8be to
b6a2c56
Compare
anmonteiro
added a commit
to ocaml/dune
that referenced
this pull request
Sep 27, 2026
Fix Menhir inference for qualified module group interfaces by opening a private alias interface, preserving logical dependency lookup. Fixes #8989. Continues anmonteiro#199; alternative to #16427 and anmonteiro#195. --------- Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Owner
Author
|
Superseded by ocaml#16464, now merged upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Alternative prototype for ocaml#8989, based directly on main for comparison with #195. Re-export enclosing aliases through a private CMI and anonymously open it during inference, retaining ordinary logical dependency lookup without -as-map or dependency object-name resolution.
Reuses the compatibility tests from ocaml#16452. Leaves #195 unchanged.