Binding forms parsing error
Open
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 112
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
This language definition:
(define-language lc
(e ::= (list e ...) x)
(x ::= variable-not-otherwise-mentioned)
#:binding-forms
(list (list x ...) ...) #:exports nothing)
Produces the error:
redex/redex-lib/redex/private/binding-forms-compiler.rkt:36:39: define-language: Same name used at two different ... depths: list (depth 1) vs. list (depth 0) in: (list (list p ...) ...)
Contributor guide
No contributing guide indexed for this repository
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 language definition from the issue and read redex/redex-lib/redex/private/binding-forms-compiler.rkt, especially the reported line. Trace how the nested list forms are assigned depths; done means this definition no longer reports the same-name-at-different-depths error.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100