JPH0667872A - Commnet extracting system in source program - Google Patents

Commnet extracting system in source program

Info

Publication number
JPH0667872A
JPH0667872A JP22111992A JP22111992A JPH0667872A JP H0667872 A JPH0667872 A JP H0667872A JP 22111992 A JP22111992 A JP 22111992A JP 22111992 A JP22111992 A JP 22111992A JP H0667872 A JPH0667872 A JP H0667872A
Authority
JP
Japan
Prior art keywords
annotation
module
source program
data
extracting
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
JP22111992A
Other languages
Japanese (ja)
Inventor
Shohei Abe
正平 阿部
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP22111992A priority Critical patent/JPH0667872A/en
Publication of JPH0667872A publication Critical patent/JPH0667872A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently execute operation for documentation, to prevent the generation of mistransfer and to prepare a design document with high quality by providing this comment extracting system with a means for respectively extracting and documentating comments relating to respective modules constituting a source program and comments relating to data and procedures in respective modules. CONSTITUTION:Comments relating to respective modules to be reference elements constituting the source program 110 are extracted, documentated and stored in a module comment table 107, comments relating to data in respective modules are extracted, documentated and stored in a data comment table 108 and comments relating to procedures in respective modules are extracted, documented and stored in a procedure comment table 109. Respective comments are automatically judged and documentated as a part of specifications without depending upon manual operation.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ソースプログラム上の
注釈抽出方式に関し、特に、ソフトウェアのリバースエ
ンジニアリング技術であるソースプログラム上の注釈抽
出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an annotation extraction method on a source program, and more particularly to an annotation extraction method on a source program which is a reverse engineering technique of software.

【0002】[0002]

【従来の技術】従来のソースプログラム上の注釈抽出方
式は、既存のソフトウェアの保守作業を効率化するため
に、対象のソフトウェアについて、人間が、ソースプロ
グラムを解読し、プログラムの使用情報(モジュールに
関する仕様と手続きに関する仕様とデータに関する仕
様)を保守資料化する作業を繰り返している。特に、ソ
ースプログラム上に記述された注釈の内容が、ソフトウ
ェアの解読には重要な手掛かりを持っており、この注釈
の情報をもとに、下記の手段によって文書化している。
2. Description of the Related Art In the conventional annotation extraction method on a source program, in order to make the maintenance work of the existing software efficient, a human decodes the source program and uses information about the program (module information). The work of making maintenance documents (specifications related to specifications and procedures and specifications related to data) is repeated. In particular, the contents of the annotations described on the source program have important clues for deciphering the software, and based on the information of these annotations, they are documented by the following means.

【0003】人間が手作業で紙形式の文書に転記す
る。
A person manually transcribes a document in a paper format.

【0004】エディタまたはワードプロセッサを用い
て電子化文書に転記する。
Posting into an electronic document using an editor or word processor.

【0005】ソースプログラム上の手続きの制御構造
をもとに、プログラムチャートの生成を中核機能とする
文書化支援ツールを活用して、電子化文書を作成する。
Based on the control structure of the procedure on the source program, an electronic document is created by utilizing a documentation support tool having a core function of program chart generation.

【0006】コンパイラ等の言語処理プロセッサが出
力するリストファイルを活用して、電子化文書を作成す
る。
A list file output by a language processor such as a compiler is used to create an electronic document.

【0007】[0007]

【発明が解決しようとする課題】上述した従来のソース
プログラム上の注釈抽出方式は、上記のおよびの場
合には、ソースプログラム上に分散して記述された注釈
を転記するという手段で行うために、注釈の記述量に応
じて多大な作業時間を要するという問題点およびソース
プログラムに変更が発生する度に人手で転記をやり直さ
なければならないという問題点を有している。
In the above-mentioned annotation extraction method on the source program, in the above cases 1 and 2, the annotations distributed and described on the source program are transcribed. However, there is a problem that it takes a lot of work time according to the description amount of the annotation and that the transcription must be manually performed every time the source program is changed.

【0008】また、上記のの場合には、ソースプログ
ラムの手続き部に対応して記述されている注釈について
は、文書化支援ツールが単なる文字列として自動的に文
書化できるが、データ宣言部に個々のデータに対する注
釈が記述されていても、従来の文書化支援ツールでは無
視しているために、およびと同様の手段でデータに
対する注釈を転記するという作業を人手で行わなければ
ならないという問題点と言語処理プロセッサのような解
析機能を有していないためにデータ属性等の仕様を抽出
ならびに文書化できないという問題点とを有している。
Further, in the above case, the annotation described in the procedure section of the source program can be automatically documented as a simple character string by the documentation support tool, but in the data declaration section. Even if annotations are described for individual data, they are ignored by conventional documentation support tools, and the task of transcribing annotations for data by the same means as and is required to be manually performed. Since it does not have an analysis function like a language processor, it cannot extract and document specifications such as data attributes.

