flight_script 0.0.2 flight_script: ^0.0.2 copied to clipboard
A small flutter compatible embeded scripting language scripting language. Because sometimes you just have to load your function from a database and have it change without a full app rebuild.
import 'package:flight_script/flight_script.dart';
/// Flight uses a reverse-polish notation. Arguments go before the function call
/// This program is equivalent to print("Hello, Dart!");
const program = """
"Hello, Flight Script!" print()
""";
void main() {
final interpreter = Interpreter();
interpreter.eval(program);
}