Re: Reset local parser variables for each new input file
[email protected] ("Sean O'Rourke") Mon, 13 Sep 2004 05:38:18 -0700
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <m2hdq25op1.wl%[email protected]> |
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