boolangery / py-lua-parser

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

to_lua_source issue when returning empty value #44

Closed quarantin closed 1 year ago

quarantin commented 1 year ago

When you try to parse this simple function:

function test()
    return
end

And then call to_lua_source on the AST you get the following result:

function test()
    return False
end

We can see the resulting code is returning False which is a value from python.