|
Blatte::Parser - parser for Blatte syntax |
Blatte::Parser - parser for Blatte syntax
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();
}
parse(INPUT)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.
expr(INPUT)eof(INPUT)
consume_whitespace(STRING_REF)This function is called internally by the parser prior to matching each token of the input.
Bob Glickstein <bobg@zanshin.com>.
Visit the Blatte website, <http://www.blatte.org/>.
Copyright 2001 Bob Glickstein. All rights reserved.
Blatte is distributed under the terms of the GNU General Public License, version 2. See the file LICENSE that accompanies the Blatte distribution.
Blatte(3), the Blatte::Compiler(3) manpage, the Blatte::Syntax(3) manpage.
|
Blatte::Parser - parser for Blatte syntax |