Files
Interpreter/tests
Admin dd7f7bcba7 双可执行落地:STCompiler 与 BytecodeExecutor。
- STCompiler 入口在 compiler/src/main.cpp,链 compiler+isa
- host/ 改名 executor/,BytecodeExecutor 链 vm+isa 不链 compiler
- compiler/vm 补 PUBLIC 链 isa;顶层加入 executor
- CTest:版本冒烟 2 例 + isa_roundtrip(89 断言),3/3 通过
2026-08-19 14:40:44 +08:00
..

tests

自动化用例,由顶层 enable_testing() 接入 CTest。

可以 add_testSTCompiler / BytecodeExecutor(编译→执行管线),或直接链接 compiler + vm 做单元断言。样例工程数据按「一份 toml + 若干 .st」分子目录存放,不要做成 library。

第一版要冻的

  • 关键字表与约 20 个样例程序
  • 约 20 条指令编码
  • 符号表字段:名字、种类、类型、地址、源文件
  • 链接错误:重复 VAR_GLOBAL、非 GVL 文件写全局、io.var 未声明

给人看的最小闭环放 examples/line1/,本目录放断言和负例。