boolangery / py-lua-parser

A Lua parser and AST builder written in Python.
MIT License
115 stars 36 forks source link

Output as a lua file? #8

Closed byteofprash closed 3 years ago

byteofprash commented 3 years ago

Hallo,

Thanks for this wonderful project. While I can happily parse a Lua file to an ast, if there a way to store a modified AST to a lua file? Sorry, if this was already done before. Could you please help me to figure a way to do this if possible?

Thanks

boolangery commented 3 years ago

Hello,

This is not yet available but i'm working on it. You will be the first tester

If you can, please checkout the project on this branch: https://github.com/boolangery/py-lua-parser/tree/feature/lua-output

And give it a try: https://github.com/boolangery/py-lua-parser/tree/feature/lua-output#rendering-lua-code

For now, comments are not rendered.