JPH02236626A - Source program analyzer - Google Patents

Source program analyzer

Info

Publication number
JPH02236626A
JPH02236626A JP5754789A JP5754789A JPH02236626A JP H02236626 A JPH02236626 A JP H02236626A JP 5754789 A JP5754789 A JP 5754789A JP 5754789 A JP5754789 A JP 5754789A JP H02236626 A JPH02236626 A JP H02236626A
Authority
JP
Japan
Prior art keywords
source program
comment
analysis
module
analysis result
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.)
Granted
Application number
JP5754789A
Other languages
Japanese (ja)
Other versions
JP2518383B2 (en
Inventor
Takahiro Kudou
工藤 尊弘
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP1057547A priority Critical patent/JP2518383B2/en
Publication of JPH02236626A publication Critical patent/JPH02236626A/en
Application granted granted Critical
Publication of JP2518383B2 publication Critical patent/JP2518383B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To obtain high efficiency in the analysis of a source program by comparing a previous analysis result with an analysis result this time when the source program, the previous analysis result of the source program, and comment information inputted at a time when analysis is performed and cannot taken out mechanically from the source program inputted by a person are supplied. CONSTITUTION:An analysis result updating means 4 judges whether or not reference module structure information having its own module name that coincides with its own module name inputted from a source program analyzing means 2 exists. When it is judged that the reference module structure information having its own module name that coincides exists in a reference analysis result storage means 3, the analysis result updating means 4 compares all the module names in use with all the module names in use in reference module structure information, and when all the module name in use coincide, the fact that module function explanation is acquired from a reference comment storage means 7 is informed to a comment updating means 8. Thereby, the analysis of the source program can be performed with high efficiency.

Description

【発明の詳細な説明】 〔産業・上の利用分野〕 本発明はソースプログラム解析装置に関し、特にソフト
ウエアシステムを記述したソースプログラムを解析する
ソースプログラム解析装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a source program analysis device, and more particularly to a source program analysis device that analyzes a source program that describes a software system.

〔従来の技術〕[Conventional technology]

従来、この種のソースプログラム解析装置では、ソフト
ウエアシステムの変更に伴ってソースプログラムを解析
し直す場合に、以前に解析された解析結果とは無関係に
ソースプログラムを解析して新しい解析結果を得ていた
Conventionally, with this type of source program analysis device, when reanalyzing a source program due to a change in a software system, the source program is analyzed to obtain new analysis results regardless of the previously analyzed analysis results. was.

(発明が解決しようとする課題) 上述した従来のソースプログラム解析装置では、ソフト
ウエアシステムの変更に伴ってソースプログラムを解析
し直す場合に、以前の解析結果とは無関係にソースプロ
グラムを解析して新しい解析結果を得ていたので、以前
の解析結果に対してソースプログラム解析装置の利用者
(以下、単に利用者という)により人手で入力されたソ
ースプログラムからは機械的に取り出せないコメント情
報を更新が必要な部分と必要でない部分とに区別するこ
とができず、したがって、利用者は更新が必要でない部
分を含めた全てのコメント情報を入力し直さなければな
らず、ソースプログラムの解析作業の効率が悪いという
欠点がある。
(Problems to be Solved by the Invention) In the conventional source program analysis device described above, when reanalyzing a source program due to a change in a software system, the source program is analyzed regardless of the previous analysis results. Since we had obtained new analysis results, we updated the comment information that cannot be extracted mechanically from the source program that was manually input by the user of the source program analysis device (hereinafter simply referred to as the user) for the previous analysis result. It is not possible to distinguish between necessary parts and unnecessary parts, so the user has to re-enter all comment information including the parts that do not need to be updated, which reduces the efficiency of source program analysis work. The disadvantage is that it is bad.

本発明の目的は、上述の点に鑑み、ソースプログラムを
解析し直す場合に、以前の解析結果とその際人手で入力
されたコメント情報とを用いることにより、利用者が更
新が必要なコメント情報を入力するだけで新しい解析結
果とコメント情報とを作成することができるソースプロ
グラム解析装置を提供することにある. 〔課題を解決するための手段〕 本発明のソースプログラム解析装置は、ソフトウエアシ
ステムを記述したソースプログラムを解析するソースプ
ログラム解析装置において、ソースプログラムの以前の
解析結果が格納される参照解析結果記憶手段と、前記ソ
ースプログラムの以前の解析時点で人手によって入力さ
れた前記ソースプログラムからは機械的に取り出せない
コメント情報が格納される参照コメン1・記憶手段と、
前記ソースプログラムを解析するソースプログラム解析
手段と、このソースプログラム解析手段による解析結果
と前記参照解析結果記憶手段内の解析結果とを比較して
コメント情報の人手による入力が必要かどうかを判断す
る解析結果更新手段と、この解析結果更新手段により前
記ソースプログラム解析手段による解析結果が格納され
る解析結果記憶手段と、利用者からコメント情報を取得
するコメント入力手段と、前記解析結果更新手段により
コメント情報の人手による入力が必要と判断された場合
にコメント情報を前記コメント入力手段を用いて利用者
から取得しコメント情報の人手による入力が不要と判断
された場合に前記参照コメン1・記憶手段からコメント
情報を取得するコメント更新手段と、このコメント更新
手段によりコメント情報が格納されるコメント記憶手段
と、前記解析結果記憶手段に格納された解析結果に前記
コメント記憶手段に格納されたコメント情報を付加して
出力する解析結果出力手段とを有する。
In view of the above-mentioned points, an object of the present invention is to enable a user to update comment information that needs to be updated by using previous analysis results and comment information manually input when reanalyzing a source program. The object of this invention is to provide a source program analysis device that can create new analysis results and comment information simply by inputting the following information. [Means for Solving the Problems] A source program analysis device of the present invention is a source program analysis device that analyzes a source program that describes a software system, and includes a reference analysis result storage in which previous analysis results of the source program are stored. a reference comment 1 storage means for storing comment information that cannot be retrieved mechanically from the source program that was input manually at the time of previous analysis of the source program;
A source program analysis means for analyzing the source program; and an analysis for comparing the analysis result by the source program analysis means with the analysis result in the reference analysis result storage means to determine whether manual input of comment information is necessary. a result update means; an analysis result storage means in which the analysis result update means stores the analysis results obtained by the source program analysis means; a comment input means for acquiring comment information from a user; When it is determined that manual input is necessary, comment information is obtained from the user using the comment input means, and when it is determined that manual input of comment information is unnecessary, comments are obtained from the reference comment 1 storage means. a comment updating means for acquiring information; a comment storage means for storing comment information by the comment updating means; and a comment storage means for adding the comment information stored in the comment storage means to the analysis result stored in the analysis result storage means. and analysis result output means for outputting the results.

〔作用〕[Effect]

本発明のソースプログラム解析装置では、参照解析結果
記憶手段にソースプログラムの以前の解析結果が格納さ
れ、参照コメント記憶手段にソースプログラムの以前の
解析時点で人手によって入力されたソースプログラムか
らは機械的に取り出せないコメント情報が格納され、ソ
ースプログラム解析手段がソースプログラムを解析し、
解析結果更新手段がソースプログラム解析手段による解
析結果と参照解析結果記憶手段内の解析結果とを比較し
てコメント情報の人手による入力が必要かどうかを判断
し、解析結果記憶手段に解析結果更新手段によりソース
プログラム解析手段による解析結果が格納され、コメン
ト入力手段が利用者からコメント情報を取得し、コメン
ト更新手段が解析結果更新手段によりコメント情報の人
手による入力が必要と判断された場合にコメント情報を
コメント入力手段を用いて利用者から取得しコメント情
報の人手による入力が不要と判断された場合に参照コメ
ント記憶手段からコメント情報を取得し、コメント記憶
手段にコメント更新手段によりコメント情報が格納され
、解析結果出力手段が解析結果記憶手段に格納された解
析結果にコメント記憶手段に格納されたコメント情報を
付加して出力する。
In the source program analysis device of the present invention, the reference analysis result storage means stores the previous analysis results of the source program, and the reference comment storage means stores the mechanical input from the source program manually input at the time of the previous analysis of the source program. Comment information that cannot be retrieved is stored in the source program, and the source program analysis means analyzes the source program.
The analysis result update means compares the analysis result by the source program analysis means with the analysis result in the reference analysis result storage means, determines whether manual input of comment information is necessary, and updates the analysis result storage means with the analysis result update means. The analysis result by the source program analysis means is stored, the comment input means acquires comment information from the user, and the comment update means stores the comment information when the analysis result update means determines that manual input of comment information is necessary. is obtained from the user using the comment input means, and when it is determined that manual input of the comment information is unnecessary, the comment information is obtained from the reference comment storage means, and the comment information is stored in the comment storage means by the comment update means. The analysis result output means adds comment information stored in the comment storage means to the analysis result stored in the analysis result storage means and outputs the result.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する. 第1図は、本発明の一実施例に係るソースプログラム解
析装置の構成を示すブロック図である.本実施例のソー
スプログラム解析装置は、複数のモジュールからなるソ
フトウエアシステムを記述したソースプログラムを解析
する装置であり、ソースプログラム記憶手段lと、ソー
スプログラム解析手段2と、参照解析結果記憶手段3と
、解析結果更新手段4と、解析結果記憶手段5と、コメ
ント入力手段6と、参照コメント記憶手段7と、コメン
ト更新手段8と、コメント記憶手段9と、解析結果出力
手段10とから構成されている.第2図を参照すると、
ソースプログラム記憶手段1には、ソフトウエアシステ
ムを構成する全てのモジュールA,B,・・・毎に、自
モジュール名と、ソースプログラムとが格納されている
Next, the present invention will be explained in detail with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a source program analysis device according to an embodiment of the present invention. The source program analysis device of this embodiment is a device for analyzing a source program that describes a software system consisting of a plurality of modules, and includes a source program storage unit 1, a source program analysis unit 2, and a reference analysis result storage unit 3. , an analysis result update means 4, an analysis result storage means 5, a comment input means 6, a reference comment storage means 7, a comment update means 8, a comment storage means 9, and an analysis result output means 10. ing. Referring to Figure 2,
The source program storage means 1 stores the own module name and source program for each module A, B, . . . that constitutes the software system.

第3図を参照すると、ソースプログラム解析手段2は、
モジュール単位にソースプログラムを解析して自モジュ
ール名および使用モジュール名を取り出すソースプログ
ラム参照部と、自モジュール名を格納する自モジュール
名格納部と、使用モジュール名を格納する複数の使用モ
ジュール名格納部とから構成されている。以下、1つの
モジエールに関する自モジュール名および使用モジュー
ル名からなる情報をモジュール構造情報と呼び、解析結
果の一具体例として説明に用いる。
Referring to FIG. 3, the source program analysis means 2:
A source program reference section that analyzes the source program for each module and extracts its own module name and used module name, an own module name storage section that stores its own module name, and multiple used module name storage sections that store used module names. It is composed of. Hereinafter, information consisting of the own module name and the used module name regarding one module will be referred to as module structure information, and will be used for explanation as a specific example of the analysis result.

第4図を参照すると、参照解析結果記憶手段3には、以
前に解析が行われた時点でソフトウエアシステムを構成
していた全てのモジュールA,B,・・・のモジュール
構造情報(以下、参照モジュール構造情報と称する)が
格納されている.参照モジュール構造情報は、モジュー
ル八,B.・・・毎の自モジュール名と、複数の使用モ
ジュール名とからなる. 第5図を参照すると、解析結果記憶手段5には、現在の
ソフトウェアシステムを横成する全てのモジュールA,
B,・・・の現在のモジュール構造情報が格納される。
Referring to FIG. 4, the reference analysis result storage means 3 stores module structure information (hereinafter referred to as (referred to as reference module structure information) is stored. The reference module structure information is module 8, B. It consists of the own module name for each ... and the names of multiple modules used. Referring to FIG. 5, the analysis result storage means 5 stores all the modules A, which make up the current software system.
Current module structure information of B, . . . is stored.

モジュール構造情報は、モジュールA,B,・・・毎の
自モジュール名と、複数の使用モジュール名とからなる
. 第6図を参照すると、参照コメント記憶手段7には、以
前に解析が行われた時点でソフトウェアシステムを構成
していた全てのモジュールA,B,・・・の自モジュー
ル名と、モジェール機能説明とが格納されている。本実
施例においては、以下、モジュール機能説明をコメント
情報の一興体例として説明に用いる. 第7図を参照すると、コメント記憶手段9には、現在の
ソフトウェアシステムを構成する全ての現在のモジュー
ルA,B.・・・の自モジュール名と、モジュール機能
説明とが格納される. 第8図を参照すると、本実施例のソースプログラム解析
装置における処理は、モジュール選択ステップ101と
、自モジェール名および使用モジュール名取出しステッ
プ102と、モジュール構造情報の解析結果記憶手段へ
の格納ステップ103と、同一自モジュール名の参照モ
ジュール構造情報有無判定ステップ104と、全使用モ
ジュール名の一敗判定ステップ105と、モジュール機
能説明の参照コメント記憶手段からの取得およびコメン
ト記憶手段への格納ステップ】06と、モジュール機能
説明の利用者からの取得およびコメント記憶手段への格
納ステップ107と、全モジュール処理終了判定ステッ
プ10Bと、モジュール機能説明付加モジュール構造情
報出力ステップ109とからなる. 次に、このように構成された本実施例のソースプログラ
ム解析装置の動作について説明する。
The module structure information consists of the own module name for each module A, B, . . . and the names of multiple modules used. Referring to FIG. 6, the reference comment storage means 7 contains the own module names and module function descriptions of all the modules A, B, . is stored. In this embodiment, the module function description will be used below as an example of comment information. Referring to FIG. 7, the comment storage means 9 stores all the current modules A, B, . ...'s own module name and module function description are stored. Referring to FIG. 8, the processing in the source program analysis apparatus of this embodiment includes a module selection step 101, a step 102 of retrieving the own module name and the used module name, and a step 103 of storing module structure information in the analysis result storage means. , a step 104 for determining the presence or absence of reference module structure information for the same module name, a step 105 for determining the success or failure of all used module names, and a step for obtaining the module function description from the reference comment storage means and storing it in the comment storage means]06 , a step 107 for obtaining module function descriptions from the user and storing them in the comment storage means, a step 10B for determining whether all module processing has been completed, and a step 109 for outputting module structure information with module function descriptions added. Next, the operation of the source program analysis apparatus of this embodiment configured as described above will be explained.

ソースプログラムを解析し直す場合には、まずソースプ
ログラム記憶手段1に現在のソフトウェアシステムを記
述したソースプログラムがモジュールA,B,・・・毎
に自モジュール名とともに格納され、参照解析結果記憶
手段3に以前に解析された時点でソフトウェアシステム
を構成していたモジュール毎の参照モジュール構造情報
が格納され、参照コメント記憶手段7に以前に解析され
た時点でソフトウエアシステムを構成していたモジュー
ル毎に自モジュール名と千ジュール機能説明とが格納さ
れる。
When reanalyzing a source program, first the source program describing the current software system is stored in the source program storage means 1 along with its own module name for each module A, B, . . . , and the reference analysis result storage means 3 Reference module structure information for each module that constituted the software system at the time of the previous analysis is stored in the reference comment storage means 7, and reference module structure information for each module that constituted the software system at the time of the previous analysis is stored in the reference comment storage means 7. The own module name and 1,000 joule function description are stored.

以上のような状態から、ソースプログラム解析手段2は
、ソースプログラム参照部によって、ソースプログラム
記憶手段1に格納されたモジュールA,B,・・・のう
ちから1つのモジュールを選択し(ステップ101),
選択したモジュールの自モジュール名を取り出して自モ
ジュール名格納部に格納するとともに、選択したモジュ
ールのソースプログラムを解析しソースプログラムの中
で呼出し(CALL)に続いて現れる単語を認識するこ
とにより使用モジュール名を取り出して複数の使用モジ
ュール名格納部に順次格納する(ステップ102). ソースプログラム解析手段2のソースプログラム参照部
によって自モジュール名格納部および複数の使用モジュ
ール名格納部に自モジュール名および使用モジュール名
がそれぞれ格納されると、解析結果更新手段4は、ソー
スプログラム解析千段2の自モジュール名格納部および
使用モジュール名格納部から自モジェール名および使用
モジュール名を入力して、入力した自モジュール名およ
び使用モジュール名からなるモジュール構造情報を解析
結果記憶千段5に格納する(ステップ103). 次に、解析結果更新手段4は、ソースプログラム解析手
段2から入力した自モジュール名を基に参照解析結果記
憶手段3を検索し、ソースプログラム解析手段2から入
力した自モジュール名に一敗する自モジュール名を持つ
参照モジュール構造情報があるか否かを判定する(ステ
ップ104)。
From the above state, the source program analysis means 2 selects one module from modules A, B, . . . stored in the source program storage means 1 using the source program reference section (step 101). ,
The self-module name of the selected module is retrieved and stored in the self-module name storage area, and the source program of the selected module is analyzed and the word that appears following the call (CALL) in the source program is recognized. The names are extracted and sequentially stored in a plurality of used module name storage units (step 102). When the source program reference section of the source program analysis means 2 stores the own module name and the used module name in the own module name storage section and the plurality of used module name storage sections, the analysis result update means 4 Enter the own module name and used module name from the own module name storage area and the used module name storage area in stage 2, and store the module structure information consisting of the input own module name and used module name in the analysis result storage stage 5. (Step 103). Next, the analysis result updating means 4 searches the reference analysis result storage means 3 based on the own module name input from the source program analysis means 2, and searches the reference analysis result storage means 3 based on the own module name input from the source program analysis means 2, It is determined whether there is reference module structure information having the module name (step 104).

参照解析結果記憶手段3に一致する自モジェール名を持
つ参照モジュール構造情報があると判定されたならば、
解析結果更新手段4は、ソースプログラム解析手段2か
ら入力した全ての使用モジュール名と当該参照モジュー
ル構造情報の全ての使用モジュール名とを比較し,て全
での使用モジュール名が一致するかどうかを判定しくス
テップ105)、全ての使用モジュール名が一致すると
判定された場合には、モジュール機能説明を参照コメン
ト記憶手段7から取得する旨を示す判定結果をソースプ
ログラム解析手段2から人力された自モジュール名とと
もにコメント更新手段8に通知する. ステップ104でソースプログラム解析手段2から人力
した自モジエール名に一致する自モジュール名を持つ参
照モジュール構造情報が参照解析結果記憶手段3にない
と判断された場合およびステップ105で使用モジュー
ル名に一致しないものがあると判定された場合には、ソ
ースプログラム解析手段2により解析されたモジュール
は以前に解析された時点以降に追加されたモジュールで
あるか以前に解析された時点以降にソースプログラムの
内容に追加,変更または削除があったモジュールである
から、解析結果更新千段4は、モジュール機能説明を利
用者から取得する旨を示す判定結果をソースプログラム
解析千段2がら人力した自モジュール名とともにコメン
ト更新手段8に通知する. 解析結果更新千段4から自モジュール名とモジュール機
能説明を参照コメント記憶手段7から取得する旨を示す
判定結果とを通知された場合には、コメント更新手段8
は、通知された自モジュール名を基に参照コメント記憶
手段7を検索し、自モジュール名対応のモジュール機能
説明を取り出して解析結果更新手段4から通知された自
モジュール名とともにコメント記憶手段9に格納する(
ステップ106). 解析結果更新手段4から自モジュール名とモジュール機
能説明を利用者から取得する旨を示す判定結果とを通知
された場合には、・コメント更新手段8は、コメント入
力手段6に対して利用者からのモジュール機能説明の入
力を促し、コメント入力手段6から利用者によって入力
されたモジュール機能説明を取得して、利用者から取得
したモジュール機能説明を解析結果更新手段4から通知
された自モジェール名とともにコメント記憶手段9に格
納する(ステップ107). 1つのモジュールに対する以上の処理が終了したならば
、ソースプログラム解析手段2は、ソースプログラム記
憶手段1内の全てのモジュールA,B,・・・について
のソースプログラムの解析処理が終了したか否かを判定
し(ステップ108)、未処理のモジュールがあればス
テップ101に制御を戻す。
If it is determined that there is reference module structure information with a matching own module name in the reference analysis result storage means 3,
The analysis result updating means 4 compares all the used module names input from the source program analysis means 2 with all the used module names of the reference module structure information, and determines whether the used module names in all match. In step 105), if it is determined that all the used module names match, the judgment result indicating that the module function description is to be obtained from the reference comment storage means 7 is sent to the source program analysis means 2 which manually inputs the own module name. The comment update means 8 is notified along with the name. If it is determined in step 104 that there is no reference module structure information in the reference analysis result storage unit 3 whose own module name matches the own module name manually input from the source program analysis means 2, and in step 105 it does not match the used module name. If it is determined that there is a problem, the module analyzed by the source program analysis means 2 is a module that was added after the time of the previous analysis, or the content of the source program is added to the content of the source program after the time of the previous analysis. Since this is a module that has been added, changed, or deleted, analysis result update 1000 steps 4 comments with the judgment result indicating that the module function description is to be obtained from the user along with the own module name manually created by source program analysis 1000 steps 2. Notify update means 8. When notified from the analysis result update 1000 steps 4 of the own module name and the judgment result indicating that the module function description is to be acquired from the reference comment storage means 7, the comment update means 8
searches the reference comment storage means 7 based on the notified own module name, retrieves the module function description corresponding to the own module name, and stores it in the comment storage means 9 together with the own module name notified from the analysis result update means 4. do(
Step 106). When the analysis result updating means 4 notifies the user of the own module name and the determination result indicating that the module function description is to be obtained from the user, the comment updating means 8 receives the user's request for the comment input means 6. prompts the user to input the module function description, obtains the module function description input by the user from the comment input means 6, and uses the module function description obtained from the user together with the own module name notified from the analysis result update means 4. The comment is stored in the comment storage means 9 (step 107). When the above processing for one module is completed, the source program analysis means 2 determines whether the source program analysis processing for all modules A, B, . . . in the source program storage means 1 has been completed. is determined (step 108), and if there is an unprocessed module, control is returned to step 101.

