3 ms·
It 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 p
by jcla1 13y ago
It 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/