lua-users home
lua-l archive

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


Roberto Ierusalimschy a écrit :
It is not very difficult to extend Lua pattern matching with a
given particular construction. The problem is that each particular
construction will help only a small audience.  In the particular
case of both "generic repetition" and alternation, they pose two
small dificulties. The first was pointed out by Gavin, how to delimit
them. The second is that they need space for backtracking information
(one-character repetition uses only a counter). That's the reason
they are not implemented in Lua.

OK, so I give up... :-)
Thanks for the detailed explanation.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --