Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Check that tokens are non-empty after `#Layout`

Aperta
#4,595 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
compilers

Direzione di ricerca

Read related issue #4592 first, then locate the code that removes tokens matching #Layout and validates token regular expressions. Implement the check that (~(L))&S is non-empty for every token S, and verify that the whitespace-stripping example is rejected while valid token definitions remain accepted.

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

Descrizione

Related to #4592

Check that, after removing all tokens matching #Layout, every token is still a non-empty regular expression, preventing bugs like

syntax #Layout ::= r"([\\n \\ \\r\\t])"
syntax Stmt ::= List{Int, " "}

where the list separator will never actually be matched because #Layout strips all white-space.

Explicitly, let L be the #Layout regex and S a token. We must check that (~(*L*))&S is non-empty where ~ is negation, * is Kleene star, and & is intersection.

Lingua principale
Python
Stelle
591
Fork
163
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 runtimeverification/k

Tutte le issue di runtimeverification/k

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.