NAME

Plasp::Parser - Role for Plasp providing code parsing

SYNOPSIS

  package Plasp;
  with 'Plasp::Compiler', 'Plasp::Parser';

  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 parse ASP code into readable format for Plasp::Compiler

METHODS

$self->parse($scriptref)

Take a $scriptref and returns a hash including parsed data

$self->parse_file($file)

Take a $file and returns a hash including parsed data

SEE ALSO