[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Lpeg] Problem with Cf
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Mon, 14 Apr 2014 17:27:04 +0200
My bad, `parenthese` actually recieves many captures. Try
function parenthese(...)
return 'par{' .. table.concat{...} .. '}'
end
—Pierre-Yves
On Sun, Apr 13, 2014 at 12:09 AM, Christophe Devalland
<christophe.devalland@gmail.com> wrote:
> Thanks Pierre-Yves,
>
> 2014-04-12 22:31 GMT+02:00 Pierre-Yves Gérardy <pygy79@gmail.com>:
>
>> Replace `Cf(Exp,parenthese)` with `(Exp/parenthese)`, you'll get the
>> expected result.
>
>
> I tried this but there was no difference :
> print(match(Grammaire,'1+(5+4)'))
> gives also :
> 1 + par{5}
>