NAME

Class::Declarative::Semantics::Code - implements some code (perl or otherwise) in a declarative framework.

VERSION

Version 0.01

SYNOPSIS

This class serves two purposes: first, it's an example of what a semantic node class should look like, and second, it will probably end up being the class that builds most of the code references in a declarative program.

defines()

Called by Class::Declarative::Semantics during import, to find out what tags this plugin claims to implement and the parsers used to build its content.

build_payload, fixvars, fixcall, fixevent, make_code, make_select

The build_payload function is then called when this object's payload is built (i.e. in the stage when we're adding semantics to our parsed syntax). The payload of a code object is its callable code result.

The parent's payload will always have been created by the time this function is called.

The make_select function is by far the most complex of our code generators, as it has to find an iterator source and build a while loop.

AUTHOR

Michael Roberts, <michael at vivtek.com>

BUGS

Please report any bugs or feature requests to bug-class-declarative at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Declarative. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

LICENSE AND COPYRIGHT

Copyright 2010 Michael Roberts.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.