hetu_script 0.2.0 copy "hetu_script: ^0.2.0" to clipboard
hetu_script: ^0.2.0 copied to clipboard

outdated

Hetu is a lightweight script language for embedding in Flutter apps.

example/example.dart

import 'package:hetu_script/hetu_script.dart';

void main() {
  var hetu = Hetu();
  hetu.init();
  hetu.eval(r'''
      fun closure(func) {
        var i = 42
        fun nested () {
          i = i + 1
          print(func(i))
        }
        return nested
      }

      fun main {
        var func = closure( fun (n) { return n * n } )
        func()
        func()
      }
      ''', invokeFunc: 'main');
}
48
likes
0
pub points
63%
popularity

Publisher

verified publisherhetu.dev

Hetu is a lightweight script language for embedding in Flutter apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, characters, meta, path, pub_semver, quiver, recase

More

Packages that depend on hetu_script