[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: make lpeg.P(table) recursive?
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Sat, 9 Apr 2011 21:47:22 +0200
On Fri, Apr 8, 2011 at 16:29, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> I do not know. You changed the code, did you not? (But I assume that it
> is treating the inicial rule [index 1] differently.)
The only thing I changed is the line described in the first post,
namely the line #1188 in the "fix_l" function definition (v0.10.1):
if (!testpattern(L, -1))
- luaLerror(L, "%s is not a pattern", val2str(L, -2));
+ getpatt(L, lua_gettop(L), NULL);