This commit is contained in:
2026-01-28 12:43:17 -05:00
parent f9d3753806
commit 604178341d
10 changed files with 188 additions and 172 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"context"
"fmt"
"os"
@@ -22,12 +23,15 @@ func main() {
return
}
// Get File
filePath := os.Args[1]
// Create Runtime
rt, err := runtime.New(context.Background())
if err != nil {
panic(err)
}
// Run File
rt := runtime.New()
filePath := os.Args[1]
if err := rt.RunFile(filePath, os.Stdout, os.Stderr); err != nil {
os.Exit(1)
panic(err)
}
}