fn_express 1.1.2
fn_express: ^1.1.2 copied to clipboard
A Dart package for parsing and evaluating mathematical expressions with support for variables, functions, and constants.
example/fn_express_example.dart
import 'dart:io';
import 'package:fn_express/fn_express.dart';
void main() => Repl(
onInput: () => stdin.readLineSync(),
onOutput: (output, {newline = true}) =>
newline ? stdout.writeln(output) : stdout.write(output),
).start();