Template::Alloy::Operator is a Perl module that provides the regexes necessary for Template::Alloy::Parse to parse operators and place them in their appropriate precedence.
It also provides the play_operator method which is used by Template::Alloy::Play and Template::Alloy::Compile for playing out the stored operator ASTs.
ROLE METHODS
play_operator
Takes an operator AST in the form of
[undef, '+', 1, 2]
Essentially, all operators are stored in RPN notation with a leading "undef" to disabiguate operators in a normal Alloy expression AST.
define_operator
Used for defining new operators.
See Template::Alloy for more details.
Requirements:
· Perl
Product's homepage
Requirements:
· Perl