Moritz Lenz > Math-Expression-Evaluator > Math::Expression::Evaluator::Util

Download:
Math-Expression-Evaluator-v0.3.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Stalled  1
View/Report Bugs
Source  

NAME ^

Math::Expression::Evaluator::Util - Common functions for Math::Expression::Evaluator

SYNPOSIS ^

    use Math::Expression::Evaluator::Util qw(is_lvalue);

    # ...
    if (is_lvalue($ast)){
        # $ast represents an lvalue, at the moment just a variable
    }

DESCRIPTION ^

This is package with common functions used in the different modules in the Math::Expression::Evaluator distribution.

is_lvalue

is_lvalue($ast) checks if (a simplified version of) $ast represents something that can be assigned to, i.e. is a variable.

syntax highlighting: