lua-users home
lua-l archive

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


Let's say I have a pattern `pat`.

If I do `Ct(Cg(pat, 0) * Cg(Ct(Cg(Cb(0), "tag")), 0))`, and `pat` matches, do I get `{[0] = result_of_pat}` or do I get `{[0] = {tag=result_of_pat}}` or do I get an error?

Also, are LPeg patterns evaluated left-to-right? (The Lua reference manual isn't very clear on that...)

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.