ステップ108で全てのモジュールA, B,・・・に
ついての解析処理が終了したと判定されるまでステノブ
101〜ステップlO8の処理が繰り返され、ステップ
108で全てのモジュールA.B,・・・についての解
析処理が終了したと判定されたならば、解析結果出力手
段10は、解析結果記憶千段5に格納されたモジュール
構造情報を読み出すとともにコメント記憶手段9に格納
されたモジュール機能説明を読み出して、現在のソフト
ウェアシステムを構成するモジュールについてモジュー
ル機能説明が付加されたモジュール構造情報を出力する
(ステップ109). このように、本実施例のソースプログラム解析袋置は、
ソースプログラムと、ソースプログラムが以前に解析さ
れた時点で作成された参照モジュール構造情報と、参照
モジュール構造情報が作成されている全てのモジュール
についてのモジュール機能説明とが与えられたときに、
利用者がソースプログラムが以前に解析された時点以降
に追加されたモジュールおよび使用モジュールに追加.
変更または削除があったモジュールのモジュール機能説
明を入力するだけで新しいモジュール構造情輯とモジェ
ール機能説明とを作成することができる. なお、上記実施例では、解析結果をモジュール構造情報
とし、コメント情報をモジュール機能説明とした場合に
ついて説明したが、解析結果およびコメント情報がそれ
ぞれ他の情報であっても、本発明が同様に適用できるこ
とはいうまでもない.〔発明の効果〕 以上説明したように本発明は、ソースプログラムを解析
し直す場合に、ソースプログラムとソースプログラムの
以前の解析結果と以前に解析した時点で人手により入力
されたソースプログラムからは機械的に取り出せないコ
メント情報とが与えられたときに以前の解析結果と今回
の解析結果とを比較するようにしたことにより、利用者
が更新が必要なコメント情報を入力するだけで新しい解
析結果とコメント情報とを作成することができ、利用者
は更新する必要のないコメント情報を再入力する必要が
なくなり、ソースプログラムの解析作業の効率を向上さ
せることができるという効果がある。
The processing from the steno knob 101 to step IO8 is repeated until it is determined in step 108 that the analysis processing for all modules A, B, . If it is determined that the analysis processing for B, . The module function descriptions are read out, and module structure information to which the module function descriptions are added is output for the modules that constitute the current software system (step 109). In this way, the source program analysis bag of this embodiment is
Given a source program, reference module structure information created when the source program was previously analyzed, and module function descriptions for all modules for which reference module structure information has been created,
Add to modules added and used by the user since the point when the source program was previously analyzed.
New module structure information and module function descriptions can be created simply by inputting the module function description of the module that has been changed or deleted. In addition, in the above embodiment, the case where the analysis result is module structure information and the comment information is module function description is explained, but the present invention can be similarly applied even if the analysis result and comment information are different information. It goes without saying that it can be done. [Effects of the Invention] As explained above, when re-analyzing a source program, the present invention allows the machine to analyze the source program, the previous analysis results of the source program, and the source program input manually at the time of the previous analysis. By comparing the previous analysis results with the current analysis results when comment information that cannot be retrieved is given, the user can simply enter the comment information that needs to be updated and receive the new analysis results. This eliminates the need for the user to re-enter comment information that does not need to be updated, thereby improving the efficiency of source program analysis.

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

