Mildew/Compiler.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use v5.10;
2 use MooseX::Declare;
3 use Mildew::AST;
4 use VAST;
5 BEGIN {
6 for (<src/VAST/*.pm>) {
7 require $_;
8 }
9 }
10 class Mildew::Compiler {
11 use Mildew::AST::Helpers;
12 has frontend => (is=>'ro');
13 has backend => (is=>'ro');
14 method ast($code) {
15 $self->frontend->parse($code);
16 }
17 method run($code) {
18 $self->backend->run($self->ast($code));
19 }
20 method compile($code,$output) {
21 $self->backend->compile($self->ast($code),$output);
22 }
23 }