JeanCarloEM / jexpeval

An asynchronous, pluggable, browser-compatible and safe string evaluator written in Javascript.
https://jexpeval.jcem.pro
Mozilla Public License 2.0
0 stars 0 forks source link

jExpEval

</> - typescript license - MPL 2.0+ Status - development

jExpEval is an asynchronous, pluggable, browser-compatible and safe string evaluator. This uses parsers like jsep and resolves the binary expression tree returned by it.

Goal

It acts as an expression parser that works with any lexical analyzer that returns a binary tree, as simple as:

new jexpeval(anyParserCaller, callerSolver, valuesSolver)
  .eval("2 * 5")
  .then((r) => console.log(r));
// show 10

Where:

Targets

Features

Dependencies

Need a string parser that returns a expressions tree.

Project and To-do

jExpEval is developed for (and as an integral part of) strTranformJs. See project to-do for more.

License