summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 11:53:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-14 11:53:47 +0000
commitbe51387d55e0b9adf81ddd0d217d2ed05cd29199 (patch)
treebcc57510ce41e68ea86203b3b8daa4c4a4424758 /tool/transcode-tblgen.rb
parentbd9bd5295453b4287a4c6190a2b656d2e2a6eec0 (diff)
* tool/transcode-tblgen.rb: check unexpected actions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index a9df93f..b0d35f6 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -274,8 +274,10 @@ class ActionMap
"o3(0x#$1,0x#$2,0x#$3)"
when /\A([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])\z/i
"o4(0x#$1,0x#$2,0x#$3,0x#$4)"
- else
+ when /\A&/ # pointer to BYTE_LOOKUP structure
info.to_s
+ else
+ raise "unexpected action: #{info.inspect}"
end
end