metalua-parser icon indicating copy to clipboard operation
metalua-parser copied to clipboard

luarock packaging of Metalua's parser

Results 6 metalua-parser issues
Sort by recently updated
recently updated
newest added

test.lua: ``` lua local parser = require "metalua.compiler".new() local inspect = require "inspect" local s = "local a" print(inspect(parser:src_to_ast(s))) ``` Output(omitting lineinfo, etc): ``` { { { { -- `Id...

test.lua: ``` lua x = function(y) print(y) end (function() end)() ``` Standard Lua interprets this block as two separate statements, and executing it prints nothing. However, metalua-parser considers it one...

Currently the rock is marked as Lua 5.1 only in the rockspec. I'm using it for [a very basic static checker](https://github.com/mpeterv/luacheck) and it works fine on Lua 5.2, too. So,...

Hi. I was just studying the Metalua AST format and one thing that struck me as a little odd is the relative inconvenience of accessing comments. Is there a rationale...

Right now it takes some thought and specialized debug printing to guess, how exactly a given AST node data is laid out. It would be cool if the documentation would...

| `Return{ } -- allowed anywhere, unlike in plain Lua | `Break -- allowed anywhere, unlike in plain Lua These comments probably should be reworded — at the least. It...