[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lpeg practices
- From: Gavin Wraith <gavin@...>
- Date: Tue, 12 Jun 2012 13:10:12 +0100
I would be interested to know how others use lpeg.
One strategy is to try and get the bare pattern right
first, without using captures (if none are needed later
in the matching process), and then to retro-fit the captures
later. This I find quite tricky to get right, because one has
to have a mental picture of the capture stack and how it gets
Does anyone have any informal advice or useful tips?
Gavin Wraith (firstname.lastname@example.org)
Home page: http://www.wra1th.plus.com/