lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Jun 12, 2013 at 6:29 PM, David Heiko Kolf <david@dkolf.de> wrote:
> I tried it with the test suite of my JSON module [1] and I got an error
> that an argument to a match time capture was nil.

That was indeed a bug. Fixed now :-)

> If I pass some other value instead of nil as argument, my test suite
> passes successfully.  Just the big array test took an unusual long time
> -- it is parsing "["..("0,"):rep(100000).."0]".  But the tests
> completed, so good job on the module!

Thanks :)

I just pushed a small optimization, but with PUC Lua 5.1, it is still
~100 times slower than LPeg in my tests.  Did you try LuaJIT?

-- Pierre-Yves