further improvements
Some checks failed
Build / build (push) Successful in 10m40s
Publish Image / publish (push) Failing after 34s
Test / build (push) Has been cancelled

This commit is contained in:
2024-04-01 17:02:44 -04:00
parent aebbe43999
commit f9e6e164b0
26 changed files with 168 additions and 138 deletions

View File

@@ -71,7 +71,7 @@ func compile(path string, debug bool) (bc *compiler.Bytecode, err error) {
return c.Bytecode(), nil
}
func ExecFileVM(f string, args []string, debug bool) (err error) {
func ExecFileVM(f string, args []string, debug, trace bool) (err error) {
var bytecode *compiler.Bytecode
object.Args = args
@@ -89,6 +89,7 @@ func ExecFileVM(f string, args []string, debug bool) (err error) {
mvm := vm.New(f, bytecode)
mvm.Debug = debug
mvm.Trace = trace
if err = mvm.Run(); err != nil {
fmt.Println(err)
return