Project

General

Profile

Actions

Feature #2169

closed

[PATCH] Improvements of Ripper's DummyParser

Added by judofyr (Magnus Holm) about 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:25884]

Description

=begin
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.
=end


Files

dummyparser.diff (8.41 KB) dummyparser.diff Patch judofyr (Magnus Holm), 10/01/2009 11:18 PM
Actions

Also available in: Atom PDF

Like0
Like0