3 ms·
How does it actually work? Does it compile to Go's intermediate language and then use the normal Go tool chain to compile it into native code, and then execute
by sdegutis 13y ago
How does it actually work? Does it compile to Go's intermediate language and then use the normal Go tool chain to compile it into native code, and then execute it? Or is it just an AST interpreter?
- jcla1 13y agoIt takes a given Gisp program and then lexes/parses it into a Gisp AST. Then it translates that Gisp AST into a Go AST [1] and then just prints out [2] the Go program that would generate that specific Go AST. [1] http://golang.org/pkg/go/ast/ http://golang.org/pkg/go/ast/ [2] http://golang.org/pkg/go/printer/ http://golang.org/pkg/go/printer/