go-lua:Go中的Lua VM

时间:2021-04-28 19:48:50
【文件属性】:
文件名称:go-lua:Go中的Lua VM
文件大小:445KB
文件格式:ZIP
更新时间:2021-04-28 19:48:50
Go 纯Go中的Lua VM go-lua是Lua 5.2 VM到纯Go的端口。 它与luac转储的二进制文件兼容。 这样做的动机是启用Go应用程序的简单脚本。 例如,它用于描述负载生成工具Genghis中的流程。 用法 go-lua旨在用作Go软件包。 它不包含运行解释器的命令。 要开始使用该库,请运行: go get github.com/Shopify/go-lua 要开发和测试go-lua,您还需要检出子模块: git submodule update --init 然后,您可以使用常用的Go命令进行开发,例如: go build go test -cover 一个加载并运行Lua脚本的简单示例是: package main import "github.com/Shopify/go-lua" func main () { l := lua . NewState (
【文件预览】:
go-lua-master
----.circleci()
--------config.yml(579B)
----types.go(7KB)
----parser.go(17KB)
----.gitignore(11B)
----tag_methods.go(1KB)
----auxiliary.go(15KB)
----README.md(5KB)
----tables.go(5KB)
----io.go(7KB)
----vm.go(36KB)
----.gitmodules(107B)
----unix.go(308B)
----dev.yml(522B)
----.github()
--------probots.yml(17B)
----lua-tests()
----doc.go(86B)
----fixtures()
--------fib.lua(478B)
--------syntax_error.lua(70B)
--------fib.bin(1KB)
----os_windows.go(116B)
----vm_test.go(11KB)
----stack.go(12KB)
----base.go(7KB)
----libs.go(2KB)
----libs()
--------.gitignore(0B)
--------P1()
----math.go(3KB)
----code.go(30KB)
----parser_test.go(4KB)
----undump.go(7KB)
----dump.go(3KB)
----config.go(472B)
----doc_test.go(538B)
----auxiliary_test.go(1KB)
----dump_test.go(2KB)
----LICENSE.md(1KB)
----debug.go(15KB)
----go_test.go(2KB)
----lua.go(50KB)
----lua_test.go(630B)
----package_test.go(748B)
----load.go(5KB)
----bit32.go(3KB)
----doc()
--------presentations()
----table.go(3KB)
----string.go(6KB)
----instructions.go(8KB)
----scanner_test.go(2KB)
----os.go(4KB)
----scanner.go(11KB)
----undump_test.go(3KB)

网友评论