第1図は本発明の一実施例に係るソースプログラム解析
装置の構成を示すブロソク図、第2図は第1図中のソー
スプログラム記憶手段の構成を示す図、 第3図は第1図中のソースプログラム解析手段の構成を
示す図、 第4図は第1図中の参照解析結果記憶手段の構成を示す
図、 第5図は第1図中の解析結果記憶手段の構成を示す図、 第6図は第1図中の参照コメント記憶手段の構成を示す
図、 第7図は第1図中のコメント記憶手段の構成を示す図、 第8図は本実施例のソースプログラム解析装直における
処理を示す流れ図である. 図において、 1・・・ソースプログラム記憶手段、 2・・・ソースプログラム解析手段、 3・・・参照解析結果記憶手段、 4・・・解析結果更新手段、 5・・・解析結果記憶手段、 6・・・コメント入力手段、 7・・・参照コメント記憶手段、 8・・・コメント更新手段、 9・・・コメント記憶手段、 10・・解析結果出力手段である。
FIG. 1 is a block diagram showing the configuration of a source program analysis device according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of the source program storage means in FIG. 1, and FIG. 3 is a block diagram in FIG. 1. 4 is a diagram showing the configuration of the reference analysis result storage means in FIG. 1, FIG. 5 is a diagram showing the configuration of the analysis result storage means in FIG. 1, 6 is a diagram showing the configuration of the reference comment storage means in FIG. 1, FIG. 7 is a diagram showing the configuration of the comment storage means in FIG. 1, and FIG. This is a flowchart showing the processing in . In the figure, 1... Source program storage means, 2... Source program analysis means, 3... Reference analysis result storage means, 4... Analysis result update means, 5... Analysis result storage means, 6 . . . Comment input means, 7. Reference comment storage means, 8. Comment update means, 9. Comment storage means, 10. Analysis result output means.

