Just to clarify for the OP, "It stays set through all invoked rules as well" means if you place it in your start rule, it'll affect all your rules.
| [reply] |
Thanks, this is the approach I've eventually taken. Still, looking at my grammar and at the attemps I did trying stuff, it's clear that P::RD has an issue with line-oriented input. It's possible, but adds difficulties, mainly because its default "skippable" chars include a newline.
This can be trivially solved with a tiny bit of preprocessing, but I tried a pure P::RD approach.
To conclude - it works, it even looks clean enough and not *too* complicated.
Thanks for the feedback !
| [reply] |