File Coverage

lib/Document/Tools.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Document::Tools;
2 1     1   26188 use 5.006001;
  1         4  
  1         38  
3 1     1   6 use strict;
  1         2  
  1         31  
4 1     1   4 use warnings;
  1         6  
  1         59  
5             our $VERSION = '0.11';
6              
7             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
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