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

オープン
#33 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alphacrack/python-maithili-dsl のほかの issue

alphacrack/python-maithili-dsl の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。