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

Ouverte
#9 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
55/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Calme
Stack technique
python
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
1
Forks
4
Merge moyen
12 j 21 h
PR mergées (30 j)
1

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de alphacrack/python-maithili-dsl

Toutes les issues de alphacrack/python-maithili-dsl

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.