On Tue, Aug 21, 2001 at 07:03:51PM -0700, Tim Gim Yee wrote:
> Here's a pod example:
> 
>     =head1 Printing 5 Newlines
> 
>         print <<'FIVE';
> 
> 
> 
> 
> 
>         FIVE
> 
> If a formatter doesn't reproduce the print statement verbatim, it is
> broken behavior.
> 
> > It was my impression that this required particularly unpleasant lookahead,
> > in event-based parsers.  I.e., when you see a blank line terminating a
> > paragraph, you can't just act on it --because what if it's that kind of
> > significant-blank-line that can be between verbatims?
> 
> I think Pod::Parser (an even-based parser) already does the right thing.
> It doesn't strip paragraph separators from the end of paragraphs.  In
> fact, I think it passes *every* character on to the formatter/procesor, a
> necessary requirement for a generic pod parser.

Pod::Parser can indeed pass every character on to the
formatter/processor, but I think that it currently treats
separate consecutive verbatim paragraphs as separate verbatim
blocks rather than a single verbatim block. It would have to
do some kind of "one paragraph lookahead" to accumulate such
verbatim blocks into a single verbatim block. But it probably
inst that hard since it already has to do something similar
with accumulating lines into a paragraph.


-- 
Brad Appleton <[EMAIL PROTECTED]>  http://www.bradapp.net/
  "And miles to go before I sleep." -- Robert Frost

Reply via email to