lua-users home
lua-l archive

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


On Thu, Apr 2, 2009 at 1:58 PM, Peter Cawley <lua@corsix.org> wrote:
>> LETTER      = lpeg.R"az", "AZ"
> This doesn't do what it implies. the "AZ" is interpreted as the second
> clause in a multi-part assignment, not as the second parameter to R.

Aye, I had already fixed this locally.. stupid copy/paste/replace error.

> I would change the order of the "source" declaration. The + operator
> is the ordered choice operator, thus making the order of its operands
> important. Ordering it as "userathost + host" will make it try and
> match userathost first:

That's what I get for trying to come up with a limited example, I
leave an obvious error in there.  The good news is I was able to get
everything working by refactoring my grammar a bit, thanks for your
help!