NAME

CatalystX::ASP::Parser - Role for CatalystX::ASP providing code parsing

SYNOPSIS

use CatalystX::ASP;
with 'CatalystX::ASP::Compiler', 'CatalystX::ASP::Parser';

sub execute {
  my ($self, $c, $scriptref) = @_;
  my $parsed = $self->parse($c, $scriptref);
  my $subid = $self->compile($c, $parsed->{data});
  eval { &$subid };
}

DESCRIPTION

This class implements the ability to parse ASP code into readable format for CatalystX::ASP::Compiler

METHODS

$self->parse($c, $scriptref)

Take a $scriptref and returns a hash including parsed data

$self->parse_file($c, $file)

Take a $file and returns a hash including parsed data

SEE ALSO