From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

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

SYNOPSIS

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

DESCRIPTION

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:

And this module for usage of the parser:

AUTHOR

Ingy döt Net

COPYRIGHT

Copyright (c) 2007. Ingy döt Net. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html