JPH025132A - Automatic document forming system - Google Patents

Automatic document forming system

Info

Publication number
JPH025132A
JPH025132A JP15470088A JP15470088A JPH025132A JP H025132 A JPH025132 A JP H025132A JP 15470088 A JP15470088 A JP 15470088A JP 15470088 A JP15470088 A JP 15470088A JP H025132 A JPH025132 A JP H025132A
Authority
JP
Japan
Prior art keywords
module
source program
program
input
translation list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP15470088A
Other languages
Japanese (ja)
Inventor
Masahiro Shinkawa
新川 正博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP15470088A priority Critical patent/JPH025132A/en
Publication of JPH025132A publication Critical patent/JPH025132A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically form a document by inputting a source program file or a translation list storing file, finding out the relational information of modules n each program and finding out relation between module names and procedure names based on the information. CONSTITUTION:An existing source program or translation list storing file is inputted and a statement having an instruction for calling a module is extracted. A module name defined in the instruction operand is found out, all module names called by the module name allocated to the source program or translation list are found out and master-slave relation is expressed by a parameter. The operation is executed for all modules in input files and the found parameter groups are collected and inputted to a fair copy system. Thus, the automatic document formation can be attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム保守用ドキュメントの自動作成方式
に関し、特に既存の原始プログラムや翻訳リストから高
品質で信頼性の高いドキュメントを作成することが可能
な、ドキュメント自動作成方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for automatically creating documents for program maintenance, and in particular, it is possible to create high-quality and reliable documents from existing source programs and translation lists. Regarding automatic document creation method.

〔従来の技術〕[Conventional technology]

従来のこの種の方式では、例えば、「ソフトウェア構造
設計支援システム(ADDS)J(日立評論vo1.6
6(1984年)p、15−1.8)に記載されている
如く、ある一定の規則に従った情報を原始プログラム中
にコメントとして記述する方式となっていた。
In this type of conventional method, for example, "Software Structure Design Support System (ADDS) J (Hitachi Review vol. 1.6)
6 (1984) p. 15-1.8), information according to certain rules was written as comments in the source program.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、原始プログラム中にある一定の規則に
従った情報をコメン1−として記述しなければならず、
従って、既存のプログラムで規則に従っていない原始プ
ログラムについては、適用できないという問題があった
In the above-mentioned conventional technology, information according to a certain rule must be written as a comment 1- in the source program,
Therefore, there is a problem that the method cannot be applied to existing programs that do not follow the rules.

また、機能追加による原始プログラムの変更時も、上述
の規則に従った他の情報の見直しが必要であり、プログ
ラムの規模によっては見直し作業が大変であるという問
題もあった。
Further, when changing the source program due to the addition of functions, it is necessary to review other information according to the above-mentioned rules, and depending on the scale of the program, the review work can be difficult.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来技術における上述の如き問題を解消
し、原始プログラム格納ファイルや翻訳リス1−格納フ
ァイルを入力にして、モジュールの関連情報をプログラ
ム単位に求め、これを基にモジュール名称と手続き名称
の関連を求めることにより、清書システムの入力となり
得る情報を作成するためのドキュメン1〜自動作成方式
を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to solve the above-mentioned problems in the prior art, and to use source program storage files and translation list 1-storage files as input, and to An object of the present invention is to provide a document 1 to automatic creation method for creating information that can be input to a fair copying system by obtaining information for each program and finding a relationship between a module name and a procedure name based on this information.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の」−北口的は、プログラム保守用ドキュメント
の作成方式において、既存の原始プログラムや翻訳リス
ト格納ファイルを入力として、他モジュールを呼出す命
令から呼出しモジュール名称と同時に、原始プログラム
の同要を記述した文を求め、主従関係をパラメータ化し
て、主モジュールについてはプログラム概要をパラメー
タに付加することにより、清書システムの入力パラメー
タを作成することを特徴とするドキュメン1〜自動作成
方式によって達成される。
According to Kitaguchi's method of creating a document for program maintenance, the present invention uses an existing source program or translation list storage file as input, and from a command that calls another module, the calling module name and the same essentials of the source program are written. This is achieved by document 1 to automatic creation method, which is characterized in that the input parameters of the fair copying system are created by finding a sentence, parameterizing the master-slave relationship, and adding a program outline to the parameters for the main module.