【0009】さらに、上記のの場合には、とは反対
にデータ属性などの仕様については抽出し、リストファ
イルとして文書化が可能であるが、従来の言語処理プロ
セッサでは注釈を無視しているために、注釈の情報を
またはと同様の手段で転記することが必要であるとい
う問題点を有している。
Further, contrary to the above case, the specifications such as data attributes can be extracted and documented as a list file, but the conventional language processor ignores the annotations. In addition, there is a problem that it is necessary to transcribe the information of the annotation by the same method as or.

【0010】[0010]

【課題を解決するための手段】第1の発明のソースプロ
グラム上の注釈抽出方式は、ソースプログラムを構成す
る基本要素であるモジュールの各々に関する注釈を抽出
して文書化するモジュール注釈抽出手段と、各々のモジ
ュール内のデータに関する注釈を抽出して文書化するデ
ータ注釈抽出手段と、各々のモジュール内の手続きに関
する注釈を抽出して文書化する手続き注釈抽出手段とを
有して構成されている。
A comment extracting method on a source program according to a first invention is a module comment extracting means for extracting and documenting a comment for each module which is a basic element constituting a source program. Data annotation extracting means for extracting and documenting annotations regarding data in each module and procedure annotation extracting means for extracting and documenting annotations for procedures in each module are configured.

【0011】また、第2の発明のソースプログラム上の
注釈抽出方式は、第1の発明のソースプログラム上の注
釈抽出方式において、第1の発明のモジュール注釈抽出
手段およびデータ注釈抽出手段並びに手続き注釈抽出手
段のそれぞれで文書化した結果の出力先を帳票印刷装置
とし、前記帳票印刷装置へ文書を出力する帳票印刷手段
を有して構成されている。
The annotation extraction method on the source program of the second invention is the annotation extraction method on the source program of the first invention, which is the module annotation extraction means, the data annotation extraction means, and the procedure annotation of the first invention. The output destination of the documented result by each of the extracting means is a form printing device, and the form printing device is provided for outputting the document to the form printing device.

【0012】一方、第3の発明のソースプログラム上の
注釈抽出方式は、第1の発明のソースプログラム上の注
釈抽出方式において、第1の発明のモジュール注釈抽出
手段およびデータ注釈抽出手段並びに手続き注釈抽出手
段のそれぞれで文書化した結果の出力先をCRT等のデ
ィスプレイ装置とし、前記ディスプレイ装置へ文書を表
示するディスプレイ表示手段を有して構成されている。
On the other hand, the annotation extraction method on the source program of the third invention is the same as the annotation extraction method on the source program of the first invention, and is the module annotation extraction means, the data annotation extraction means, and the procedure annotation of the first invention. An output destination of a documented result by each of the extracting means is a display device such as a CRT, and display display means for displaying the document on the display device is provided.

【0013】さらに、第4の発明のソースプログラム上
の注釈抽出方式は、第1の発明のソースプログラム上の
注釈抽出方式において、第1の発明のモジュール注釈抽
出手段およびデータ注釈抽出手段並びに手続き注釈抽出
手段のそれぞれで文書化した結果の出力先を外部磁気記
憶装置(磁気ディスク装置、フロッピーディスク装置、
光ディスク装置、磁気テープ装置など)とし、前記外部
磁気記憶装置へ文書を保存する外部磁気記憶保存手段を
有して構成されている。
Furthermore, the annotation extraction method on the source program of the fourth invention is the annotation extraction method on the source program of the first invention, which is the module annotation extraction means, the data annotation extraction means, and the procedure annotation of the first invention. The output destination of the documented result by each of the extracting means is the external magnetic storage device (magnetic disk device, floppy disk device,
Optical disk device, magnetic tape device, etc.) and an external magnetic storage device for storing a document in the external magnetic storage device.

【0014】[0014]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、第1の発明のソースプログラム上
の注釈抽出方式の一実施例を示す流れ図である。また、
図2は、図1の実施例の対象であるソースプログラムの
一例を示す図である。さらに、図3は、図1の実施例で
抽出された注釈文書の一例を示す図である。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a flow chart showing an embodiment of an annotation extraction method on a source program of the first invention. Also,
FIG. 2 is a diagram showing an example of a source program which is the target of the embodiment of FIG. Further, FIG. 3 is a diagram showing an example of the annotation document extracted in the embodiment of FIG.

