[KEYWORD] Add break / continue / pass mappings

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Mezza giornata
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Start with DEVNAGIRI_KEYWORD_MAP in maithili_dsl/transpiler/mappings.py to see how existing keywords are keyed and ordered, especially where multi-word entries sit relative to single-word ones. Then read tests/test_transpile.py for the word-boundary and string-literal test pattern, and check the structure whitelist at linter.py:38. Done means the three keywords map correctly, the tests cover word boundaries and string literals, and the README table and an example reflect the new words. Settle the word choices with native speakers in the issue first.

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

Descrizione

enhancement good first issue keyword-mapping P3

DEVNAGIRI_KEYWORD_MAP has no mappings for break, continue, or pass — loops cannot be exited early and empty blocks cannot be written.

Suggested starting points (native speakers, please improve!):

  • रोकू → break
  • आगू बढू → continue (multi-word: must be ordered before any single-word prefix entries)
  • छोड़ू → pass

Steps:

  1. Add mappings in maithili_dsl/transpiler/mappings.py
  2. Word-boundary + string-literal regression tests in tests/test_transpile.py
  3. Update the README keyword table and add/extend an example in examples/
  4. If the linter's structure whitelist (linter.py:38) needs the new words on :-lines, update it too

Depends on nothing; pairs nicely with जबतक/while (#8).

Good first issue — mostly data + tests. Please propose word choices in a comment before opening the PR so speakers can weigh in.

Lingua principale
Python
Stelle
1
Fork
4
Merge medio
12g 21h
PR unite (30g)
1

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 alphacrack/python-maithili-dsl

Tutte le issue di alphacrack/python-maithili-dsl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.