New light syntax

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
compilers

Direzione di ricerca

Start by finding where the current light ELEMENT: block form is recognised — the grammar/parser classes in this C# library — and the tests that cover the light syntax, since the issue names neither. Reading those will show whether the change belongs in the tokenizer, the block parser, or both, and how optional commas interact with the existing separator rules. Done means both the colon form and the parenthesised form parse, commas are accepted but no longer required, and the existing syntax tests still pass alongside new ones for the parenthesis variant. The open question of whether to keep the old form is worth settling with a maintainer before writing code.

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

Descrizione

good first issue usability

What we have now

The light syntax is currently

ELEMENT:
   element1,
   element2,
   ...,
   elementN;

What i propose

Add a parenthesis syntax to conform more to the notion of a block:

ELEMENT (
   element1
   element2
   ...
   elementN
)

Also make it so that comas , are not mandatory anymore.

Lingua principale
C#
Stelle
0
Fork
0
Merge medio
3g 4h
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Natvs/Nt.SyntaxParser

Tutte le issue di Natvs/Nt.SyntaxParser

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.