lua-users home
lua-l archive

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


> Here is my version:
> 
>   [...]
>       local enter = lpeg.P(function (s, p, ...) print("ENTER", k) return true end)
>       local leave = lpeg.P(function (s, p, ...) print("LEAVE", k) return false end)

I minor detail:  These two functions do not need parameters:
  "lpeg.P(function () print(..."

-- Roberto