ruby/tool/node_name.rb

5 строки
121 B
Ruby
Executable File

#! ./miniruby -n
if ~/enum node_type \{/..~/^\};/
~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
end