[KEYWORD] Add break / continue / pass mappings

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

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
半天
新手友好度
50/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python

调研方向

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.

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

描述

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.

主要语言
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 摘要。