python版本的lua-parse
2022/03
17
18:03
安装
pip install luaparse
使用
from luaparser import ast
from luaparser import astnodes
txt = open("d:\\1.lua", "r").read()
tree = ast.parse(txt)
print(ast.to_pretty_str(tree))
代码地址:https://github.com/boolangery/py-lua-parser
另有一个Lua版本:https://github.com/davidm/lua-fish
--转载请注明: http://blog.coolcoding.cn/?p=4427