ruby/tool/node_name.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 строки
236 B
Ruby
Исходник Обычный вид История

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