Blatte::ParserBlatte::Parser is a Perl module that contains a parser for Blatte syntax. | |
Download |
Blatte::Parser Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Bob Glickstein
- Publisher web site:
- http://search.cpan.org/~bobg/HTML-LoL-1.3/lib/HTML/LoL.pm
Blatte::Parser Tags
Blatte::Parser Description
Blatte::Parser is a Perl module that contains a parser for Blatte syntax. Blatte::Parser is a Perl module that contains a parser for Blatte syntax.SYNOPSIS use Blatte::Parser; $parser = new Blatte::Parser(); $perl_expr = $parser->parse(INPUT); or $parsed_expr = $parser->expr(INPUT); if (defined($parsed_expr)) { $perl_expr = $parsed_expr->transform(); }METHODS$parser->parse(INPUT)Parses the first Blatte expression in INPUT and returns the corresponding Perl string, or undef if an error occurred.INPUT may be a string or a reference to a string. If it's the latter, then after a successful parse, the parsed expression will be removed from the beginning of the string.$parser->expr(INPUT)Like parse(), except the result is not converted to Perl; it's left in Blatte's internal parse-tree format, which uses the Blatte::Syntax family of objects.$parser->eof(INPUT)Tests INPUT for end-of-file. Leading whitespace is removed from INPUT with consume_whitespace and, if nothing remains, true is returned, else undef. Requirements: · Perl
Blatte::Parser Related Software