Skip to content

is it possible to serialize the parse step and then to evaluate the expression? #8

Open
@cwmoss

Description

@cwmoss

hi,
i like the idea to use runtime closures in expressions. symfony expression language feels strange in (not?) dealing with this.

is it possible to have a parse and an evaluate step with this library?
like:

$expr = $smplang->parse("name=='otto'");
// save for using it 1000 times
$result = $expr->eval(['name'=>'arthur']);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions