aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--template/insnstbl.html39
-rw-r--r--tool/makedocs.rb62
3 files changed, 4 insertions, 101 deletions
diff --git a/ChangeLog b/ChangeLog
index 519752c68b..4d20540346 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/template/insnstbl.html b/template/insnstbl.html
deleted file mode 100644
index 1a3613d897..0000000000
--- a/template/insnstbl.html
+++ /dev/null
@@ -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>
-
-
-
diff --git a/tool/makedocs.rb b/tool/makedocs.rb
deleted file mode 100644
index 56cb21565f..0000000000
--- a/tool/makedocs.rb
+++ /dev/null
@@ -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
-