[FEATURE] REPL mode for interactive Maithili coding (python_maithili --repl)

Đang mở
#10 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ó
4/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
18/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
cli

Hướng nghiên cứu

The REPL would be a new --repl option in cli.py, which must reuse the sandbox that run_dmai_file already applies (safe builtins and import whitelist). Read those two functions and the transpiler entry point first, then tests/test_security.py for the coverage CONTRIBUTING.md requires. The issue leaves open whether execution is line-by-line or block-accumulated, so settle that design with maintainers before coding; done means the REPL runs inside the sandbox with Maithili error messages and security tests passing.

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

Mô tả

area:cli enhancement help wanted P3

Listed as a Future Goal in the README but not started. An interactive REPL would let learners try Maithili syntax without creating .dmai files.

Design questions to settle first:

  • Line-by-line transpile-and-exec, or accumulate blocks (needed for कार्य/वर्ग definitions)?
  • The REPL must run inside the same sandbox as run_dmai_file (safe builtins + import whitelist) — a REPL that bypasses the sandbox would be a security regression
  • Maithili prompts/error messages via translate_exception_to_maithili

Security note: any PR here touches cli.py and must include tests/test_security.py coverage per CONTRIBUTING.md.

From BACKLOG.md item 18.

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.