Claims (1)

【特許請求の範囲】 ソフトウェアシステムを記述したソースプログラムを解
析するソースプログラム解析装置において、 ソースプログラムの以前の解析結果が格納される参照解
析結果記憶手段と、 前記ソースプログラムの以前の解析時点で人手によって
入力された前記ソースプログラムからは機械的に取り出
せないコメント情報が格納される参照コメント記憶手段
と、 前記ソースプログラムを解析するソースプログラム解析
手段と、 このソースプログラム解析手段による解析結果と前記参
照解析結果記憶手段内の解析結果とを比較してコメント
情報の人手による入力が必要かどうかを判断する解析結
果更新手段と、 この解析結果更新手段により前記ソースプログラム解析
手段による解析結果が格納される解析結果記憶手段と、 利用者からコメント情報を取得するコメント入力手段と
、 前記解析結果更新手段によりコメント情報の人手による
入力が必要と判断された場合にコメント情報を前記コメ
ント入力手段を用いて利用者から取得しコメント情報の
人手による入力が不要と判断された場合に前記参照コメ
ント記憶手段からコメント情報を取得するコメント更新
手段と、このコメント更新手段によりコメント情報が格
納されるコメント記憶手段と、 前記解析結果記憶手段に格納された解析結果に前記コメ
ント記憶手段に格納されたコメント情報を付加して出力
する解析結果出力手段と を有することを特徴とするソースプログラム解析装置。
[Scope of Claim] A source program analysis device for analyzing a source program describing a software system, comprising: a reference analysis result storage means for storing previous analysis results of the source program; a reference comment storage means for storing comment information that cannot be extracted mechanically from the source program inputted by the source program; a source program analysis means for analyzing the source program; and an analysis result by the source program analysis means and the reference analysis. analysis result updating means for comparing the analysis results in the result storage means to determine whether manual input of comment information is necessary; and analysis results for storing the analysis results by the source program analysis means by the analysis result updating means. a result storage means; a comment input means for acquiring comment information from a user; and a comment input means for inputting comment information to a user using the comment input means when it is determined by the analysis result updating means that manual input of comment information is necessary. comment updating means for acquiring comment information from the reference comment storage means when it is determined that manual input of the comment information is unnecessary; and a comment storage means for storing the comment information by the comment updating means; 1. A source program analysis device comprising analysis result output means for adding comment information stored in the comment storage means to the analysis result stored in the analysis result storage means and outputting the result.
JP1057547A 1989-03-09 1989-03-09 Source program analysis device Expired - Lifetime JP2518383B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1057547A JP2518383B2 (en) 1989-03-09 1989-03-09 Source program analysis device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1057547A JP2518383B2 (en) 1989-03-09 1989-03-09 Source program analysis device

