Closed fabi321 closed 1 year ago
Dependless of the input expression, ast.to_lua_source doesn't add any parenthesis. Example:
ast.to_lua_source
>>> ast.to_lua_source(ast.parse("a=(1*2)+3")) 'a = 1 * 2 + 3' >>> ast.to_lua_source(ast.parse("a=1*(2+3)")) 'a = 1 * 2 + 3'
While it is possible for the first expression to be written without parenthesis, the second one needs a pair in order to preserve the meaning.
Hi, I just made a pull request to fix this issue. All we have to do is just wait for it to be approved. Glad I'm not the only one who got this problem.
Dependless of the input expression,
ast.to_lua_source
doesn't add any parenthesis. Example:While it is possible for the first expression to be written without parenthesis, the second one needs a pair in order to preserve the meaning.