[KEYWORD] Add logical operators: and / or / not

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

还没有人认领这个 Issue。

评估

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

调研方向

Start in mappings.py and read DEVNAGIRI_KEYWORD_MAP to see how the existing नहि त (else) and नहि त यदि (elif) phrases are ordered before any bare नहि entry. Propose word choices for and, or and not in a comment first, then add the mappings with the longer phrases placed first. Done means each operator works alone and in compound conditions, the नहि / नहि त / नहि त यदि collision tests pass, and the README keyword table includes the new words.

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

描述

enhancement good first issue keyword-mapping P3

There are no mappings for the logical operators and, or, not — conditions must be written with nested यदि blocks.

Suggested starting points (native speakers, please improve!):

  • आ → and
  • वा → or
  • not is the tricky one: the obvious word नहि is already part of नहि त (else) and नहि त यदि (elif) — a bare नहि mapping must be ordered after those longer phrases in DEVNAGIRI_KEYWORD_MAP, and needs regression tests proving नहि त: still becomes else: (patterns apply in dict insertion order).

Steps:

  1. Mappings in mappings.py with careful ordering
  2. Tests: each operator alone, combined conditions, and the नहि / नहि त / नहि त यदि collision matrix
  3. README keyword table + an example using a compound condition

Good first issue with one genuinely interesting edge case. Propose word choices in a comment first.

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