tokenizer: remove TokenStream, use sequences instead

This commit is contained in:
2023-10-16 22:16:53 -07:00
parent 15f5f313cc
commit e3bfa3fbfc
7 changed files with 58 additions and 52 deletions

View File

@ -20,11 +20,7 @@ class RunCommand : CliktCommand(help = "Run Program", name = "run") {
override fun run() {
val tool = FileTool(PlatformFsProvider.resolve(path))
val scope = Scope.root()
val main = tool.loadMainFunction(scope, setupEvaluator = {
addNativeProvider("internal", InternalNativeProvider(quiet = quiet))
addNativeProvider("ffi", FfiNativeProvider())
addNativeProvider("java", JavaNativeProvider())
})
val main = tool.loadMainFunctionStandard(scope, quiet = quiet)
if (dumpScope) {
val functionContext = main as FunctionContext