Skip to content

backward-compatibly rename coq items to rocq#133

Open
SergioBenitez wants to merge 16 commits intoott-lang:masterfrom
formalstack:rocq-naming
Open

backward-compatibly rename coq items to rocq#133
SergioBenitez wants to merge 16 commits intoott-lang:masterfrom
formalstack:rocq-naming

Conversation

@SergioBenitez
Copy link

Theoretically closes #130. Builds on #132, which builds on #131 - only the last commit is directly relevant to this PR. I've chosen rocq instead of roq, but choosing the latter is a simple s/rocq/roq. Please let me know if the approach in this PR is acceptable and what additional polish you'd like.

SergioBenitez and others added 15 commits March 27, 2025 00:07
Co-authored-by: Joey Eremondi <joey.eremondi@gmail.com>
This fixes issues with subrules in the Menhir backend by:
1. Adding a syntaxdefn field to pp_menhir_opts in types.ml
2. Modifying suppress_rule to check if a nonterminal is non-maximal in
   the subrule hierarchy in lex_menhir_pp.ml
3. Adding a skip_subrule_validation parameter to check_and_disambiguate
   in grammar_typecheck.ml
4. Passing the appropriate flag when generating Menhir output in main.ml

The Menhir backend should 'only take the maximal elements from the
subrule order' as documented in the comments. This implementation
correctly suppresses non-maximal elements to ensure the generated parser
works properly with subrules.
This commit introduces new homs, CLI flags, and syntax, one for each of
the existing Coq versions, with 'rocq' replacing 'coq' in the name. The
'coq' variants remain usable, forwarding to the now canoncial rocq
variants. This is a non-breaking change.
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.

Coq to Rocq name change

2 participants