【0015】まず、図2のソースプログラム上に示すよ
うに、101がモジュールの中に記述されたモジュール
注釈を示しており、102がモジュールの中に記述され
たデータ注釈を示しており、103がモジュールの中に
記述された手続き注釈を示している。
First, as shown in the source program of FIG. 2, 101 indicates a module annotation described in the module, 102 indicates a data annotation described in the module, and 103 indicates. It shows the procedure annotations described in the module.

【0016】また、図3に示すように、104はモジュ
ール仕様書の中の説明欄に図2のソースプログラム上に
記述されていたモジュール注釈の内容が生成されている
ことを示しており、105はデータ仕様書の中の説明欄
に図2のソースプログラム上に記述されていたデータ注
釈の内容が生成されていることを示しており、106は
手続き仕様書の中の説明欄に図2のソースプログラム上
に記述されていた手続き注釈の内容が生成されているこ
とを示している。
Further, as shown in FIG. 3, reference numeral 104 indicates that the contents of the module annotation described in the source program of FIG. 2 are generated in the explanation column of the module specification, and 105 Indicates that the content of the data annotation described in the source program of FIG. 2 has been generated in the explanation column of the data specification, and 106 indicates in the explanation column of the procedure specification of FIG. It indicates that the contents of the procedure annotation described in the source program have been generated.

【0017】そして、図1に示すように、110はソー
プログラムを示し、107はモジュール仕様書の中のモ
ジュール注釈に関する情報を保持するためのモジュール
注釈テーブルを示し、108はデータ仕様書の中のデー
タ注釈に関する情報を保持するためのデータ注釈テーブ
ルを示し、109は手続き仕様書の中の手続き注釈に関
する情報を保持するための手続き注釈テーブルを示して
いる。
As shown in FIG. 1, 110 is a saw program, 107 is a module annotation table for holding information about module annotations in the module specification, and 108 is a data specification. A data annotation table for holding information on data annotations is shown, and 109 is a procedure annotation table for holding information on procedure annotations in the procedure specification.

【0018】また、11はソースプログラムから文を一
文ずつ入力し、文が終わりであるか否かを判定する文の
入力とその終了判定とを示し、12は文がモジュールの
内側にあるか外側にあるかの判定を示し、13および1
5は文が注釈であるか否かの判定を示し、16は注釈が
データ定義文に対するものであるか否かの判定を示して
いる。14はモジュール注釈をモジュール注釈テーブル
に登録するモジュール注釈登録を示し、17はデータ注
釈をデータ注釈デーブルに登録するデータ注釈登録を示
し、18は手続き注釈を手続き注釈テーブルに登録する
手続き注釈登録を示している。モジュール注釈抽出手段
は、12と13と14とにより構成されており、データ
注釈抽出手段は15と16と17とにより構成されてお
り、手続き注釈抽出手段は16と18とにより構成され
ている。
Reference numeral 11 denotes a sentence input from the source program, sentence by sentence, inputting a sentence for determining whether the sentence is the end and its end determination, and 12 denotes whether the sentence is inside or outside the module. 13 and 1
Reference numeral 5 indicates whether the sentence is an annotation, and reference numeral 16 indicates whether the annotation is for a data definition sentence. Reference numeral 14 indicates module annotation registration for registering module annotations in the module annotation table, 17 indicates data annotation registration for registering data annotations in the data annotation table, and 18 indicates procedure annotation registration for registering procedure annotations in the procedure annotation table. ing. The module annotation extracting means is composed of 12 and 13 and 14, the data annotation extracting means is composed of 15 and 16 and 17, and the procedure annotation extracting means is composed of 16 and 18.

【0019】図4は、第2,〜第4の発明のソースプロ
グラム上の注釈抽出方式の一実施例を示す流れ図であ
る。図4に示すように、21は文書の出力先の判定を示
し、22は107と108と109との3つのテーブル
をもとに生成された文書を帳票形式文書201として出
力する帳票印刷手段を示し、23は107と108と1
09との3つのテーブルをもとに生成された文書をディ
スプレイ装置202に表示するディスプレイ表示手段を
示し、24は107と108と109との3つのテーブ
ルをもとに生成された文書を外部磁気記憶装置203に
保存する外部磁気記憶保存手段を示している。
FIG. 4 is a flow chart showing an embodiment of the annotation extraction method on the source program of the second to fourth inventions. As shown in FIG. 4, reference numeral 21 denotes the determination of the output destination of the document, and reference numeral 22 denotes a form printing means for outputting the document generated based on the three tables 107, 108 and 109 as the form document 201. Shown, 23 is 107 and 108 and 1
09 indicates a display display means for displaying a document generated on the basis of the three tables No. 09 and No. 09 on the display device 202. Reference numeral 24 indicates the document generated on the basis of the three tables Nos. The external magnetic storage storage means for storing in the storage device 203 is shown.

