Expr/Interpreter/Base.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Expr/CompilerRole.pm ↑ Summary Expr/InterpreterRole.pm »
1 package Language::Expr::Interpreter::Base;
2  
3 8 our $DATE = '2016-07-03'; # DATE
4 8 our $VERSION = '0.29'; # VERSION
5  
6 8 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 8 require Language::Expr::Parser;
11  
12 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
13 2 my $class = shift;
14 2 bless {}, $class;
15 }
16  
17 167 ▶sub eval {
Subroutine eval: called CC=1 SCAR=0.0
Pod documented
18 167 my ($self, $expr) = @_;
19 167 my $res = Language::Expr::Parser::parse_expr($expr, $self);
20 140 $res;
21 }
22  
23 8 1;
24 # ABSTRACT: Base class for Language::Expr interpreters
25  
26 __END__
« Expr/CompilerRole.pm ↑ Summary Expr/InterpreterRole.pm »