[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [LPeg] How can I make a recursive pattern?
- From: Sean Conner <sean@...>
- Date: Wed, 27 Jul 2016 13:25:40 -0400
It was thus said that the Great Sean Conner once stated:
>
> Hard, because it appears you want to start with index [0], which makes it
> ... an interesting problem
Actually, it was easier than I thought---a close reading of the LPeg
documentation showed that
lpeg.Ct(lpeg.Cg(pattern,0))
does return the patter in index 0 of the table. So it's not as hard as I
thought it would be.
-spc (learn something new every day ... )