hetu_script_dev_tools 0.1.0 hetu_script_dev_tools: ^0.1.0 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();
final result1 = hetu.evalFile('import_test2.ht', invokeFunc: 'main');
print(result1);
// final result2 = hetu.evalFile('import_test.ht', invokeFunc: 'importTest');
// print(result2);
// final result3 = hetu.evalFile('mod.ht', invokeFunc: 'modTest');
// print(result3);
}