We do not need every item to be lpeg object, only its built class
(item were used ONLY to build class range)
I don't think this is true. All uses of 'item' demand it to be apattern. What happens is that other operations (e.g., '*', '-')coerce it to a pattern when it is not one.one of item choice is defined, which included user defined constants
that may not be lpeg object. So, the bug is still there.
Sure. It should be fixed, too.-- Roberto
local item = defined + Range + m.C(any)
+local item = (defined + Range + m.C(any)) / m.P
this should fix it.
-- Albert Chan
|