lua-users home
lua-l archive

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

On Wed, Apr 3, 2019 at 7:28 PM nobody <> wrote:
> ## proposal / question
> Would it make sense to add a way to tell LPEG "do not backtrack past
> this point" – e.g. by 'lpeg.cut( )'? (I'm taking the name from Prolog –
> maybe there's a better name?)  With cuts, there *would* be hard known
> information that could be printed:  The position in the input when LPEG
> attempted to backtrack over the cut.

I think lpeglabel.T does what you want: