Skip to content

TransPyC 文档

快速开始

trans_py_c init                 # 初始化项目
trans_py_c -c examples/hello -v # 翻译

翻译样例

样例 说明
hello 最简入口:return 42
variables 变量声明:int, str, float
struct class → struct + 成员访问
control_flow if/elif + for range
test_simple class + method + constructor
pointer c.Memory, c.Addr, c.Cast
asm_macro c.Asm, c.Macro
example1 全覆盖:所有特性组合
trans_py_c -c examples/pointer -v