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