Language::Expr::Interpreter::Default - A default interpreter for Language::Expr
This document describes version 0.23 of module Language::Expr::Interpreter::Default (in distribution Language-Expr), released on 2014-05-01.
use Language::Expr::Interpreter::Default; my $itp = Language::Expr::Interpreter::Default->new; $itp->vars->{a} = 'A'; say $itp->eval(q["$a b" . "c"]); # "A b c"
Interprets Language::Expr expression. Some notes:
Uses boolean module.
Comparison like '1 > 1' and '
Follows Perl's notion of true and false.
That is, this expression ' "" || "0" || 2 ' will result to 2 because Perl thinks "" and "0" are false.
Store variables.
List known functions.
Current recursion level.
Currently subexpression (map/grep/usort) doesn't work yet.
Please visit the project's homepage at https://metacpan.org/release/Language-Expr.
Source repository is at https://github.com/sharyanto/perl-Language-Expr.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Language-Expr
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Language::Expr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Expr
CPAN shell
perl -MCPAN -e shell install Language::Expr
For more information on module installation, please visit the detailed CPAN module installation guide.