A small scripting language to embed in your flutter projects.

Features

  • Lightweight scripting. Define functions. create loops. Assign variables. All the usuals.
  • Call dart functions from flight, or call flight from dart.
  • Interpreter can dynamically adapt while running
  • VM is separate from the parser, for added extensibility

Getting started

Initializing the interpreter and running a script:

import 'package:flight_script/flight_script.dart';

void main() {
  final interpreter = Interpreter();
  interpreter.eval('"The answer to the ultimate question is " << 42 print');
}

Result

The answer to the ultimate question is  42

Notice that returned values are returned in an array, as multiple returns are allowed

Examples

Libraries

flight_script