liblgpp:基于可扩展堆栈的解释器工具包

时间:2021-04-14 11:05:22
【文件属性】:
文件名称:liblgpp:基于可扩展堆栈的解释器工具包
文件大小:44KB
文件格式:ZIP
更新时间:2021-04-14 11:05:22
C++ 该项目旨在在C ++ 17中实现基于可扩展堆栈的解释器工具包。 #include #include "lgpp/ops/push.hpp" #include "lgpp/ops/stop.hpp" #include "lgpp/types.hpp" #include "lgpp/vm.hpp" using namespace lgpp; int main() { VM vm; Stack& s = get_stack(vm); emit(vm, vm.Int, 42); emit(vm); eval(vm, 0); assert(pop(s, vm.Int) == 42); return 0; } 自定义解释器是功能强大且灵活的工具,可以轻松解决棘手的问题。 配置,查询,模板,格式,公式和脚本是解
【文件预览】:
liblgpp-main
----.gitignore(12B)
----src()
--------lgpp()
--------test.cpp(9KB)
--------bench.cpp(3KB)
--------test(9KB)
----todo.org(883B)
----LICENSE.txt(1KB)
----bench()
--------fibrec.py(236B)
--------thread.py(223B)
--------coro.py(216B)
----README.md(7KB)
----CMakeLists.txt(870B)

网友评论