expression_language 1.0.0 copy "expression_language: ^1.0.0" to clipboard
expression_language: ^1.0.0 copied to clipboard

Library for parsing and evaluating simple expression language with additional references

example/main.dart

import 'package:expression_language/expression_language.dart';

void main() {
  var expressionGrammarDefinition = ExpressionGrammarParser({});
  var parser = expressionGrammarDefinition.build();
  var result = parser.parse('\"Hello 1 + 1 equals: \" +  (1 + 1)');
  var expression = result.value as Expression;
  var value = expression.evaluate();
  print(value);
}
27
likes
130
pub points
76%
popularity

Publisher

unverified uploader

Library for parsing and evaluating simple expression language with additional references

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

petitparser, rational

More

Packages that depend on expression_language