3 ms·
Author here, in case anyone has any questions!
by jcla1 13y ago
Author here, in case anyone has any questions!
- sdegutis 13y agoHow 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/