summaryrefslogtreecommitdiffstats
path: root/tool
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
commitb551594f616186671cc8c7637912f432ae6b7b64 (patch)
tree9e3699a352b53e31647c1a2b407c524b040e4288 /tool
parent64b865465fc27ae9883f3464f3ae576a64cd81a2 (diff)
downloadruby-b551594f616186671cc8c7637912f432ae6b7b64.tar.gz
ruby-b551594f616186671cc8c7637912f432ae6b7b64.tar.xz
ruby-b551594f616186671cc8c7637912f432ae6b7b64.zip
* common.mk (node_name.inc): auto-generate node name list.
* iseq.c (ruby_node_name): ditto. * tool/node_name.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-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 000000000..5d39e9f5c
--- /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