〔作用〕 本発明に係るドキュメント自動作成方式においては、現
存する原始プログラムや翻訳リスミル格納ファイルを入
力にして、モジュールを呼出すための命令を持つステー
トメン1−を抽出し、この命令オペランドに定義しであ
るモジュール名称を求めて、原始プログラムや翻訳リス
トについているモジュール名称が呼出すモジュール名称
をすべて求め、これから、主従関係をパラメータ化する
[Operation] In the automatic document creation method according to the present invention, an existing source program or a translation resmiling storage file is input, statement 1- having an instruction for calling a module is extracted, and statement 1- is defined as an operand of this instruction. Find the module name that is, find all the module names that are called by the module name attached to the source program or translation list, and then parameterize the master-slave relationship.

これを、入力ファイルのモジュールについてすべて実行
し、求めたパラメータ群を集め、清書システムに入力す
ることにより、ドキュメント自動作成が可能になる。
By executing this for all modules of the input file, collecting the obtained parameter groups, and inputting them into the copywriting system, automatic document creation becomes possible.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて詳細に説明する
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第1図は本発明の処理を示す動作フローチャートであり
、図の破線で囲まれた範囲が、本発明の処理動作を示し
ている。また、第2図は、原始プログラムファイルに格
納されている原始プログラムの概要を示す図、第3図は
、後述する中間テーブルの構成を示す図、第4図は、清
書システムへの入力パラメータを示す図、第5図は、清
書システムにより作成されるモジュール関連図を示して
いる。以下、上記各図に基づいて、本発明の処理動作を
説明する。
FIG. 1 is an operation flowchart showing the processing of the present invention, and the range surrounded by the broken line in the figure shows the processing operation of the present invention. In addition, Fig. 2 shows an overview of the source program stored in the source program file, Fig. 3 shows the structure of an intermediate table, which will be described later, and Fig. 4 shows the input parameters to the fair copy system. The diagram shown in FIG. 5 shows a module related diagram created by the fair copying system. Hereinafter, the processing operation of the present invention will be explained based on the above-mentioned figures.

ステップ01では、原始プログラムファイル中の原始プ
ログラムについて、モジュール名を呼出す命令(例えば
、CALL)ワードを含むテキストをすべて抽出する。
In step 01, all text containing an instruction (eg, CALL) word that calls a module name is extracted for the source program in the source program file.

