[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lpeg 0.12: "grammar has too many rules"
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 3 Sep 2013 15:14:41 -0300
> I'm looking for an email parser for lua, and came across Sean Conner's work 
> Trying to run it with Lpeg 0.12 you get a failure:
> bad argument #1 to '?' (grammar has too many rules)
> It used to work with Lpeg 0.10 , what new limits has Lpeg 0.12 brought along?
LPeg 0.12 has a constant MAXRULES, which is currently defined as 200. Just
change that to a larger number and recompile LPeg. (And tell me how many
rules you need.)
(I thought 200 would be huge, but looking at your example 200 looks really