summaryrefslogtreecommitdiffstats
path: root/tool/node_name.rb
blob: 5d39e9f5cc0f4db95e5ba452416f45d1281aad4d (plain)
1
2
3
4
#! ./miniruby -n
if ~/enum node_type \{/..~/^\};/
  ~/(NODE_.+),/ and puts("      case #{$1}:\n\treturn \"#{$1}\";")
end