没有合适的资源?快使用搜索试试~ 我知道了~
luna:用RPython编写的luajit字节码解释器
共53个文件
py:44个
l:3个
txt:1个
需积分: 19 0 下载量 145 浏览量
2021-05-20
13:36:05
上传
评论
收藏 38KB ZIP 举报
温馨提示
露娜 Luna是Lua的字节码寄存器解释器。 目前,它使用Luajit将Lua文件编译为字节码并进行解释。 您需要安装一些依赖项。 您可以通过pip install -r requirements.txt获得它们。 然后确保您最近有一个检出并将其放在PYTHONPATH 。 最后,您需要一个最新版本的luajit ( luajit -b用于生成字节码)。 要运行测试,请执行以下操作: $ py.test 要翻译运行:: $ python translate.py 这将编译Luna,大约需要30秒。 要直接在Python之上运行Luna,您可以执行以下操作: $ python -m luna /path/to/file.lua 去做 Rpython中的编译器 中介者 准时制 更多标准库功能 特征 目前,Luna支持除迭代器之外的大多数Lua标准构造。 标准库的以下部分(
资源推荐
资源详情
资源评论
收起资源包目录
luna-master.zip (53个子文件)
luna-master
.gitignore 211B
requirements.txt 30B
.travis.yml 702B
LICENSE 1KB
luna
__init__.py 0B
interpreter.py 423B
objspace.py 656B
module.py 673B
tests
test_mul.py 2KB
conftest.py 0B
test_if.py 9KB
test_while.py 1KB
test_repeat.py 1KB
test_compatibility.py 561B
__init__.py 0B
test_add.py 1KB
test_bytecode.py 2KB
test_sub.py 1KB
scripts
constructs.lua 4KB
test_strings.py 1KB
test_for.py 2KB
test_main.py 875B
test_conditions.py 1KB
test_table.py 6KB
modules
test_string.py 5KB
__init__.py 0B
test_builtin.py 7KB
test_math.py 1KB
test_pattern.py 15KB
helpers.py 669B
test_div.py 1KB
test_call.py 3KB
test_compiled.py 4KB
test_return.py 478B
opcodes.py 3KB
luaframe.py 21KB
__main__.py 121B
main.py 1KB
modules
patterns.py 8KB
table.py 2KB
__init__.py 0B
builtin.py 2KB
string.py 2KB
lmath.py 642B
helpers.py 73B
w_objects.py 4KB
bytecode.py 8KB
bench
bench_loop.l 45B
bench.py 1KB
bench_mergesort.l 1KB
bench_fib.l 169B
README.md 1KB
translate.py 265B
共 53 条
- 1
资源评论
iwbunny
- 粉丝: 26
- 资源: 4673
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功