次に、モジュールの概要を定義するワード(例えば、T
ITLE)を含むテキストを抽出する。ここでは、第2
図における原始プログラム(、A)、(B)、・・・・
に示す如き結果を得たものとする。
Next, a word (e.g. T
Extract the text containing (ITLE). Here, the second
The source program in the figure (,A), (B),...
Assume that the results shown in are obtained.

すべてのモジュールについて上述の抽出動作を行った後
、ステップ02では、抽出したテキストを入力にして、
モジュールの主従関係を求め、これを、ステップ03で
、第3図に示す如き中間テーブルの形に作成する。
After performing the above extraction operation for all modules, in step 02, input the extracted text,
The master-slave relationship of the modules is determined, and in step 03 this is created in the form of an intermediate table as shown in FIG.

第3図に示す中間テーブルを基に、ステップ04では、
データのパラメータ化を行う。ここでは、上記データを
入力として、主モジユール名称をNAMEパラメータに
、従モジュール名称をEXTERNALパラメータに展
開する。また、モジュールの概要を定義したテキストは
、その内容をNAMEパラメータに付加するようにして
、第4図に示す如きパラメータ群を作成する。
Based on the intermediate table shown in FIG. 3, in step 04,
Parameterize the data. Here, using the above data as input, the main module name is expanded into the NAME parameter, and the slave module name is expanded into the EXTERNAL parameter. Furthermore, the text defining the outline of the module is added to the NAME parameter to create a parameter group as shown in FIG.

上述の処理動作で作成されたパラメータ群を清書システ
ムに入力する(ステップ05)ことにより、第5図に示
す如きモジュール関連図のドキュメン1へが作成される
By inputting the parameter group created by the above-mentioned processing operation into the transcription system (step 05), a module related diagram document 1 as shown in FIG. 5 is created.

上記実施例によれば、既存のプログラムで規則に従って
いない原始プロゲラl\についても、モジュールの主従
関係を求め、前述の清書システムに入力するようにした
ので、既存の清書システムの機能を有効に利用しながら
、高信頼性を有するモジュール関連のドキュメントを作
成することができるという効果がある。
According to the above embodiment, the master-slave relationship of the module is determined even for the primitive progera l\ which does not follow the rules in the existing program, and is input into the above-mentioned transcription system, so the functions of the existing transcription system can be effectively used. However, it is possible to create highly reliable module-related documents.

上記実施例においては、少数の原始プログラムを例に挙
げたが、本発明によれば、ソフトウェアのプログラムの
規模が増大し、モジュール間の関連が複雑になっても、
原始プログラムを入力して上記処理を行うことにより、
モジュールの主従関係がグローバルにわかると同時に、
高品質なドキュメントが自動的に作成される。更に、一
つのファイルに製品のすべての原始プログラムを格納し
て上記処理を行うことにより、製品全体のモジュール関
連がわかる、または、翻訳リスト格納ファイルを入力に
すれば、マクロ命令中のモジュール呼出しもわかる等の
付加的な効果もある。
In the above embodiment, a small number of source programs were taken as an example, but according to the present invention, even if the scale of the software program increases and the relationships between modules become complicated,
By inputting the source program and performing the above processing,
At the same time, you can understand the master-slave relationship of modules globally,
High-quality documents are automatically created. Furthermore, by storing all the source programs of a product in one file and performing the above processing, you can understand the module relationships of the entire product, or if you use a translation list storage file as input, you can also make module calls in macro instructions. There are also additional effects such as understanding.

〔発明の効果〕〔Effect of the invention〕

以」〕、述べた如く、本発明によれば、プログラム保守
用ドキュメントの作成方式において、既存の原始プログ
ラムや翻訳リスト格納ファイルを入力として、他モジュ
ールを呼出す命令から呼出しモジュール名称と同時に、
原始プログラムの同要を記述した文を求め、主従関係を
パラメータ化して、主モジュールについてはプログラム
概要をパラメータに付加することにより、清書システム
の入力パラメータを作成するようにしたので、原始プロ
グラム格納ファイルや翻訳リスト格納ファイルを入力に
して、モジュールの関連情報をプログラム単位に求め、
これを基にモジュール名称と手続き名称の関連を求める
ことにより、清書システ11の入力となり得る情報を作
成するためのトキュメン1〜自動作成方式を実現できる
という顕著な効果を奏するものである。
As described above, according to the present invention, in the method of creating a program maintenance document, an existing source program or a translation list storage file is input, and a calling module name is simultaneously input from an instruction to call another module.
By finding a statement that describes the same essentials of the source program, parameterizing the master-slave relationship, and adding the program outline to the parameters for the main module, input parameters for the transcription system are created. or translation list storage file as input, obtain module-related information for each program,
By determining the relationship between the module name and the procedure name based on this, it is possible to realize the automatic creation method of Tocumen 1 for creating information that can be input to the fair copy system 11.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の処理を示す動作フローチャート、第2
図は原始プログラムファイルに格納されている原始プロ
グラムの概要を示す図、第3図は中間テーブルの構成を
示す図、第4図は清書システムへの入力パラメータを示
す図、第5図は清書システムにより作成されるモジュー
ル関連図である。 01〜05:処理ステップ、1:命令やモジュール概要
を示すワード、2:主モジユール名称、3:テキスト。 第 図 第 図 第 図 第 図 第 図
FIG. 1 is an operation flowchart showing the processing of the present invention, and FIG.
The figure shows an overview of the source program stored in the source program file, Figure 3 shows the structure of the intermediate table, Figure 4 shows the input parameters to the fair copy system, and Figure 5 shows the fair copy system. It is a module related diagram created by. 01 to 05: Processing step, 1: Word indicating command or module outline, 2: Main module name, 3: Text. Figure Figure Figure Figure Figure

Claims (1)

【特許請求の範囲】[Claims] 1、プログラム保守用ドキュメントの作成方式において
、既存の原始プログラムや翻訳リスト格納ファイルを入
力として、他モジュールを呼出す命令から呼出しモジュ
ール名称と同時に、原始プログラムの同要を記述した文
を求め、主従関係をパラメータ化して、主モジュールに
ついてはプログラム概要をパラメータに付加することに
より、清書システムの入力パラメータを作成することを
特徴とするドキュメント自動作成方式。
1. In the method of creating a document for program maintenance, an existing source program or translation list storage file is input, and a statement that describes the calling module name and the same essentials of the source program is obtained from an instruction that calls another module, and the master-slave relationship is determined. An automatic document creation method characterized by creating input parameters for a transcription system by parameterizing the main module and adding a program outline to the parameters for the main module.
JP15470088A 1988-06-24 1988-06-24 Automatic document forming system Pending JPH025132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15470088A JPH025132A (en) 1988-06-24 1988-06-24 Automatic document forming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15470088A JPH025132A (en) 1988-06-24 1988-06-24 Automatic document forming system

Publications (1)

Publication Number Publication Date
JPH025132A true JPH025132A (en) 1990-01-10

Family

ID=15590036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15470088A Pending JPH025132A (en) 1988-06-24 1988-06-24 Automatic document forming system

Country Status (1)

Country Link
JP (1) JPH025132A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240128A (en) * 1990-02-17 1991-10-25 Mitsubishi Electric Corp Automatic generation system for module constitution diagram
CN105258715A (en) * 2015-10-22 2016-01-20 珠海格力节能环保制冷技术研究中心有限公司 Photoelectric encoder

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240128A (en) * 1990-02-17 1991-10-25 Mitsubishi Electric Corp Automatic generation system for module constitution diagram
CN105258715A (en) * 2015-10-22 2016-01-20 珠海格力节能环保制冷技术研究中心有限公司 Photoelectric encoder

Similar Documents

Publication Publication Date Title
JP5747698B2 (en) Requirements management support device
JPH07219754A (en) Request definition support device using screen transition diagram
JPH025132A (en) Automatic document forming system
JPS63172330A (en) Halftone application system for document processor
JPS62177654A (en) Document producer
JPS60167059A (en) System for using chart and data in document
JP2763289B2 (en) Detailed description positioning method in logic diagram creation processing device
JPH0251738A (en) Automatic translation method into logical simulation describing language from digital circuit data
JPS63158664A (en) Document processing system for tree structure type document management
JP3079825B2 (en) Electronic computer equipment
JPH0589103A (en) Document editing processor
JPH04248624A (en) Program conversion processor
JPH09282310A (en) Markup document data editing device
JPH0264820A (en) Customizing system for processing column
JPH0268622A (en) Program specializing system
JPS61131162A (en) Document preparing device
JPH0368417B2 (en)
JPH0498533A (en) Automatic program generating device with macroblock diagram processing function
JPH02274454A (en) Cad/cam device
JPH0490026A (en) Processing flow chart editing device
JPS5960550A (en) Edit-processing system
JPS6381560A (en) Document editing system
JPH02148220A (en) Selective copying system for program
JPH0358227A (en) File editing system
JP2005215862A (en) Automatic build instruction document generating method, and program and system therefor