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
CopyRights: The Post by BY-NC-SA For Authorization,Original If Not Noted,Reprint Please Indicate From 老刘@开发笔记
Post Link: python版本的lua-parse
Post Link: python版本的lua-parse