Publications (2)

Publication Number Publication Date
JPH02236626A true JPH02236626A (en) 1990-09-19
JP2518383B2 JP2518383B2 (en) 1996-07-24

Family

ID=13058810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1057547A Expired - Lifetime JP2518383B2 (en) 1989-03-09 1989-03-09 Source program analysis device

Country Status (1)

Country Link
JP (1) JP2518383B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08101764A (en) * 1994-09-30 1996-04-16 Nec Corp Module management device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62214438A (en) * 1986-03-15 1987-09-21 Hitachi Ltd Software specification reuse system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62214438A (en) * 1986-03-15 1987-09-21 Hitachi Ltd Software specification reuse system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08101764A (en) * 1994-09-30 1996-04-16 Nec Corp Module management device

Also Published As

Publication number Publication date
JP2518383B2 (en) 1996-07-24

Similar Documents

Publication Publication Date Title
JP6116650B1 (en) Learning support system, learning support method, learning support apparatus, and learning support program
JP2000331194A (en) Method for simplifying shape model
JPH02236626A (en) Source program analyzer
JPH05143647A (en) Data base retrieval processing method
JPH1153391A (en) Database access method
JP2000181700A (en) Program analyzing device and recording medium
JPH11264826A (en) Input and display system for inspection item
JP2006228133A (en) Document management system and document storage system
JP2697401B2 (en) Execution information collection method
JPH05257979A (en) Data base system with keyword candidate extracting function
JPH05233713A (en) Learning type ambiguity retrieving method
JPH086779A (en) Automatic program generator
JPS6286408A (en) Programmable controller
JP2001143115A (en) Device and method for managing operation
JPH09297680A (en) Method and system for inputting parameter in application development environment
JPS61251966A (en) Image processor
JPH0644024A (en) Explanation message display device
JPH047674A (en) Standard block library retrieval device
JPH113345A (en) Overlapped processing control system
JPH05101032A (en) Simulation model generator
JPH064391A (en) Information processing system
JPH0553865A (en) Automatic analyzer for program return information
JPH04260943A (en) Trace output system
JP2002230015A (en) Data analyzing method and its device and computer program
JPH04238548A (en) Designating and displaying device for trace task