Document::Parser - Base Class for Creating Text Format Parsers


Document-Tools documentation  | view source Contained in the Document-Tools distribution.

Index


NAME

Top

Document::Parser - Base Class for Creating Text Format Parsers

SYNOPSIS

Top

    package MyParser;
    use base 'Document::Parser';

    sub create_grammar { 
        return {
            # ... define a grammar hash here ...
        };
    }

DESCRIPTION

Top

Document::Parser is a base class that you can use to easily generate a parser for text document markups (like Wiki or POD markups).

See this parser as an example:

    http://svn.kwiki.org/kwiki/trunk/src/core/Spork/lib/Spork/Parser.pm

And this module for usage of the parser:

    http://svn.kwiki.org/kwiki/trunk/src/core/Spork/lib/Spork/Formatter2.pm

AUTHOR

Top

Ingy döt Net

COPYRIGHT

Top


Document-Tools documentation  | view source Contained in the Document-Tools distribution.