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

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
1
Fork
4
Merge medio
12g 21h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alphacrack/python-maithili-dsl

Tutte le issue di alphacrack/python-maithili-dsl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.