Exprimo
Exprimo is a JavaScript evaluator written in Rust, inspired by the functionality of angular-expression-js. Designed to be simple and blazingly fast.
Description
Exprimo parses and evaluates JavaScript expressions efficiently and securely. It utilizes the power of Rust and its excellent memory safety guarantees to provide a reliable and fast JavaScript expression evaluator.
Installation
Before you can use Exprimo, you need to have Rust installed on your system. If you don't have it installed, you can download Rust from the official website here.
Once Rust is installed, you can install Exprimo by running:
Usage
First, you need to import Exprimo and create an instance of Evaluator:
use Evaluator;
use HashMap;
let mut context = new;
context.insert;
context.insert;
let evaluator = new;
Then, you can evaluate JavaScript expressions:
let result = evaluator.evaluate.unwrap;
println!;
//--outputs
// >The result is false
Examples
Please see the examples directory in the GitHub repository for more usage examples.
Contributing
Contributions to Exprimo are welcome! Please submit a pull request on GitHub.
License
Exprimo is licensed under the MIT license. Please see the LICENSE file in the GitHub
repository for more information.