expressions
expressions copied to clipboard
A library to parse and evaluate simple expressions.
I have an expression something like this. ```dart var context = { a: '10', b: 'apples' }; String expression = "(a=='10' ? 'ten' : 'other').concat('_').concat(b)"; // Expected output: 'ten_apples' ```...
… call arguments. Fixes both issues in #19.
Firstly, we *love* this package. It's been great for our app! Issue is simple, if the expression has leading or trailing spaces, the parser throws an error: ```dart import 'package:expressions/expressions.dart';...
Read the below code and understand for large number calculation of multiplications. // Multiplies str1 and str2, and prints result. multiply(num1, num2) { var len1 = num1.length; var len2 =...
Allows upgrades to `petitparser` 5.0.0, which enables version solving with newer versions of `xml`. Solves problems like: ``` Because expressions >=0.2.0 depends on petitparser ^4.0.2 and xml >=5.4.0 depends on...
flutter_simple_calculator >=2.0.0 depends on expressions ^0.2.3 which depends on petitparser ^4.0.2,
flutter_simple_calculator >=2.0.0 depends on expressions ^0.2.3 which depends on petitparser ^4.0.2,
I want to call a method from a self defined object. When I try to call the method, I got the following exception: ExpressionEvaluatorException (ExpressionEvaluatorException: Access of member `doMyMethod` not...
I was trying a simple expression as follows but it keeps throwing errors - ` void example_2() { // Parse expression: var expression = Expression.parse("person.name='John'"); var context = {'person': Person('Jane')};...
configures pubspec.yaml to allow rxdart 0.27 - it seems between 0.26 and 0.27 were no breaking changes which affected the usage in this library 🤔️
Hello, Thanks so much for creating expressions, it's saved me a lot of trouble in the package I'm currently writing. Would it be possible to add support for the `~/`...