Skip to content

okamotoyuki/gorbe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ruby to Go source code compiler.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published