-
-
28 Jul 2001 21:05:53 UTC
- Distribution: Blatte
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (483 / 0 / 0)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (31.33KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Blatte::Syntax - parse tree structure for Blatte documents
SYNOPSIS
package MySyntax; use Blatte::Syntax; @ISA = qw(Blatte::Syntax); sub transform { my($self, $column) = @_; ...return a string containing a Perl expression... } ... use Blatte::Parser; use MySyntax; $parser = new Blatte::Parser(); $parser->add_special_form(\&my_special_form); sub my_special_form { my($self, $input_arg) = @_; my $input = $input_arg; if (ref($input)) { $input = $$input_arg; } ...examine $input... ...return undef if no match... ...else consume matching text from beginning of $input... if (ref($input_arg)) { $$input_arg = $input; } return new MySyntax(...); }
DESCRIPTION
Blatte::Syntax is the base class of a family of objects used to represent a Blatte parse tree. A tree of Blatte::Syntax objects is returned by
expr()
and other parsing methods of Blatte::Parser. All Blatte::Syntax objects have atransform()
method that converts them to strings of Perl code.AUTHOR
Bob Glickstein <bobg@zanshin.com>.
Visit the Blatte website, <http://www.blatte.org/>.
LICENSE
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.
SEE ALSO
Module Install Instructions
To install Blatte, copy and paste the appropriate command in to your terminal.
cpanm Blatte
perl -MCPAN -e shell install Blatte
For more information on module installation, please visit the detailed CPAN module installation guide.