| 1 | package Document::Tools; | ||
| 2 | 1 | ▶ | use 5.006001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | our $VERSION = '0.11'; | |
| 6 | |||
| 7 | 1 | 1; | |
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Document::Tools - Parsing and Emitting Tools for Text Documents | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | my $ast = Spork::Parser->new->parse($text); | ||
| 16 | return Spork::Emitter::HTML->new->emit($ast); | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Document::Tools contains a base class for a parser, emitter and AST. You write | ||
| 21 | your own parser by making a grammar object that drives the parser. | ||
| 22 | |||
| 23 | See this parser as an example: | ||
| 24 | |||
| 25 | http://svn.kwiki.org/kwiki/trunk/src/core/Spork/lib/Spork/Parser.pm | ||
| 26 | |||
| 27 | And this module for usage of the parser: | ||
| 28 | |||
| 29 | http://svn.kwiki.org/kwiki/trunk/src/core/Spork/lib/Spork/Formatter2.pm | ||
| 30 | |||
| 31 | =head1 AUTHOR | ||
| 32 | |||
| 33 | Ingy döt Net <ingy@cpan.org> | ||
| 34 | |||
| 35 | =head1 COPYRIGHT | ||
| 36 | |||
| 37 | Copyright (c) 2007. Ingy döt Net. All rights reserved. | ||
| 38 | |||
| 39 | This program is free software; you can redistribute it and/or modify it | ||
| 40 | under the same terms as Perl itself. | ||
| 41 | |||
| 42 | See http://www.perl.com/perl/misc/Artistic.html | ||