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

未关闭
#9 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
1
派生
4
平均合并
12 天 21 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alphacrack/python-maithili-dsl 的其他 Issue

查看 alphacrack/python-maithili-dsl 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。