Gorbe is a Ruby to Go source code compiler. Gorbe uses grumpy for the runtime but itself also has some extension for the Ruby support.
$ cd bin
$ echo "p(1 + 1) unless false" | ./gorbec
- Clone grumpy
- Set paths for grumpy
$ cd grumpy $ make $ export PATH=$PWD/build/bin:$PATH $ export GOPATH=$PWD/build $ export PYTHONPATH=$PWD/build/lib/python2.7/site-packages
- Set paths for gorbe
$ cd gorbe $ export GOPATH=$GOPATH:$PWD/go
- Execute the following command
$ rake init
- Run
$ echo "p(1 + 1) unless false" | rake run
$ rake test
After checking out the repo, run bin/setup
to install dependencies.
Bug reports and pull requests are welcome on GitHub at https://github.com/okamotoyuki/gorbe.
The gem is available as open source under the terms of the MIT License.