PRD does <skip:'\s*'> by default, and \s includes \n. Your problem is not actually in PRD or your grammar, but in what you feed to your parser.
Change
while (<DATA>) { chomp; $parse->Para($_); }
to
my $text = do { local $/; <DATA> }; $parse->Para($text);
and change
/.*$/
to
/[^\n]+/
In reply to Re: RecDescent Parser problem: how to ignore new lines?
by ikegami
in thread RecDescent Parser problem: how to ignore new lines?
by Hanken
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |