My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages

The ruby-ast project is mostly a container project for a bunch of AST-based experiments written in ruby.

Currently this includes ruby AST loaders for both python and perl AST (from the compiler module, and PPI package respectively). However the meat of the project is the experimental python and perl to ruby converters.

Currently comes with a python2ruby script, which doees a fairly decent job:

# python2ruby test/python/test-7-list_comprehensions.py | ruby
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18] 
[25, 36, 49, 64, 81] 
9 
nil [10, 12, 14] 
[5, 6, 7] 
[7, 9] 
hello world 

See Home for more details.

Powered by Google Project Hosting