Fetch the repository succeeded.
原始可执行文件显示命令行参数如下:
> .\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格式文档记录所有命令参数的使用方式与具体功能。
希望尽量添加对应测试用例。