Overview
A Dart library that enables parsing and evaluating simple expressions similar to those in Dart and JavaScript. It supports basic arithmetic, logical operations, variable substitution, and function calls, making it ideal for dynamic calculations within applications. The package is lightweight and designed for use in scenarios requiring runtime expression evaluation without the complexity of full scripting engines. It works across all major platforms including mobile, web, and desktop.
Use cases
- Dynamic form calculations
- Real-time data filtering
- Configurable business rules
- Mathematical formula evaluation
- User-defined expression inputs
Key features
- Supports arithmetic and logical operators
- Variable and function substitution
- Cross-platform compatibility
- Simple and intuitive API
- Lightweight and fast evaluation
Suitable for
- Apps needing runtime math expressions
- Configuration-driven logic
- Educational tools with formula input
- Data processing with user-defined rules
Considerations
- Not suitable for complex scripting
- Limited to basic expression syntax
- Security risks with untrusted input
- No support for advanced programming constructs
- Requires careful validation in production