![](https://secure.gravatar.com/avatar/a0f6b595b0e3b7f3abba19eeb8261fc2.jpg?s=120&d=mm&r=g)
13 Jan
2008
13 Jan
'08
7:51 p.m.
Thanks for the reminder. We have been thinking about creating an lpeg variant that operates on tokens and/or nodes instead of simple data strings, but that will take quite a bit of work.
That sure would be nice.
It would be possible to simplify the loop logic by storing 'v' in a local variable, so that t[] always lags behind one value:
OK, thanks (but actually I was quite proud to get my code working already on the second try, so I kept it that non-optimal way ;-) Arthur