summaryrefslogtreecommitdiff
path: root/tool/node_name.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 04:09:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 04:09:56 +0000
commita9ba30ee8661fbbb01f79a923cef70e2aa050a06 (patch)
tree9e3699a352b53e31647c1a2b407c524b040e4288 /tool/node_name.rb
parentee8f40b5a62a15298c668b57b3504e177289972c (diff)
* common.mk (node_name.inc): auto-generate node name list.
* iseq.c (ruby_node_name): ditto. * tool/node_name.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/node_name.rb')
-rwxr-xr-xtool/node_name.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/node_name.rb b/tool/node_name.rb
new file mode 100755
index 0000000..5d39e9f
--- /dev/null
+++ b/tool/node_name.rb
@@ -0,0 +1,4 @@
+#! ./miniruby -n
+if ~/enum node_type \{/..~/^\};/
+ ~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
+end