| 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__ | ||