19 Star 120 Fork 23

木兰编程语言 / mulan-rework

 / 详情

复现余下命令行参数

Backlog
Task owner
Opened this issue  
2022-10-18 11:12

原始可执行文件显示命令行参数如下:

> .\ulang-0.2.2.exe -tt
usage: ulang-0.2.2.exe [-apbcidsDth] input_file
Options and arguments:
 --dump-ast,        -a   dump ast info
 --dump-python,     -p   dump python source code
 --dump-blockly,    -b   dump blockly xml (experimental)
 --dump-bytecode,   -c   dump donsok bytecode (experimental)
 --python-to-ulang, -s   convert python to ulang
 --debug,           -D   debug with Pdb (experimental)
 --interact,        -i   inspect interactively after running script
 --disassemble,     -d   disassemble the python bytecode
 --exec-code=<code> -e   run code from cli argument
 --show-backtrace,  -t   show backtrace for errors
 --version,         -v   show the version
 --help,            -h   show this message

已复现了:

 --版本,         -版   显示版本  <----- 对应 version
 --python变木兰, -兰   将 Python 源码转换为木兰源码 <----- 对应 python-to-ulang
 --语法树,       -树   语法树信息 <---- 对应 dump-ast
 --dump-python  <--- 详见 https://gitee.com/MulanRevive/mulan-rework/issues/I3QIEL

其中 dump-blockly 暂不实现,详见 此悬赏

从逆向看,实现估计 90 行左右。请以md格式文档记录所有命令参数的使用方式与具体功能。

希望尽量添加对应测试用例。

Comments (2)

吴烜 created任务
吴烜 changed description
吴烜 changed description
吴烜 changed description
吴烜 changed title
Expand operation logs

您好,实现的过程中有些地方需要在 PR 中和您讨论一下。

目标 已达成,手工及自动测试亦已通过。
拖的挺久,多谢耐心和钻研!

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
参与者(2)
5491350 laomobk 1653667847 384016 zhishi 1578922186
Python
1
https://gitee.com/MulanRevive/mulan-rework.git
git@gitee.com:MulanRevive/mulan-rework.git
MulanRevive
mulan-rework
mulan-rework

Search

E71a60c3 8189591 Df7b7c6b 8189591