Dune + Coq + Menhir
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 1.9k
- Forks
- 500
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 277
Description
Desired Behavior
Allow generating Parser.v from Parser.vy, and using it in the (coq.theory) stanza.
Example
(coq.theory
(name JSON)
(package coq-json)
(synopsis "JSON in Coq"))
(menhir
(modules Parser)
(flags --coq)
)
Currently:
Error: I can't determine what library/executable the files produced by this stanza are part of.
File "./theories/Lexer.v", line 1, characters 0-37:
Error: Cannot find a physical path bound to logical path
Parser with prefix JSON.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the example with the (coq.theory) and (menhir) stanzas, including the --coq flag, and inspect how Dune associates generated files with a library or executable. Trace the handling of Parser.vy, Parser.v, and the Coq theory until the reported path-binding error is understood. Done means Parser.v is generated and usable by the theory without the current errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- build-system, compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100