Commit 03597188 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

--- ChangeLog Tue, 13 Jan 2004 16:32:51 +0100 noe (mipsy/2_ChangeLog 1.63 604)
+++ ChangeLog Thu, 15 Jan 2004 17:46:19 +0100 noe (mipsy/2_ChangeLog 1.63 604)
@@ -1,3 +1,14 @@
+2004-01-15  Benoît Perrot  <benoit@lrde.epita.fr>
+	
+	* dev/mipsy.xml: Describe each instruction.
+	* dev/doc-inst-set-gen.py: New file.
+	* Makefile.am: Distribute it.
+	* doc/Makefile.am,
+	* doc/language.texi,
+	* doc/mipsy.texi:
+	Use doc-inst-set-gen.py and updated mipsy.xml to generate
+	instruction set documentation.
+	
 2004-01-13  Benoît Perrot  <benoit@lrde.epita.fr>
 
 	* doc/fdl.texi,
parent 2a4d6a57
2004-01-15 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.xml: Describe each instruction.
* dev/doc-inst-set-gen.py: New file.
* Makefile.am: Distribute it.
* doc/Makefile.am,
* doc/language.texi,
* doc/mipsy.texi:
Use doc-inst-set-gen.py and updated mipsy.xml to generate
instruction set documentation.
2004-01-13 Benot Perrot <benoit@lrde.epita.fr>
* doc/fdl.texi,
......
......@@ -10,4 +10,5 @@ EXTRA_DIST = \
dev/parse-asm-parse-gen.py \
dev/inst-makefile-gen.py \
dev/inst-nodes-gen.py \
dev/inst-builder-gen.py
dev/inst-builder-gen.py \
dev/doc-inst-set-gen.py
#!/usr/bin/env python
##
## This file is part of Mipsy, a tiny MIPS simulator
## Copyright (C) 2003 Benoit Perrot <benoit@lrde.epita.fr>
##
## Mipsy is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## Mipsy is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
import sys
import string, re
import mipsy
#### Mipsy's instruction set texi generator ----------------
parser = mipsy.InstructionSetParser()
instructions = parser.parse(sys.stdin)
f = file("inst-set.texi.tmp", "w")
sys.stdout = f
print """@comment Generated, do not edit by hand.
@node The @mipsy{} supported instruction set
@section The @mipsy{} supported instruction set"""
## Menu
print "@menu"
kind = ""
for inst in instructions:
if kind != inst.kind:
kind = inst.kind
print "* " + string.capwords(kind) + " instructions ::"
print "@end menu"
## Subsections
kind = ""
for inst in instructions:
if kind != inst.kind:
kind = inst.kind
print "@node " + string.capwords(kind) + " instructions"
print "@subsection " + string.capwords(kind) + " instructions"
desc = string.replace(inst.desc, "\n", " ")
desc = string.replace(desc, " ", " ")
print "@subsubsection " + string.upper(inst.opcode)
print "@findex " + string.upper(inst.opcode)
print desc
## Epilogue
f.flush()
f.close()
sys.stdout = sys.__stdout__
mipsy.lazy_overwrite("inst-set.texi", "inst-set.texi.tmp")
This diff is collapsed.
AM_MAKEINFOFLAGS = --no-split
TEXI2DVI = texi2dvi --batch
FROM_DOC_INST_SET_GEN_PY = \
inst-set.texi
BUILT_SOURCES = \
$(FROM_DOC_INST_SET_GEN_PY) doc-inst-set-gen.log
doc-inst-set-gen.log: $(top_srcdir)/dev/doc-inst-set-gen.py $(top_srcdir)/dev/mipsy.xml
$(top_srcdir)/dev/doc-inst-set-gen.py < $(top_srcdir)/dev/mipsy.xml
touch $@
$(FROM_DOC_INST_SET_GEN_PY): doc-inst-set-gen.log
MAINTAINERCLEANFILES = $(FROM_DOC_INST_SET_GEN_PY)
info_TEXINFOS = mipsy.texi
mipsy_TEXINFOS = \
macros.texi \
copying.texi \
fdl.texi \
invoking.texi \
internal.texi \
language.texi
mipsy_TEXINFOS = \
macros.texi \
copying.texi \
fdl.texi \
invoking.texi \
internal.texi \
language.texi \
$(FROM_DOC_INST_SET_GEN_PY) doc-inst-set-gen.log
......@@ -5,14 +5,16 @@
@mipsy{} supports a minimal MIPS instruction set and unlimited
registers.
@c FIXME: registers, syntax, etc.
@menu
* The @mipsy{} supported instruction set::
* @mipsy{} features::
@end menu
@node The @mipsy{} supported instruction set
@section The @mipsy{} supported instruction set
@comment -- Mipsy's supported instruction set
@include inst-set.texi
@comment -- Mipsy's feature
@node @mipsy{} features
@section @mipsy{} features
......@@ -114,9 +114,12 @@ Copying This Manual
@comment ---- Epilogue -------------------------------------
@comment -- Index
@node Index
@unnumbered Index
@printindex cp
@printindex fn
@bye
......@@ -2,34 +2,33 @@
(Created-By-Prcs-Version 1 3 2)
(Project-Description "")
(Project-Version mipsy 0 69)
(Parent-Version mipsy 0 68)
(Project-Version mipsy 0 70)
(Parent-Version mipsy 0 69)
(Version-Log
"Index: ChangeLog
--- ChangeLog Mon, 12 Jan 2004 18:58:50 +0100 noe (mipsy/2_ChangeLog 1.62 604)
+++ ChangeLog Tue, 13 Jan 2004 16:32:19 +0100 noe (mipsy/2_ChangeLog 1.62 604)
@@ -1,3 +1,15 @@
+2004-01-13 Benot Perrot <benoit@lrde.epita.fr>
+
+ * doc/fdl.texi,
+ * doc/mipsy.texi,
+ * doc/copying.texi,
+ * doc/internal.texi,
+ * doc/invoking.texi,
--- ChangeLog Tue, 13 Jan 2004 16:32:51 +0100 noe (mipsy/2_ChangeLog 1.63 604)
+++ ChangeLog Thu, 15 Jan 2004 17:46:19 +0100 noe (mipsy/2_ChangeLog 1.63 604)
@@ -1,3 +1,14 @@
+2004-01-15 Benot Perrot <benoit@lrde.epita.fr>
+
+ * dev/mipsy.xml: Describe each instruction.
+ * dev/doc-inst-set-gen.py: New file.
+ * Makefile.am: Distribute it.
+ * doc/Makefile.am,
+ * doc/language.texi,
+ * doc/macros.texi:
+ Organize texi files.
+ * doc/Makefile.am: Distribute new files.
+
2004-01-12 Benot Perrot <benoit@lrde.epita.fr>
+ * doc/mipsy.texi:
+ Use doc-inst-set-gen.py and updated mipsy.xml to generate
+ instruction set documentation.
+
2004-01-13 Benot Perrot <benoit@lrde.epita.fr>
* configure.ac, NEWS:
* doc/fdl.texi,
")
(New-Version-Log
"")
(Checkin-Time "Tue, 13 Jan 2004 16:32:51 +0100")
(Checkin-Time "Thu, 15 Jan 2004 17:46:59 +0100")
(Checkin-Login noe)
(Files
......@@ -37,8 +36,8 @@
;; ./
(AUTHORS (mipsy/0_AUTHORS 1.1 604))
(COPYING (mipsy/1_COPYING 1.1 604))
(ChangeLog (mipsy/2_ChangeLog 1.63 604))
(Makefile.am (mipsy/3_Makefile.a 1.7 604))
(ChangeLog (mipsy/2_ChangeLog 1.64 604))
(Makefile.am (mipsy/3_Makefile.a 1.8 604))
(NEWS (mipsy/b/25_NEWS 1.6 604))
(README (mipsy/4_README 1.2 604))
(TODO (mipsy/5_TODO 1.2 604))
......@@ -50,23 +49,24 @@
(config/Makefile.am (mipsy/7_Makefile.a 1.1 604))
;; ./dev/
(dev/doc-inst-set-gen.py (mipsy/c/21_doc-inst-s 1.1 705))
(dev/inst-builder-gen.py (mipsy/15_mipsy-buil 1.8 705))
(dev/inst-makefile-gen.py (mipsy/b/15_mipsy-mk-i 1.5 705))
(dev/inst-nodes-gen.py (mipsy/12_mipsy-inst 1.5 705))
(dev/mipsy.py (mipsy/16_mipsy.py 1.7 705))
(dev/mipsy.xml (mipsy/17_mipsy.xml 1.13 604))
(dev/mipsy.xml (mipsy/17_mipsy.xml 1.14 604))
(dev/parse-asm-parse-gen.py (mipsy/13_mipsy-pars 1.7 705))
(dev/parse-asm-scan-gen.py (mipsy/14_mipsy-scan 1.9 705))
;; ./doc/
(doc/Makefile.am (mipsy/b/9_Makefile.a 1.2 604))
(doc/Makefile.am (mipsy/b/9_Makefile.a 1.3 604))
(doc/copying.texi (mipsy/c/16_copying.te 1.1 604))
(doc/fdl.texi (mipsy/b/11_fdl.texi 1.2 604))
(doc/internal.texi (mipsy/c/17_internal.t 1.1 604))
(doc/invoking.texi (mipsy/c/18_invoking.t 1.1 604))
(doc/language.texi (mipsy/c/19_language.t 1.1 604))
(doc/language.texi (mipsy/c/19_language.t 1.2 604))
(doc/macros.texi (mipsy/c/20_macros.tex 1.1 604))
(doc/mipsy.texi (mipsy/b/10_mipsy.texi 1.3 604))
(doc/mipsy.texi (mipsy/b/10_mipsy.texi 1.4 604))
;; ./src/
(src/Makefile.am (mipsy/18_Makefile.a 1.2 604))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment