Ruby2CExtension
Ruby2CExtension is a Ruby to C extension translator/compiler. It takes any Ruby source file, parses it using Ruby’s builtin parser and then translates the abstract syntax tree into “equivalent” C extension code.
Requirements
-
Ruby 1.8.4, 1.8.5 or 1.8.6
-
RubyNode (available at rubynode.rubyforge.org/)
Installation
Just run (as root):
gem install ruby2cext
Or if you do not use the gem:
ruby setup.rb
This will install Ruby2CExtension to the default locations. Optionally you can supply some options to setup.rb to customize the installation (see “ruby setup.rb –help”).
Documentation
Please see doc/index.html for more documentation.
License
Copyright 2006-2007 Dominik Bathon <[email protected]>
Ruby2CExtension is licensed under the same terms as Ruby.