[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPEG filtering
- From: Miles Bader <miles@...>
- Date: Wed, 04 Jun 2008 00:58:02 +0900
Mark Hamburg <mark_hamburg@baymoon.com> writes:
> Is it possible as part of the semantic action/capture logic in LPEG to
> attach filter functions? For example, could I match a number using the
> LPEG patterns and then range check it with a Lua function? Or would I
> need to do that work after the pattern match finishes?
Read about the / operator.
-Miles
--
Abstainer, n. A weak person who yields to the temptation of denying himself a
pleasure. A total abstainer is one who abstains from everything but
abstention, and especially from inactivity in the affairs of others.