mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
tokenizer: remove TokenStream, use sequences instead
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user