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

未关闭
#10 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
一周以上
新手友好度
18/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
1
派生
4
平均合并
12 天 21 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alphacrack/python-maithili-dsl 的其他 Issue

查看 alphacrack/python-maithili-dsl 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。