diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-27 07:27:19 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-27 07:27:19 +0000 |
| commit | 3e1bb3e9ff2b846c29f980442e1d6d6f519d67f4 (patch) | |
| tree | ec585ba5c983af89ff164ef8204bde6ae9b0add5 /ext/ripper | |
| parent | 8f0222fb6bb164dbb35eabdc273b5e2f4194f812 (diff) | |
| download | ruby-3e1bb3e9ff2b846c29f980442e1d6d6f519d67f4.tar.gz ruby-3e1bb3e9ff2b846c29f980442e1d6d6f519d67f4.tar.xz ruby-3e1bb3e9ff2b846c29f980442e1d6d6f519d67f4.zip | |
* parse.y (lambda): Perl6 style -> lambda expression. [NEW]
[VERY EXPERIMENTAL]
* gc.c (id2ref): must not assign pointers to long int. use
LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP.
[ruby-talk:149645]
* ruby.h: use LONG_LONG to simplify the change.
[ruby-talk:149645]
* dir.c (dir_each): rewinddir(3) before iteration.
[ruby-talk:149628]
* eval.c (rb_f_throw): replace all '0x%lx' by '%p'.
[ruby-talk:149553]
* missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit
size pointer. [ruby-talk:149553]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
| -rw-r--r-- | ext/ripper/lib/ripper/core.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/ripper/lib/ripper/core.rb b/ext/ripper/lib/ripper/core.rb index a365c8e34..f23535f56 100644 --- a/ext/ripper/lib/ripper/core.rb +++ b/ext/ripper/lib/ripper/core.rb @@ -61,6 +61,7 @@ class Ripper :def => 3, :defined => 1, :defs => 5, + :do_block => 1, :do_block => 2, :dot2 => 2, :dot3 => 2, @@ -76,6 +77,7 @@ class Ripper :if_mod => 2, :ifop => 3, :iter_block => 2, + :lambda => 2, :massign => 2, :method_add_arg => 2, :mlhs_add => 2, @@ -382,6 +384,10 @@ class Ripper a end + def on_do_block(a) + a + end + def on_do_block(a, b) a end @@ -442,6 +448,10 @@ class Ripper a end + def on_lambda(a, b) + a + end + def on_massign(a, b) a end |
