lua-users home
lua-l archive

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


> > local SOS = lpeg.P(function(s, i) return i == 1 end) -- start of string
> 
> This is completely tangential to the topic at hand, but wouldn't this
> work just as well for SOS?
> 
> local SOS = -lpeg.B(1)

Sure.

-- Roberto