Expr.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Expr/Interpreter/dummy.pm ↑ Summary Expr/CompilerRole.pm »
1 package Language::Expr;
2  
3 7 our $DATE = '2016-07-03'; # DATE
4 7 our $VERSION = '0.29'; # VERSION
5  
6 7 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 5 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 5 my $class = shift;
12 5 bless {}, $class;
13 }
14  
15 3 ▶sub get_compiler {
Subroutine get_compiler: called CC=1 SCAR=0.0
Pod documented
16 3 my ($self, $name) = @_;
17 3 my $mod = "Language::Expr::Compiler::$name";
18 3 (my $mod_pm = "$mod.pm") =~ s!::!/!g;
19 3 require $mod_pm;
20 3 $mod->new();
21 }
22  
23 4 ▶sub get_interpreter {
Subroutine get_interpreter: called CC=1 SCAR=0.0
Pod documented
24 4 my ($self, $name) = @_;
25 4 my $mod = "Language::Expr::Interpreter::$name";
26 4 (my $mod_pm = "$mod.pm") =~ s!::!/!g;
27 4 require $mod_pm;
28 4 $mod->new();
29 }
30  
31 7 1;
32 # ABSTRACT: Simple minilanguage for use in expression
33  
34 __END__
« Expr/Interpreter/dummy.pm ↑ Summary Expr/CompilerRole.pm »