hetu_script_dev_tools 0.0.8 hetu_script_dev_tools: ^0.0.8 copied to clipboard
Extensions for Hetu Script dart package. Includes file system resource context helper class and command line REPL for Hetu Script.
import 'package:hetu_script/hetu_script.dart';
import 'package:hetu_script_dev_tools/hetu_script_dev_tools.dart';
void main() {
final sourceContext = HTFileSystemResourceContext(root: '../../script/');
final hetu = Hetu(sourceContext: sourceContext);
hetu.init();
hetu.evalFile('import_test2.ht', invokeFunc: 'main');
// final result2 = hetu.evalFile('import_test.ht', invokeFunc: 'importTest');
// print(result2);
// final result3 = hetu.evalFile('mod.ht', invokeFunc: 'modTest');
// print(result3);
}