The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.