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

A Lua parser and AST builder written in Python.

Results 20 py-lua-parser issues
Sort by recently updated
recently updated
newest added

**Example code:** ```lua local Table = {"a", "b", "c"}; ``` **I have used ast.to_lua_source for turning the ast into a lua code** **The output i got:** ```lua local Table =...

**Given the following code:** ```lua local d, p, one, floor, mul, idx; if d * d > p then local lo = floor(one * (2^-56 / 3) * mul /...

Is there any documentation readily available? I have seen the docs folder, but there are no instructions on how to convert it into docs. Please add either one so I...

Examples: **Chunk Tail** ```lua local x = 1 -- comments will never be visited ``` or **Function Tail** ```lua function ok() --print('comments will never be visited') end ``` or **Just...

Hi, Here is a Lua example: ``` if false == false == false then x = 2 end ``` When parsing this program, the parser returns the following: ``` error:...

function definition: > function test_olength() > setting_name = "12345678" > if #setting >10 and setting_name == "user" then return 100 end > end > { > "test_olength": { > "Chunk":...

Hi I've failed to reproduce the syntax error described in Lua runtime for both simple cases e.g. ```lua io.write ('A') ``` ([IDE One result](https://ideone.com/DsuwdX)) and the example mentioned in the...

https://sphinxcontrib-napoleon.readthedocs.io/en/latest/ "As of Sphinx 1.3, the napoleon extension will come packaged with Sphinx under sphinx.ext.napoleon. The sphinxcontrib.napoleon extension will continue to work with Sphinx

Hi, When a Lua string starts with prefix `\u`, the string is parsed as Lua code. For example: ``` a="\u9" ``` Returns the following output: ``` line 1:2 token recognition...

Hi, The parser doesn't reject incorrect function calls. As a short example, consider the following Lua input: ``` var = function(...) (4) end ``` The parser parses and labels function...