[KEYWORD] Add break / continue / pass mappings

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/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 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.

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

Descripción

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.

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.