|
|
|
|
|
by trotterdylan
3456 days ago
|
|
Thanks for trying it out! And sorry about the lacking documentation. I'll be fleshing it out over the next little while. Your assessment is right: the grumpc compiler takes a single Python file and spits out a Go package. Incidentally, this means you can import a Python module into Go code pretty easily. I don't have a ready solution for building a large existing project but I'll write up a quick doc to outline the process. The trickiest bit is that the Python statement "import foo.bar" translates to a Go import: import "prefix/foo/bar". Currently prefix always points at the grumpc/lib directory so that's one way to integrate your code, but I need to make it more configurable. |
|