At Mon, 13 Sep 2004 10:04:37 +0200, <[EMAIL PROTECTED]> wrote: > Something like the "Start-up actions" from the "perldoc P::RecDescent", > but they should be reset on every new parser call and not just on the > grammar compilation, like here:
Can you just add an action to the beginning of your start rule, like so? mmpfile: { $i = 1 } letter(s) /^\Z/ /s