Support BNFs with multiple productions in `syntax` blocks

Aperta
#966 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
```
:::
Lingua principale
Lean
Stelle
147
Fork
72
Merge medio
1g 17h
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di leanprover/reference-manual

Tutte le issue di leanprover/reference-manual

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.