get the basic add example working
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"log"
|
||||
|
||||
"github.com/mmcloughlin/avo/gotypes"
|
||||
"github.com/mmcloughlin/avo/pass"
|
||||
|
||||
"github.com/mmcloughlin/avo"
|
||||
"github.com/mmcloughlin/avo/reg"
|
||||
@@ -84,6 +85,11 @@ func (c *Context) Main(wout, werr io.Writer) int {
|
||||
return 1
|
||||
}
|
||||
|
||||
if err := pass.Compile.Execute(f); err != nil {
|
||||
diag.Println(err)
|
||||
return 1
|
||||
}
|
||||
|
||||
p := avo.NewGoPrinter(wout)
|
||||
if err := p.Print(f); err != nil {
|
||||
diag.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user