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

Offen
#9 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
1
Forks
4
Ø Merge
12 T. 21 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus alphacrack/python-maithili-dsl

Alle Issues in alphacrack/python-maithili-dsl

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.