lua-users home
lua-l archive

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



Hi Roberto,

This library is really nice! It helps me (luatex) with a lot
of things that are very hard to do using only REs.

One suggestion: I find it would be useful to capture a value
that is not actually part of the input, like an alternative
name of a programming language command. For example, I have
stuff like

 [1] = lpeg.C(lpeg.P("fill"),"command")
 [2] = lpeg.C(lpeg.P("F"),"command")

but that "F" is just an alias of "fill", so I would welcome

 [1] = (lpeg.P("fill") + lpeg.P("F")) * lpeg.A("fill","command")

or something similar to that.

Best, Taco