Created
January 16, 2013 17:20
-
-
Save enebo/4548938 to your computer and use it in GitHub Desktop.
Column is not hooked up yet and many things are missing but this is first nearly working ripper example for JRuby.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system ~/work/jruby ripper * 935% jruby -e 'require "ripper"; require "pp"; pp Ripper::SexpBuilder.new("1 + 2").parse' | |
jruby -e 'require "ripper"; require "pp"; pp Ripper::SexpBuilder.new("1 + 2").parse' | |
[:program, | |
[:stmts_add, | |
[:stmts_new], | |
[:binary, [:@int, "1", [1, 0]], :+, [:@int, "2", [1, 0]]]]] | |
system ~/work/jruby ripper * 936% mri19 -e 'require "ripper"; require "pp"; pp Ripper::SexpBuilder.new("1 + 2").parse' | |
mri19 -e 'require "ripper"; require "pp"; pp Ripper::SexpBuilder.new("1 + 2").parse' | |
[:program, | |
[:stmts_add, | |
[:stmts_new], | |
[:binary, [:@int, "1", [1, 0]], :+, [:@int, "2", [1, 4]]]]] |
This is big. 👍
I think it's time for me to stock up some beer to keep the promise of sending it in case Ripper support would be added to JRuby.
When is this expected to hit GA JRuby?
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