hetu_script_dev_tools 0.0.3+1 copy "hetu_script_dev_tools: ^0.0.3+1" to clipboard
hetu_script_dev_tools: ^0.0.3+1 copied to clipboard

outdated

Extensions for Hetu Script dart package. Includes file system resource context helper class and command line REPL for Hetu Script.

example/example.dart

import 'package:hetu_script/hetu_script.dart';
import 'package:hetu_script_dev_tools/hetu_script_dev_tools.dart';

void main() {
  final sourceContext = HTFileSystemSourceContext(root: '../../script/');
  final hetu = Hetu(sourceContext: sourceContext);
  hetu.init();
  final result = hetu.evalFile('import_test2.ht', invokeFunc: 'main');
  print(result);

  final result2 = hetu.evalFile('import_test.ht', invokeFunc: 'importTest');
  print(result2);

  final result3 = hetu.evalFile('mod.ht', invokeFunc: 'modTest');
  print(result3);
}
0
likes
0
pub points
0%
popularity

Publisher

verified publisherhetu.dev

Extensions for Hetu Script dart package. Includes file system resource context helper class and command line REPL for Hetu Script.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, hetu_script, path

More

Packages that depend on hetu_script_dev_tools