$ cat hello.py print "hello, world" print "hello, Flo!" $ cat hello.go package main import ( πg "grumpy" π_os "os" ) func initModule(πF *πg.Frame, _ []*πg.Object) (*πg.Object, *πg.BaseException) { var πTemp001 []*πg.Object _ = πTemp001 var πE *πg.BaseException; _ = πE for ; πF.State() >= 0; πF.PopCheckpoint() { switch πF.State() { case 0: default: panic("unexpected function state") } // line 1: print "hello, world" πF.SetLineno(1) πTemp001 = make([]*πg.Object, 1) πTemp001[0] = πg.NewStr("hello,\x20world").ToObject() if πE = πg.Print(πF, πTemp001, true); πE != nil { continue } // line 2: print "hello, Flo!" πF.SetLineno(2) πTemp001 = make([]*πg.Object, 1) πTemp001[0] = πg.NewStr("hello,\x20Flo!").ToObject() if πE = πg.Print(πF, πTemp001, true); πE != nil { continue } return nil, nil } return nil, πE } var Code *πg.Code func main() { Code = πg.NewCode("", "hello.py", nil, 0, initModule) π_os.Exit(πg.RunMain(Code)) }