lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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}
>