py-lua-parser icon indicating copy to clipboard operation
py-lua-parser copied to clipboard

Brackets are absent in output of AST->source_code conversion

Open Real-Gecko opened this issue 10 months ago • 0 comments

Code:

from luaparser import ast

source = """
result = (a + b) / (c + d)
"""

tree = ast.parse(source)
print(ast.to_lua_source(tree))

Output:

result = a + b / c + d

Real-Gecko avatar Apr 18 '24 05:04 Real-Gecko