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

Abierto
#33 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
50/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
1
Forks
4
Merge medio
12 d 21 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de alphacrack/python-maithili-dsl

Todos los issues de alphacrack/python-maithili-dsl

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.