1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/makedocs.rb, template/insnstbl.html: removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-11-13 22:09:43 +00:00
parent 499fef3e53
commit 3688c7a1ee
3 changed files with 4 additions and 101 deletions

View file

@ -1,3 +1,7 @@
Wed Nov 14 07:07:51 2007 Koichi Sasada <ko1@atdot.net>
* tool/makedocs.rb, template/insnstbl.html: removed.
Wed Nov 14 02:50:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (parse.c): dependency also needs vpath.

View file

@ -1,39 +0,0 @@
<?xml version='1.0' encoding='SHIFT_JIS'?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><!--
$Id$
diary index
--><html xml:lang='ja' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html;charset=Shift_JIS' http-equiv='Content-Type'/>
<meta content='text/css' http-equiv='Content-Style-Type'/>
<meta content='text/javascript' http-equiv='Content-Script-Type'/>
<link href='./contents.css' rel='stylesheet' type='text/css'/>
<title>YARV: Yet another RubyVM / Instruction Table</title>
<link href='mailto:ko1 at atdot.net' rev='made'/>
<link href='../index.html' rel='index'/>
</head>
<body>
<h1>YARV: Instruction Table</h1>
<table border='1' cellspacing='1' align='center'>
<tr>
<th>type</th>
<th>Index</th>
<th>Instruction</th>
<th>Operands</th>
<th colspan='3'>Stacks</th>
</tr>
<%= tbl %>
</table>
<address>
SASADA Koichi / ko1 at atdot.net
</address>
</div>
</body>
</html>

View file

@ -1,62 +0,0 @@
#!/usr/bin/env ruby
#
#
require 'rb/insns2vm.rb'
insns = insns_def_new
{ # docs
'/doc/yarvarch.ja' => :desc_ja,
'/doc/yarvarch.en' => :desc_en,
}.each{|fn, s|
fn = $srcdir + fn
p fn
open(fn, 'w'){|f|
f.puts(insns.__send__(s))
}
}
def chg ary
if ary.empty?
return '&nbsp;'
end
ary.map{|e|
if e[0] == '...'
'...'
else
e.join(' ')
end
e[1]
}.join(', ')
end
open($srcdir + '/doc/insnstbl.html', 'w'){|f|
tbl = ''
type = nil
insns.each_with_index{|insn, i|
c = insn.comm[:c]
if type != c
stype = c
type = c
end
tbl << "<tr>\n"
tbl << "<td>#{stype}</td>"
tbl << "<td>#{i}</td>"
tbl << "<td>#{insn.name}</td>"
tbl << "<td>#{chg insn.opes}</td>"
tbl << "<td>#{chg insn.pops.reverse}</td>"
tbl << "<td> =&gt; </td>"
tbl << "<td>#{chg insn.rets.reverse}</td>"
tbl << "</tr>\n"
}
f.puts ERB.new(File.read($srcdir + '/template/insnstbl.html')).result(binding)
}
begin
system('t2n.bat --tmpl doc.tmpl ../doc/yarvarch.ja > ../doc/yarvarch.ja.html')
system('t2n.bat --tmpl doc.tmpl ../doc/yarvarch.en > ../doc/yarvarch.en.html')
rescue
end