jruby-parser
jruby-parser copied to clipboard
JRuby's parser customized for IDE usage
Found bug with error prone. Printing an Array by itself is non-sensical.
Found with error prone.
I am using jruby-parser to rewrite code, but with some code is has some problems: This: require 'jruby-parser' root = JRubyParser.parse( %q{ def log(severity) case severity when Severity::DEBUG @logging_services.debug(msg.to_s) when...
Cloned the repo and ran `mvn clean package`. The build process failed with the following compilation error. ``` [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/sgopal1/code/jruby-parser/src/org/jrubyparser/rewriter/ReWriteVisitor.java:[168,7] error: ReWriteVisitor...
It seems like there is an inconsistency introduced in ruby 2.0 regarding the use of lambda syntax. The issue is detailed [here](http://ruby-journal.com/becareful-with-space-in-lambda-hash-rocket-syntax-between-ruby-1-dot-9-and-2-dot-0/) In ruby 2.0 the following is valid (notice...
The following code gives no syntax error when using ruby, but fails to parse with jruby parser (in all compat modes). ``` def initialize(access_key_id:, secret_access_key:, bucket:, max_size: nil, prefix: nil,...
The parser fails to parse a file containing unicode characters like the following : ``` class Queue def clear end alias_method :💣, :clear end ``` I made sure I am...
Really trying to finally get rsense out the door and noticed the current gem is a bit behind. I can work from a local copy of course, but that's not...
``` ruby begin puts "test" rescue Exception => hello puts hello end ``` This snippet will create a block node and then for hello it will make a localasgnnode and...
I parsed this method and I was trying to regenerate the code with this code: ``` sw = java.io.StringWriter.new rwv = org.jrubyparser.rewriter.ReWriteVisitor.new(sw,'') cbw = org.jrubyparser.rewriter.ClassBodyWriter.new(rwv,corr_node) cbw.write sw.to_string ``` This code...