hetu_script_dev_tools 0.0.1 hetu_script_dev_tools: ^0.0.1 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 = 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);
}