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

Offen
#33 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
50/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
1
Forks
4
Ø Merge
12 T. 21 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus alphacrack/python-maithili-dsl

Alle Issues in alphacrack/python-maithili-dsl

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.