mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2c17921671
* parse.y [ripper]: event name is changed: on__XXX -> on_XXX. * ext/ripper/eventids2.c: ditto. * ext/ripper/ripper.rb.in: ditto. * ext/ripper/lib/ripper.rb: sync with ripper.rb.in. * ext/ripper/lib/ripper/tokenizer: ditto. * ext/ripper/lib/ripper/filter: new file. * sample/ripper/colorize.rb: new file. * sample/ripper/strip-comment.rb: new file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16 lines
269 B
Ruby
Executable file
16 lines
269 B
Ruby
Executable file
# $Id$
|
|
|
|
ids = File.readlines(ARGV[0]).map {|s| s.split[0] }
|
|
|
|
ids.each do |id|
|
|
puts "static ID ripper_id_#{id};"
|
|
end
|
|
|
|
puts
|
|
puts 'static void'
|
|
puts 'ripper_init_eventids1()'
|
|
puts '{'
|
|
ids.each do |id|
|
|
puts %Q[ ripper_id_#{id} = rb_intern("on_#{id}");]
|
|
end
|
|
puts '}'
|