【0020】[0020]

【発明の効果】以上説明したように、本発明のソースプ
ログラム上の注釈抽出方式は、ソースプログラム上のモ
ジュールに関する注釈とモジュール内の手続きに関する
注釈とモジュール内のデータに関する注釈とを自動的に
判別して、人手にたよることなく設計書の一部として文
書化するので、文書化のための作業を効率化できると同
時に、人手の場合に発生する転記漏れや転記ミスといっ
た誤りもなく、品質の高い設計文書の生成が可能になる
という効果を有している。
As described above, the annotation extraction method on the source program of the present invention automatically distinguishes the annotation on the module on the source program, the annotation on the procedure in the module, and the annotation on the data in the module. Since it is documented as a part of the design document without relying on human labor, the work for documentation can be streamlined, and at the same time, there is no error such as omission of transcription or transcription error that occurs in the case of human labor, and quality is improved. This has the effect that it is possible to generate a high-quality design document.

【図面の簡単な説明】[Brief description of drawings]

【図1】第1の発明のソースプログラム上の注釈抽出方
式の一実施例を示す流れ図である。
FIG. 1 is a flowchart showing an embodiment of an annotation extraction method on a source program of the first invention.

【図2】図1の実施例の対象であるソースプログラムの
一例を示す図である。
FIG. 2 is a diagram showing an example of a source program which is a target of the embodiment of FIG.

【図3】図1の実施例で抽出された注釈文書の一例を示
す図である。
FIG. 3 is a diagram showing an example of an annotation document extracted in the embodiment of FIG.

【図4】第2,〜第4の発明のソースプログラム上の注
釈抽出方式の一実施例を示す流れ図である。
FIG. 4 is a flow chart showing an embodiment of an annotation extraction method on a source program of the second to fourth inventions.

【符号の説明】[Explanation of symbols]

