lua-users home
lua-l archive

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


> On 27 March 2013 15:23, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> > What is new in version 0.11?
> >   + new syntax for table captures
> 
> I quickly scanned over the documentation, and didn't notice how they
> have changed.
> Are you able to provide an example?

That was only for the re module, sorry for the lousy description :)

Inside a regex, instead of "p -> {}" for a table capture, now
we write "{| p |}" (the old syntax still works, for compatibility).


> Does this leave any opening for my previous feature requests?
> i.e.
>  - Yielding
>  - Feeding more data (e.g. provide a callback for when lpeg reaches
> the end of input)

Only in the sense that now I can think about them :)  But both features
seem hard to implement without impairing the performance of the regular
cases.


> I assume this means that the lpeg-jit has little hope of completion
> now? (I'm so sad no one picked that up)

This should be easier now, as the whole code generator is clearer and
better documented.

-- Roberto