1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/node_name.rb

11 lines
221 B
Ruby
Raw Normal View History

#! ./miniruby
# Used when making Ruby to generate node_name.inc.
# See common.mk for details.
while gets
if ~/enum node_type \{/..~/^\};/
~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
end
end