From: Lars Christensen Date: 2009-07-03T19:02:56+09:00 Subject: Re: Parsing lua with Ruby On Fri, Jul 3, 2009 at 11:49 AM, Catalin Tilimpea wrote: > Im interested in parsing a text file that has a very specific, yet > somewhat complicated (for me) format. Sample attached. Looks something > like this: > > BeanCounterDB = { >  ["settings"] = { >    ["profile.Default"] = { >      ["columnsortcurSort"] = 12, >      ["util.beancounter.mailrecolor"] = "both", >      ["columnsortcurDir"] = -1, >      ["configator.left"] = 282.666712026266, >      ["configator.top"] = 651.6666718914553, >    }, I wrote this little Treetop based parser for a very small subset of Lua some time ago. It might help: http://gist.github.com/140038