Inspired by ESR pytogo (and tired of writing python code), I went the complete opposite way and came up with pygor:
https://github.com/raff/pygor pygor is written in Go, using the Python parser and AST from https://github.com/go-python/gpython (so right now it only targets Python 3.4). The origin of this was actually a python implementation that I started a long time ago, using Python ast, but hat didn't go very far because it was hard to do Go things in python. It doesn't generate runnable code, but aspire to generate at least code that passes the smell test of "go fmt" (with the problem that if "go fmt" fails to correctly format the code, the translation fails). pygor also attempt to convert some of the python magic (list and dict comprehension, for example) to Go, again mainly in order to generate formatted code. And it also comes with a concept of "runtime" (automatically imported when needed) to implement a couple of things that are hard to do inline. Enjoy, Raffaele -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.