It parses Lua tables into Ruby hashes without actually executing any Lua.
Based on Lars Christensen's Lua object Treetop grammar.
LuaTableParser.new.parse_table("{ a = "b" }") # => { 'a' => 'b' }
- Can't parse
''
or[[]]
delimited strings. - Input must be wrapped in
{}
s (i.e.mytable = { ... }
won't parse).
- Unit tests
- Work on above limitations