On Fri, Feb 23, 2001 at 12:48:35AM -0800, Russ Allbery wrote:
> You inherit from Pod::Parser, set up private stuff in initialize(), set up
> per-file stuff in begin_pod(), and then everything else is done with
> callbacks.  command() is called for any command paragraph (=whatever),
> verbatim() is called for any verbatim paragraph, textblock() is called for
> any regular paragraph, and interior_sequence() is called for every
> interior sequence (X<>).  Print output to $self->output_handle.
> 
> That's basically all there is to it.  You can usually ignore much of the
> arguments that are passed into the callbacks.
> 
> So if you were looking for something starting with =begin testing, for
> example, just look for that in command() and set an internal flag when you
> see it, just doing nothing in all the other callbacks until then.  Then,
> if you want to look at code, that's all in verbatim paragraphs, so do all
> the work in verbatim().  You probably don't have to care about anything
> else; just replace them with stubs that don't output anything.

Take this, expand on it, provide code and stick it in under "=head1
EXAMPLES"


-- 
Michael G Schwern   <[EMAIL PROTECTED]>   http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <[EMAIL PROTECTED]>       Kwalitee Is Job One

Reply via email to