Support BNFs with multiple productions in `syntax` blocks
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- documentation
Research direction
Locate the code that parses the :::freeSyntax and :::syntax directives plus the ```grammar fences, then compare how freeSyntax splits on the `` separator versus how `syntax` currently emits one BNF per fence. Start by grepping for `freeSyntax` and `` to find the shared rendering path. Done = the two-fence example in the issue renders as a single BNF with two productions, verified by building the manual.
Written by the indexing model from the issue text.
Description
The freeSyntax directive can render a single BNF with multiple productions. This is expressed by separating the productions with *****. For instance
:::freeSyntax json (title := "JSON Literals") -open
```grammar
`( json|null)
*****
`( json|true)
```
:::
The syntax directive should also support multi-production BNFs; the following example is currently rendered as two BNFs:
:::syntax json (title := "JSON Terms")
```grammar
null
```
```grammar
true
```
:::
- Dominant language
- Lean
- Stars
- 147
- Forks
- 72
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from leanprover/reference-manual
-
doc-request
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/reference-manual#955 ·
Maintainers usually reply within 1 day
-
doc-request
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
leanprover/reference-manual#937 ·
Maintainers usually reply within 1 day
-
doc-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
leanprover/reference-manual#936 ·
Maintainers usually reply within 1 day
-
doc-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
leanprover/reference-manual#935 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/reference-manual#896 ·
Maintainers usually reply within 1 day
All issues in leanprover/reference-manual
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
優先度たかし
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lean-ja/lean-by-example#2681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
laststance/design-world#79 ·
Maintainers usually reply within 1 day
-
v2
Difficulty 1/5 Under an hour Newbie friendliness 86/100
modelcontextprotocol/python-sdk#3978 · 2 comments ·
Maintainers usually reply within 1 day