From: Magnus Holm Date: 2009-10-01T23:18:53+09:00 Subject: [ruby-core:25884] [Feature #2169] [PATCH] Improvements of Ripper's DummyParser Feature #2169: [PATCH] Improvements of Ripper's DummyParser http://redmine.ruby-lang.org/issues/show/2169 Author: Magnus Holm Status: Open, Priority: Normal Category: test In order to properly test #1939, this patch makes the following changes: * Removal scanner events which simply returned the first argument. These are already generated by Ripper. * Many of the untested parser events had wrong number of arguments. All untested parser events are now automatically generated. * Basic support for blocks: parse("p { |var| 123 }") # => "[fcall(p,[],&block([var],[123]))]" These changes are fully backward-compatible, and no tests are affected. The patch is created by "git diff" and should be applied by "patch -p1 < dummyparser.diff". Please let me know if you need it in another format. ---------------------------------------- http://redmine.ruby-lang.org