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