in reply to •Re: Handling newlines in P::RD
in thread Handling newlines in P::RD

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.

Replies are listed 'Best First'.
Re^3: Handling newlines in P::RD
by spurperl (Priest) on Nov 16, 2004 at 10:50 UTC
    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 !