Project

rubify

0.0
No commit activity in last 3 years
No release in over 3 years
Takes parsed s-expressions for other languages and emits formatted ruby using ruby_scribe.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0

Runtime

~> 2.0.4
~> 0.13
 Project Readme

Rubify¶ ↑

This is a collection of tools to grab abstract syntax trees from other languages (using external parsers) and convert them into Ruby. From there we can perform some idiomizing transformations, and then spit out cleanly-formatted Ruby code from ruby_scribe.

Requirements¶ ↑

This gem requires jruby as we currently extract AST’s using Eclipse’s solid language parser / AST interface.

Also required is ruby_scribe which can be used to write out ruby files.

Usage¶ ↑

Rubifying PHP Files¶ ↑

# Cat out the Ruby version of a PHP file
$ rubify cat php my_file.php

# Convert a file or directory of PHP files and converts to Ruby
$ rubify convert php my_php_project new_ruby_project

Rubifying Java Files¶ ↑

# Cat out the Ruby version of a PHP file
$ rubify cat php my_file.php

# Convert a file or directory of PHP files and converts to Ruby
$ rubify convert php my_php_project new_ruby_project