[KEYWORD] Add break / continue / pass mappings

Đang mở
#32 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
50/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
compilers, localization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
1
Fork
4
Merge trung bình
12 ngày 21 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alphacrack/python-maithili-dsl

Tất cả issue của alphacrack/python-maithili-dsl

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.