[KEYWORD] Add exception handling: प्रयास/अपवाद/अंततः → try/except/finally

Aperta
#9 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
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Keyword mappings live in maithili_dsl/transpiler/transpile.py; read how existing keywords are mapped and how word boundaries are handled first, since the issue warns that नव (__init__) once collided. Add प्रयास, अपवाद and अंततः mappings, then add cases to tests/test_transpile.py and an example in examples/. Done when try/except/finally round-trip correctly and no existing mapping changes, with the README keyword table updated.

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

Descrizione

enhancement good first issue keyword-mapping P3

No exception-handling keywords are mapped — users cannot write try/except in Maithili, even though runtime errors are already translated to Maithili by the linter.

Proposal: प्रयास → try, अपवाद → except, अंततः → finally (and consider उठाउ → raise).

Steps:

  1. Add mappings in maithili_dsl/transpiler/transpile.py
  2. Tests in tests/test_transpile.py + an end-to-end example in examples/
  3. Update the README keyword table

Multi-word interaction note: check these don't collide with existing mappings the way नव (__init__) once did — word-boundary tests required.

From BACKLOG.md item 17.

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.