Skip to content
Ruby to Go source code compiler.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
go
lib
test
.gitignore
.ruby-version
Gemfile
LICENSE.txt
README.md
Rakefile
gorbe.gemspec

README.md

Gorbe

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.

Usage

Compile Ruby to Go source code

$ cd bin
$ echo "p(1 + 1) unless false" | ./gorbec

Compile Ruby to Go source code and immediately run it on Grumpy

  1. Clone grumpy
  2. 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
  3. Set paths for gorbe
    $ cd gorbe
    $ export GOPATH=$GOPATH:$PWD/go
  4. Execute the following command
    $ rake init
  5. Run
    $ echo "p(1 + 1) unless false" | rake run

Run test

$ rake test

Development

After checking out the repo, run bin/setup to install dependencies.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/okamotoyuki/gorbe.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.