NAME
Plasp::Compiler - Role for Plasp providing code compilation
SYNOPSIS
package Plasp;
with 'Plasp::Parser', 'Plasp::Compiler';
sub execute {
  my ($self, $scriptref) = @_;
  my $parsed = $self->parse($scriptref);
  my $subid = $self->compile($parsed->{data});
  eval { &$subid };
}
DESCRIPTION
This class implements the ability to compile parsed ASP code.
METHODS
- $self->compile($scriptref, $subid)
 - 
Takes a
$scriptrefthat has been parsed and$subidfor the name of the subroutine to compile the code into. Returns - $self->compile_include($include)
 - 
Takes an
$includefile. This will search for the file inIncludesDirand parse it, and assign it a$subidbased on it's filename. - $self->compile_file($file)
 - 
Takes an
$fileassuming it exists. This will search for the file inIncludesDirand parse it, and assign it a$subidbased on it's filename. - $self->register_include($scriptref)
 - 
Registers the file file of any calls to
$Response->Include()so as to prevent infinite recursion