Document::Tools - Parsing and Emitting Tools for Text Documents
my $ast = Spork::Parser->new->parse($text); return Spork::Emitter::HTML->new->emit($ast);
Document::Tools contains a base class for a parser, emitter and AST. You write your own parser by making a grammar object that drives the parser.
See this parser as an example:
And this module for usage of the parser:
Ingy dÃ¶t Net <email@example.com>
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.