[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg.Carg() weirdness
- From: Sean Conner <sean@...>
- Date: Sat, 24 Jun 2017 19:13:14 -0400
It was thus said that the Great Sean Conner once stated:
>
> I have an issue where I thought using lpeg.Carg() would solve the issue.
> As a test, I wrote:
>
> lpeg = require "lpeg"
> pat = lpeg.P"a" * lpeg.Carg(1)
>
> x = pat:match(pat)
> print(x)
Oops. I meant:
x = pat:match("a")
-spc (That's what I get for not doing cut-n-paste)