11 文の入力と終了判定 12 モジュール内外判定 13 注釈判定 14 モジュール注釈登録 15 注釈判定 16 データ文判定 17 データ注釈登録 18 手続き注釈登録 101 モジュール注釈 102 データ注釈 103 手続き注釈 104 モジュール仕様書 105 データ仕様書 106 手続き仕様書 107 モジュール注釈テーブル 108 データ注釈デーブル 109 手続き注釈テーブル 110 ソースプログラム 21 文書出力先の判定 22 帳票印刷手段 23 ディスプレイ表示手段 24 外部磁気記憶保存手段 201 帳票形式文書 202 ディスプレイ装置 203 外部磁気記憶装置 11 sentence input and end determination 12 module inside / outside determination 13 annotation determination 14 module annotation registration 15 annotation determination 16 data statement determination 17 data annotation registration 18 procedure annotation registration 101 module annotation 102 data annotation 103 procedure annotation 104 module specification 105 data specification 106 Procedure Specification 107 Module Annotation Table 108 Data Annotation Table 109 Procedure Annotation Table 110 Source Program 21 Document Output Destination 22 Document Printing Means 23 Display Display Means 24 External Magnetic Storage Saving Means 201 Form Format Document 202 Display Device 203 External Magnetic Storage apparatus

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ソースプログラムを構成する基本要素で
あるモジュールの各々に関する注釈を抽出して文書化す
るモジュール注釈抽出手段と、各々のモジュール内のデ
ータに関する注釈を抽出して文書化するデータ注釈抽出
手段と、各々のモジュール内の手続きに関する注釈を抽
出して文書化する手続き注釈抽出手段とを有することを
特徴とするソースプログラム上の注釈抽出方式。
1. A module annotation extracting means for extracting and documenting annotations regarding each module which is a basic element constituting a source program, and a data annotation extracting for extracting and documenting annotations regarding data in each module. An annotation extraction method on a source program, comprising: means and a procedure annotation extraction means for extracting and documenting annotations regarding procedures in each module.
【請求項2】 請求項1記載のモジュール注釈抽出手段
およびデータ注釈抽出手段並びに手続き注釈抽出手段の
それぞれで文書化した結果の出力先を帳票印刷装置と
し、前記帳票印刷装置へ文書を出力する帳票印刷手段を
有することを特徴とする請求項1記載のソースプログラ
ム上の註釈抽出方式。
2. A form printing device is used as an output destination of the results documented by each of the module annotation extracting unit, the data annotation extracting unit, and the procedure annotation extracting unit according to claim 1, and the document is output to the form printing device. The annotation extraction method on the source program according to claim 1, further comprising a printing unit.
【請求項3】 請求項1記載のモジュール注釈抽出手段
およびデータ注釈抽出手段並びに手続き注釈抽出手段の
それぞれで文書化した結果の出力先をCRT等のディス
プレイ装置とし、前記ディスプレイ装置へ文書を表示す
るディスプレイ表示手段を有することを特徴とする請求
項1記載のソースプログラム上の注釈抽出方式。
3. The module annotation extraction means, the data annotation extraction means, and the procedure annotation extraction means according to claim 1 output a document output as a display device such as a CRT, and display the document on the display device. The annotation extraction method on the source program according to claim 1, further comprising a display display unit.
【請求項4】 請求項1記載のモジュール注釈抽出手段
およびデータ注釈抽出手段並びに手続き注釈抽出手段の
それぞれで文書化した結果の出力先を外部磁気記憶装置
(磁気ディスク装置、フロッピーディスク装置、光ディ
スク装置、磁気テープ装置など)とし、前記外部磁気記
憶装置へ文書を保存する外部磁気記憶保存手段を有する
ことを特徴とする請求項1記載のソースプログラム上の
注釈抽出方式。
4. An external magnetic storage device (a magnetic disk device, a floppy disk device, an optical disk device) which is an output destination of a result documented by each of the module annotation extraction means, the data annotation extraction means, and the procedure annotation extraction means according to claim 1. , A magnetic tape device, etc.) and an external magnetic storage storage unit for storing a document in the external magnetic storage device.
JP22111992A 1992-08-20 1992-08-20 Commnet extracting system in source program Pending JPH0667872A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22111992A JPH0667872A (en) 1992-08-20 1992-08-20 Commnet extracting system in source program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22111992A JPH0667872A (en) 1992-08-20 1992-08-20 Commnet extracting system in source program

Publications (1)

Publication Number Publication Date
JPH0667872A true JPH0667872A (en) 1994-03-11

Family

ID=16761775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22111992A Pending JPH0667872A (en) 1992-08-20 1992-08-20 Commnet extracting system in source program

Country Status (1)

Country Link
JP (1) JPH0667872A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000050988A1 (en) * 1999-02-24 2000-08-31 Fujitsu Limited Apparatus for preparing program specifications, method for preparing program specifications, and recording medium on which program for preparing program specifications is recorded

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000050988A1 (en) * 1999-02-24 2000-08-31 Fujitsu Limited Apparatus for preparing program specifications, method for preparing program specifications, and recording medium on which program for preparing program specifications is recorded

Similar Documents

Publication Publication Date Title
US20030158723A1 (en) Syntactic information tagging support system and method
JP2009140466A (en) Method and system for providing conversation dictionary services based on user created dialog data
JPH0667872A (en) Commnet extracting system in source program
JP2005032047A (en) Device, method, program and storage medium for automatically generating file
JP2003316775A (en) Specification preparation support device
JP2009151613A (en) Program source conversion apparatus
JP3660432B2 (en) Dictionary registration apparatus and dictionary registration method
JP2008071329A (en) Method for diagramming and symbolizing sentence structure, and computer software for diagram input/output
JP2005149083A (en) Electronic medical record input support apparatus
JPH06295309A (en) Machine translation system, language analyzing device and digital copying device
JP3050575B2 (en) Natural language automatic translator
JP2003296316A (en) Document preparation support device, document preparation support method and program therefor
JPH09185629A (en) Machine translation method
JPH08194494A (en) Sentence analyzing method and device
JPH11265381A (en) Method and device for converting language and recording medium for programming and recording the method
JPH0619964A (en) Machine translation device
JPH0594293A (en) Source program decode supporting device
JP2002304387A (en) Support device for developing multimedia document processing system
JPH05274124A (en) Automatic document generating device
JPH1063667A (en) Document processing system
Hughes Developing Open Data Models for Linguistic Field Data
JPS62179054A (en) Document generating apparatus
JPH0567101A (en) Word processor
JPH1031585A (en) Automatic programming generating system by inputting specification
JPH07200546A (en) Document confirming method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19991102