JPH083789B2 - Automatic program generation rate data automatic measurement method - Google Patents

Automatic program generation rate data automatic measurement method

Info

Publication number
JPH083789B2
JPH083789B2 JP63129698A JP12969888A JPH083789B2 JP H083789 B2 JPH083789 B2 JP H083789B2 JP 63129698 A JP63129698 A JP 63129698A JP 12969888 A JP12969888 A JP 12969888A JP H083789 B2 JPH083789 B2 JP H083789B2
Authority
JP
Japan
Prior art keywords
text
program
expansion
source
lines
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.)
Expired - Fee Related
Application number
JP63129698A
Other languages
Japanese (ja)
Other versions
JPH01298436A (en
Inventor
惠理子 宮村
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 JP63129698A priority Critical patent/JPH083789B2/en
Publication of JPH01298436A publication Critical patent/JPH01298436A/en
Publication of JPH083789B2 publication Critical patent/JPH083789B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム自動生成率データの自動計測方式
に関し、特に定型的な記述の自動生成やプログラムソー
ス記述の部品化等によりプログラムの生産性を向上させ
るプログラム開発支援装置におけるプログラム自動生成
率データの自動計測方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to an automatic measurement method of program automatic generation rate data, and particularly, to improve program productivity by automatically generating a standard description or dividing a program source description into parts. The present invention relates to an automatic measurement method of program automatic generation rate data in a program development support device to be improved.

〔従来の技術〕[Conventional technology]

近年、コンピュータプログラムの開発において生産性
を向上させるために、あらかじめプログラムソースを部
分的に記述したもの(以下、部品という)を準備してお
き、ソースプログラム中に部品の引用を指示する記述
(以下、部品展開命令という)を施し、プログラム開発
支援装置を通すことによりプログラムを半自動的に生成
する方法が知られてきている。このような方法では、部
品を利用することにより、利用者が記述したテキスト行
数と後段の言語翻訳システム(以下、コンパイラとい
う)への入力となる出力ソーステキスト行数とは大きく
異なっている(この差を自動生成行と考える)。
In recent years, in order to improve productivity in the development of computer programs, a partial description of a program source (hereinafter referred to as a component) is prepared in advance, and a description for instructing citation of a component in the source program (hereinafter referred to as a component) is provided. , A component development instruction), and a program is generated semi-automatically by passing through a program development support device. In such a method, the number of text lines described by the user and the number of output source text lines to be input to the language translation system (hereinafter, referred to as a compiler) in the subsequent stage are significantly different by using the component ( Think of this difference as an automatically generated line).

このため、出力ソースプログラムにおける利用者が記
述した行数を計測する場合、従来はコンパイラが出力す
るソースプログラムのプログラムリスト上で利用者が入
力ソースプログラムの行と自動的に生成した行とを識別
し、人手で計測していた。また、出力ソーステキスト行
数に対する部品展開行数と登録集原文展開行数との和の
比率である自動生成率を求める際にも人手で演算してい
た。
Therefore, when measuring the number of lines described by the user in the output source program, conventionally, the user distinguishes the line of the input source program from the line automatically generated on the program list of the source program output by the compiler. However, it was measured manually. In addition, when the automatic generation rate, which is the ratio of the number of parts expanded lines to the number of output source text lines and the number of expanded lines of the original text, is calculated manually.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上述した従来のプログラム自動生成率データの計測方
式では、利用者がプログラムリストを見ながら人手で計
測して演算を行っていたので、計測ミスや演算ミスが発
生したりデータ収集作業に時間がとられたりするととも
にデータの精度が欠けるという欠点がある。
In the above-described conventional method for measuring the automatic program generation rate data, the user manually measures and calculates while looking at the program list. Therefore, a measurement error or calculation error may occur, and it may take time to collect data. However, there is a drawback in that the accuracy of the data is lacking.

また、自動生成率を把握したいと思った時点から実際
にその値を把握するまでに計測作業を行う時間やすでに
計測した結果を示したドキュメント類を探す手間がかか
るので、知りたいプログラムの自動生成率を即座に把握
することができないという欠点がある。
In addition, it takes time to measure the time from when you want to know the automatic generation rate until you actually know the value, and it takes time to search for documents that show the already measured results. There is a drawback that the rate cannot be grasped immediately.

本発明の目的は、上述の点に鑑み、自動生成率を自動
的に計測および演算して表示装置上に出力するプログラ
ム自動生成率データの自動計測方式を提供することにあ
る。
In view of the above points, an object of the present invention is to provide an automatic measuring method of program automatic generation rate data which automatically measures and calculates the automatic generation rate and outputs it on a display device.

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

本発明のプログラム自動生成率データの自動計測方式
は、ソースプログラムをあらかじめ部分的に作成してお
きソースプログラムの開発時にはそれらを組み合わせて
ソースプログラムを生成することによりプログラムの開
発を支援するプログラム開発支援装置において、入力と
なるソースプログラムを読み取る際に入力ソーステキス
ト行数を計測するソースプログラム読取り手段と、この
ソースプログラム読取り手段により読み取られた入力テ
キスト中の部品展開命令を判別しこの部品展開命令によ
りソースプログラムとして展開される部品展開行に部品
展開識別フラグを付加する部品展開命令文解析手段と、
この部品展開命令文解析手段により部品展開行が展開さ
れた後のソースプログラムの中から部品展開識別フラグ
により部品展開行を識別し部品展開行数を計測するソー
スプログラム出力手段と、前記部品展開命令文解析手段
により部品展開行が展開された後の入力テキスト中の登
録集原文展開命令を判別しソースプログラムとして展開
される登録集原文展開行数を計測する登録集原文展開命
令文解析手段と、プログラム名,前記ソースプログラム
読取り手段により計測された入力ソーステキスト行数,
前記ソースプログラム出力手段により計測された部品展
開行数および前記登録集原文展開命令文解析手段により
計測された登録集原文展開行数を自動生成率データ管理
ファイルに格納する計測値格納手段と、入力されたプロ
グラム名に基づいて前記自動生成率データ管理ファイル
を参照して入力ソーステキスト行数と部品展開行数と登
録集原文展開行数との和である出力ソーステキスト行数
に対する部品展開行数と登録集原文展開行数との和の比
率である自動生成率を求める演算を行い演算結果を表示
装置に出力する演算手段とを有する。
The automatic program generation rate data automatic measurement method of the present invention is a program development support that supports the development of a program by partially creating a source program in advance and combining them to generate a source program when developing the source program. In the apparatus, a source program reading means for measuring the number of input source text lines when reading a source program to be input, and a part development command in the input text read by the source program reading means are discriminated and this part development command is used. A part development statement analysis means for adding a part development identification flag to a part development line developed as a source program,
Source program output means for identifying a part expansion line from the source program after the part expansion line is expanded by the parts expansion statement analysis part by the parts expansion identification flag and measuring the number of parts expansion lines, and the parts expansion command. A collection of original text expansion instruction sentence analysis means for determining the collection of original text expansion lines which is developed as a source program by discriminating the collection of original text expansion instructions in the input text after the parts development line is expanded by the statement analysis means, Program name, number of input source text lines measured by the source program reading means,
Measured value storage means for storing in the automatic generation rate data management file the number of parts expanded lines measured by the source program output means and the number of registered original text expansion lines measured by the collection of original text expansion statement analysis means, and input Referring to the automatic generation rate data management file based on the created program name, the number of input source text lines, the number of parts development lines, and the number of lines of output source text lines, which is the sum of the number of lines of development texts of the source text And an arithmetic means for performing an arithmetic operation for obtaining an automatic generation rate, which is a ratio of the sum of the number of lines in the collection of original texts, and outputting the arithmetic result to a display device.

〔作用〕[Action]

本発明のプログラム自動生成率データの自動計測方式
では、ソースプログラム読取り手段が入力となるソース
プログラムを読み取る際に入力ソーステキスト行数を計
測し、部品展開命令文解析手段がソースプログラム読取
り手段により読み取られた入力テキスト中の部品展開命
令を判別しこの部品展開命令によりソースプログラムと
して展開される部品展開行に部品展開識別フラグを付加
し、ソースプログラム出力手段が部品展開命令文解析手
段により部品展開行が展開された後のソースプログラム
の中から部品展開識別フラグにより部品展開行を識別し
部品展開行数を計測し、登録集原文展開命令文解析手段
が部品展開命令文解析手段により部品展開行が展開され
た後の入力テキスト中の登録集原文展開命令を判別しソ
ースプログラムとして展開される登録集原文展開行数を
計測し、計測値格納手段がプログラム名,ソースプログ
ラム読取り手段により計測された入力ソーステキスト行
数,ソースプログラム出力手段により計測された部品展
開行数および登録集原文展開命令文解析手段により計測
された登録集原文展開行数を自動生成率データ管理ファ
イルに格納し、演算手段が入力されたプログラム名に基
づいて自動生成率データ管理ファイルを参照して入力ソ
ーステキスト行数と部品展開行数と登録集原文展開行数
との和である出力ソーステキスト行数に対する部品展開
行数と登録集原文展開行数との和の比率である自動生成
率を求める演算を行い演算結果を表示装置に出力する。
According to the automatic program generation rate data measuring method of the present invention, the number of input source text lines is measured when the source program reading means reads the input source program, and the component expansion statement analysis means reads the source program reading means. The part expansion instruction in the input text is determined, a part expansion identification flag is added to the part expansion line expanded as the source program by this part expansion instruction, and the source program output means is the part expansion line by the part expansion statement analysis means. Of the source program after being expanded, the parts expansion line is identified by the parts expansion identification flag and the number of parts expansion lines is measured. The source text expansion instruction is identified as the source text expansion instruction in the input text after expansion. The number of expanded lines of the original text is measured, and the measured value storage means stores the program name, the number of input source text lines measured by the source program reading means, the number of expanded parts lines measured by the source program output means, and the registration list. Store the number of lines of the original text expansion line measured by the original sentence expansion statement analysis means in the automatic generation rate data management file, and refer to the automatic generation rate data management file based on the program name input by the calculation means and input source Calculation of the automatic generation rate, which is the ratio of the sum of the number of parts development lines and the number of registration source text expansion lines to the number of output source text lines, which is the sum of the number of text lines, the number of parts development lines, and the number of development lines of the registration text Then, the calculation result is output to the display device.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明す
る。
Next, the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例のプログラム自動生成率
データの自動計測方式の構成を示すブロック図である。
本実施例のプログラム自動生成率データの自動計測方式
は、入力ソースプログラム1と、ソースプログラム読取
り手段2と、部品展開命令文解析手段3と、部品保持部
4と、ワークファイル5と、ソースプログラム変換手段
6と、ソースプログラム出力手段7と、出力ソースプロ
グラム8と、計測値格納手段9と、出力ソースプログラ
ム読取り手段10と、登録集原文展開命令文解析手段11
と、登録集原文保持部12と、言語翻訳手段13と、オブジ
ェクトプログラム出力手段14と、出力オブジェクトプロ
グラム15と、自動生成率データ管理ファイル16と、演算
手段17と、プログラム名入力装置18と、表示装置19とか
ら構成されている。
FIG. 1 is a block diagram showing the configuration of an automatic program generation rate data measuring system according to an embodiment of the present invention.
The automatic measurement method of the program automatic generation rate data of the present embodiment is the input source program 1, the source program reading means 2, the component development command statement analyzing means 3, the component holding unit 4, the work file 5, and the source program. A conversion unit 6, a source program output unit 7, an output source program 8, a measurement value storage unit 9, an output source program reading unit 10, and a registration collection original sentence expansion statement analysis unit 11
A registration collection original sentence holding unit 12, a language translation unit 13, an object program output unit 14, an output object program 15, an automatic generation rate data management file 16, a calculation unit 17, a program name input device 18, The display device 19 is included.

プリプロセッサ20は、ソースプログラム読取り手段2
と、部品展開命令文解析手段3と、部品保持部4と、ワ
ークファイル5と、ソースプログラム変換手段6と、ソ
ースプログラム出力手段7とを含んで構成されている。
The preprocessor 20 is the source program reading means 2
The component development command statement analysis unit 3, the component holding unit 4, the work file 5, the source program conversion unit 6, and the source program output unit 7 are included.

コンパイラ21は、出力ソースプログラム読取り手段10
と、登録集原文展開命令文解析手段11と、登録集原文保
持部12と、言語翻訳手段13と、オブジェクトプログラム
出力手段14とを含んで構成されている。
The compiler 21 uses the output source program reading means 10
It includes a collection of original text expansion instruction sentence analysis means 11, a collection of original text holding section 12, a language translation means 13, and an object program output means 14.

第2図を参照すると、自動生成率データ管理ファイル
16に格納されるデータは、演算手段17が自動生成率デー
タ管理ファイル16中のデータを読み取る際の呼出しキー
となるプログラム名22と、自動生成率を求める際の情報
である入力ソーステキスト行数23,部品展開行数24およ
び登録集原文展開行数25とからなる。
Referring to FIG. 2, automatic generation rate data management file
The data stored in 16 is the program name 22 which is a calling key when the arithmetic means 17 reads the data in the automatic generation rate data management file 16 and the number of input source text lines which is information when obtaining the automatic generation rate. It consists of 23, the number of parts development lines 24, and the number of lines of the original text development line 25.

第3図を参照すると、演算手段17における処理は、プ
ログラム名入力ステップ31と、自動生成率演算ステップ
32と、自動生成率表示ステップ33とからなる。
With reference to FIG. 3, the processing in the calculating means 17 includes a program name input step 31 and an automatic generation rate calculation step.
32 and automatic generation rate display step 33.

次に、このように構成された本実施例のプログラム自
動生成率データの自動計測方式の動作について説明す
る。
Next, the operation of the automatic program generation rate data measuring method of the present embodiment configured as described above will be described.

ソースプログラム読取り手段2は、入力ソースプログ
ラム1の構成要素である入力テキストを1行ずつ読み込
んで入力テキスト行数を計測し、部品展開命令文解析手
段3に入力テキストを1行ずつ送出する。また、ソース
プログラム読取り手段2は、入力ソースプログラム1か
らの入力テキストの読込みが終了した時点で、プログラ
ム名22と入力テキスト行数23とを計測値格納手段9に格
納する。
The source program reading means 2 reads the input text, which is a component of the input source program 1, line by line, measures the number of input text lines, and sends the input text line by line to the component expansion command statement analysis means 3. Further, the source program reading means 2 stores the program name 22 and the input text line number 23 in the measurement value storage means 9 at the time when the reading of the input text from the input source program 1 is completed.

部品展開命令文解析手段3は、入力プログラム読取り
手段2により読み込まれた入力テキスト中の部品展開命
令を判別する。部品展開命令のないテキストの場合に
は、入力テキストをワークファイル5にそのまま出力す
る。部品展開命令のあるテキストの場合には、部品展開
命令中の部品名をもとに部品保持部4にあらかじめ登録
されている部品を探しに行き、該当する部品が見つかっ
たときには、その部品のテキストを読み取り部品展開行
として部品展開識別フラグを付加し、部品展開命令のあ
るテキストとともにワークファイル5に出力する。該当
する部品が見つからなかったときには、入力テキストを
ワークファイル5にそのまま出力する。
The component development command statement analysis unit 3 determines the component development command in the input text read by the input program reading unit 2. If the text does not include the part expansion instruction, the input text is output as it is to the work file 5. In the case of a text with a parts expansion command, the search is made for a part that is registered in advance in the parts holding unit 4 based on the name of the part in the parts expansion command, and when the corresponding part is found, the text of that part is found. Is read as a component development line, a component development identification flag is added, and the text is output to the work file 5 together with the text having the component development command. When the corresponding part is not found, the input text is output to the work file 5 as it is.

ソースプログラム変換手段6は、部品展開命令文解析
手段3によるワークファイル5へのテキストの出力が終
了した時点で、部品展開命令のないテキストと部品展開
命令のあるテキストと部品展開されたテキスト(部品展
開行)とを併合し、言語翻訳手段13が処理可能な形式に
変換して、ソースプログラム出力手段7に送出する。
The source program conversion unit 6 finishes outputting the text to the work file 5 by the component expansion command statement analysis unit 3, and then the text without the component expansion command, the text with the component expansion command, and the component expanded text (parts The expanded line) is merged, converted into a format that can be processed by the language translation means 13, and sent to the source program output means 7.

ソースプログラム出力手段7は、ソースプログラム変
換手段6により変換されたソースプログラムの中から部
品展開識別フラグにより部品展開行を識別し部品展開行
数を計測して出力ソースプログラム8を出力する。ま
た、ソースプログラム出力手段7は、出力ソースプログ
ラム8の出力が終了した時点で、計測した部品展開行数
24を計測値格納手段9に格納する。
The source program output means 7 identifies the component development line from the source program converted by the source program conversion means 6 by the component development identification flag, measures the number of component development lines, and outputs the output source program 8. Further, the source program output means 7 measures the number of developed parts lines when the output of the output source program 8 is completed.
24 is stored in the measured value storage means 9.

出力ソースプログラム読取り手段10は、出力ソースプ
ログラム8の構成要素である入力テキストを1行ずつ読
み込み、登録集原文展開命令文解析手段11に送出する。
The output source program reading means 10 reads the input text, which is a constituent element of the output source program 8, line by line, and sends it to the library collection original sentence expansion command statement analysis means 11.

登録集原文展開命令文解析手段11は、出力ソースプロ
グラム読取り手段10により読み取られた入力テキスト中
の登録集原文展開命令を判別する。登録集原文展開命令
のないテキストの場合には、入力テキストを言語翻訳手
段13にそのまま出力する。登録集原文展開命令のあるテ
キストの場合には、登録集原文展開命令中の登録集原文
名をもとに登録集原文保持部12にあらかじめ登録されて
いる登録集原文を探しに行き、該当する登録集原文が見
つかったときには、その登録集原文のテキストを読み取
り、登録集原文展開行数25を計測しながら登録集原文展
開行として登録集原文展開命令のあるテキストとともに
言語翻訳手段13に出力する。該当する登録集原文が見つ
からなかったときには、入力テキストを言語翻訳手段13
にそのまま出力する。ソースプログラムの入力が終了し
た時点で、登録集原文展開命令文解析手段11は、計測し
た登録集原文展開行数25を計測値格納手段9に格納す
る。
The library collection original sentence expansion command statement analysis unit 11 determines the library collection original sentence expansion command in the input text read by the output source program reading unit 10. In the case of a text without a library collection source text expansion command, the input text is output to the language translation means 13 as it is. In the case of a text with a library collection source text expansion command, go to the library collection source text that is registered in advance in the library collection source text storage unit 12 based on the library collection source text name in the library collection source text expansion command, and apply When the library text is found, it reads the text of the library text and outputs it to the language translation means 13 as the library text expansion line together with the text with the library text expansion command while measuring the number 25 of the library text expansion lines. . When the corresponding library text is not found, the input text is translated into the language translation means 13
Output as is. When the input of the source program is completed, the library collection original sentence expansion statement analysis unit 11 stores the measured library collection original sentence expansion line number 25 in the measurement value storage unit 9.

言語翻訳手段13は、登録集原文展開命令文解析手段11
を通じて渡されたソースプログラムを機械語に翻訳して
オブジェクトプログラムとし、オブジェクトプログラム
出力手段14に送出する。
The language translation means 13 is a collection of original text expansion instruction sentence analysis means 11
The source program passed through is translated into a machine language to be an object program, which is sent to the object program output means 14.

オブジェクトプログラム出力手段14は、出力オブジェ
クトプログラム15を出力する。
The object program output means 14 outputs the output object program 15.

計測値格納手段9は、登録集原文展開命令文解析手段
11から登録集原文展開行数25が格納された時点で、ソー
スプログラム読取り手段2から格納されたプログラム名
22および入力テキスト行数23,ソースプログラム出力手
段7から格納された部品展開行数24ならびに登録集原文
展開命令文解析手段11から格納された登録集原文展開行
数25を1レコードとして自動生成率データ管理ファイル
16に出力する。
The measurement value storage means 9 is a collection of original text expansion instruction statement analysis means.
The program name stored from the source program reading means 2 when the number of lines of the original text expanded 25 is stored from 11
22 and the number of input text lines 23, the number of parts development lines 24 stored from the source program output means 7 and the number of registration text expansion lines 25 stored from the library text expansion statement sentence analysis means 11 are automatically generated as one record. Data management file
Output to 16.

演算手段17は、オペレータがプログラム名入力装置18
から入力したプログラム名22をキーとして、自動生成率
データ管理ファイル16から該当する入力ソーステキスト
行数23,部品展開行数24および登録集原文展開行数25を
読み取り、入力ソーステキスト行数23,部品展開行数24
および登録集原文展開行数25の和である出力ソーステキ
スト行数に対する部品展開行数24と登録集原文展開行数
25との和の比率である自動生成率を求める演算を行い、
入力ソーステキスト行数23,部品展開行数24および登録
集原文展開行数25と出力ソーステキスト行数と演算結果
である自動生成率とを表示装置19に出力する。
The operator of the calculation means 17 is a program name input device 18
Using the program name 22 input from the key as the key, read the corresponding input source text line number 23, part development line number 24 and registration collection original text development line number 25 from the automatic generation rate data management file 16, and input source text line number 23, Number of parts development lines 24
And the number of lines in the source text expanded to the number of output source text lines that is the sum of the number of lines in the original text in the library of 25 and the number of lines in the original text
Perform the calculation to obtain the automatic generation rate, which is the ratio of the sum with 25,
The number of input source text lines 23, the number of parts expanded lines 24, the number of lines of expanded texts of the library, the number of output source text lines, and the automatic generation rate as the calculation result are output to the display device 19.

次に、本実施例のプログラム自動生成率データの自動
計測方式の動作を第4図を参照しながらより具体的に説
明する。
Next, the operation of the automatic program generation rate data automatic measurement method of this embodiment will be described more specifically with reference to FIG.

まず、ソースプログラム読取り手段2は、プログラム
名がA、テキスト行数がaであり、部品展開命令文(@
PPP(a,b);)および登録集原文展開命令文(COPY QQ
Q.)を含む入力ソースプログラム1を入力する。入力ソ
ースプログラム1の入力終了時に、ソースプログラム読
取り手段3は、プログラム名Aおよび入力ソーステキス
ト行数aを計測値格納手段9に格納する。
First, in the source program reading means 2, the program name is A, the number of text lines is a, and the component expansion command (@
PPP (a, b);) and library original text expansion statement (COPY QQ
Input source program 1 including Q.). When the input of the input source program 1 is completed, the source program reading means 3 stores the program name A and the input source text line number a in the measurement value storage means 9.

次に、部品展開命令文解析手段3は、入力テキスト中
の部品展開命令文(@PPP(a,b);)を解析して部品名
PPPをもとに部品保持部4から部品41を読み取り、入力
ソースプログラム1中に部品展開行(MOVE a TO b.等)
を併合する。また、入力ソースプログラム1の入力終了
時に、部品展開命令文解析手段3は、部品展開行数bを
計測値格納手段9に格納する。
Next, the part expansion command statement analysis means 3 analyzes the part expansion command statement (@PPP (a, b);) in the input text to analyze the part name.
The component 41 is read from the component holding unit 4 based on the PPP, and the component development line (MOVE a TO b., Etc.) in the input source program 1 is read.
Merge. Further, when the input of the input source program 1 is completed, the component development statement analysis unit 3 stores the component development line number b in the measurement value storage unit 9.

次に、登録集原文展開命令文解析手段11は、部品41が
展開された後のソースプログラム42中の登録集原文展開
命令文(COPY QQQ.)を判別し、登録集原文名がQQQであ
る登録集原文43のテキストを登録集原文保持部12から読
み取り、部品展開後のソースプログラム42中に登録集原
文展開行(READ INP−FILE.等)を併合して、登録集原
文展開後のソースプログラム44とする。また、登録集原
文展開命令文解析手段11は、登録集原文展開行数cを計
測値格納手段9に格納する。
Next, the library of original text expansion statement analysis unit 11 determines the library of original text expansion statement (COPY QQQ.) In the source program 42 after the component 41 has been expanded, and the library original text name is QQQ. The text of the library text is read from the library text holding unit 12, and the library text expansion line (READ INP-FILE. Etc.) is merged into the source program 42 after the parts are expanded, and the source after the library text is expanded. Program 44. Further, the collection of original text development statement analysis unit 11 stores the number of developed original text lines c in the measurement value storage unit 9.

計測値格納手段9に格納されたデータは、第4図に示
す形式で自動生成率データ管理ファイル16に保存され
る。
The data stored in the measured value storage means 9 is stored in the automatic generation rate data management file 16 in the format shown in FIG.

演算手段17は、プログラム名入力装置18からプログラ
ム名Aが入力されると(ステップ31)、プログラム名A
をキーとして自動生成率データ管理ファイル16から入力
ソーステキスト行数a,部品展開行数bおよび登録集原文
展開行数cを読み込み、入力ソーステキスト行数a,部品
展開行数bおよび登録集原文展開行数cを加算すること
により出力ソーステキスト行数(a+b+c)を求め、
部品展開行数bと登録集原文展開行数cとの和(b+
c)を出力ソーステキスト行数(a+b+c)で除する
ことにより自動生成率を求める(ステップ32)。続い
て、演算手段17は、表示装置19にプログラム名A,入力ソ
ーステキスト行数a,部品展開行数b,登録集原文展開行数
c,出力ソーステキスト行数(a+b+c)および求めた
自動生成率を出力する(ステップ33)。
When the program name A is input from the program name input device 18 (step 31), the computing means 17 receives the program name A.
With the key as a key, the input source text line number a, the part development line number b and the registration source text development line number c are read from the automatic generation rate data management file 16, and the input source text line number a, the part development line number b and the registration source text are read. The output source text line number (a + b + c) is obtained by adding the expansion line number c,
The sum of the number of lines of expanded parts b and the number of lines of expanded lines of the original text c (b +
The automatic generation rate is obtained by dividing c) by the number of output source text lines (a + b + c) (step 32). Subsequently, the calculating means 17 causes the display device 19 to display the program name A, the number of input source text lines a, the number of component expansion lines b, and the number of lines of the original text expansion lines of the library.
c, the number of output source text lines (a + b + c) and the obtained automatic generation rate are output (step 33).

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、ソースプログラム読取
り手段,部品展開命令文解析手段,ソースプログラム出
力手段,登録集原文展開命令文解析手段,計測値格納手
段および演算手段を設けたことにより、通常のプログラ
ム開発作業中にプログラムの自動生成率を求める際に必
要なデータが自動的に計測されるので、データ収集に費
やす時間が削減できるとともに人為的操作が入り難いた
めにデータの精度が向上するという効果がある。
As described above, according to the present invention, by providing the source program reading means, the component expansion instruction sentence analysis means, the source program output means, the library original sentence expansion instruction sentence analysis means, the measurement value storage means and the operation means, The data required to calculate the automatic generation rate of the program is automatically measured during the program development work, so the time spent collecting the data can be reduced and the accuracy of the data is improved because it is difficult for human operations to enter. effective.

また、プログラムの自動生成率を求める際に必要なデ
ータが自動生成率データ管理ファイルに蓄えられるの
で、自動生成率を求めたいプログラム名を指示するだけ
で即座に自動生成率を把握することができる効果があ
る。
In addition, since the data required when calculating the automatic generation rate of the program is stored in the automatic generation rate data management file, it is possible to immediately grasp the automatic generation rate simply by specifying the program name for which the automatic generation rate is desired. effective.

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

第1図は本発明の一実施例のプログラム自動生成率デー
タの自動計測方式の構成を示すブロック図、 第2図は第1図中の自動生成率データ管理ファイルにお
けるデータ格納形式を示す図、 第3図は第1図中の演算手段における処理を示す流れ
図、 第4図は本実施例のプログラム自動生成率データの自動
計測方式の動作を具体的に説明するための図である。 図において、 1……入力ソースプログラム、2……ソースプログラム
読取り手段、3……部品展開命令文解析手段、4……部
品保持部、5……ワークファイル、6……ソースプログ
ラム変換手段、7……ソースプログラム出力手段、8…
…出力ソースプログラム、9……計測値格納手段、10…
…出力ソースプログラム読取り手段、11……登録集原文
展開命令文解析手段、12……登録集原文保持部、13……
言語翻訳手段、14……オブジェクトプログラム出力手
段、15……出力オブジェクトプログラム、16……自動生
成率データ管理ファイル、17……演算手段、18……プロ
グラム名入力装置、19……表示装置、20……プリプロセ
ッサ、21……コンパイラ、22……プログラム名、23……
入力ソーステキスト行数、24……部品展開行数、25……
登録集原文展開行数、41……部品、42……部品展開後の
ソースプログラム、43……登録集原文、44……登録集原
文展開後のソースプログラムである。
FIG. 1 is a block diagram showing the configuration of an automatic measurement system for program automatic generation rate data according to an embodiment of the present invention, and FIG. 2 is a diagram showing a data storage format in an automatic generation rate data management file in FIG. FIG. 3 is a flow chart showing the processing in the arithmetic means in FIG. 1, and FIG. 4 is a diagram for specifically explaining the operation of the automatic program generation rate data measuring method of this embodiment. In the figure, 1 ... Input source program, 2 ... Source program reading means, 3 ... Component expansion statement analysis means, 4 ... Component holding section, 5 ... Work file, 6 ... Source program converting means, 7 ...... Source program output means, 8 ...
... Output source program, 9 ... Measured value storage means, 10 ...
… Output source program reading means, 11 …… Registration source text expansion instruction sentence analysis means, 12 …… Registration source text holding section, 13 ……
Language translation means, 14 ... Object program output means, 15 ... Output object program, 16 ... Automatic generation rate data management file, 17 ... Calculation means, 18 ... Program name input device, 19 ... Display device, 20 …… Preprocessor, 21 …… Compiler, 22 …… Program name, 23 ……
Number of input source text lines, 24 …… Number of parts development lines, 25 ……
Number of lines in the collection of original texts, 41 ... Parts, 42 ... Source program after the parts are expanded, 43.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ソースプログラムをあらかじめ部分的に作
成しておきソースプログラムの開発時にはそれらを組み
合わせてソースプログラムを生成することによりプログ
ラムの開発を支援するプログラム開発支援装置におい
て、 入力となるソースプログラムを読み取る際に入力ソース
テキスト行数を計測するソースプログラム読取り手段
と、 このソースプログラム読取り手段により読み取られた入
力テキスト中の部品展開命令を判別しこの部品展開命令
によりソースプログラムとして展開される部品展開行に
部品展開識別フラグを付加する部品展開命令文解析手段
と、 この部品展開命令文解析手段により部品展開行が展開さ
れた後のソースプログラムの中から部品展開識別フラグ
により部品展開行を識別し部品展開行数を計測するソー
スプログラム出力手段と、 前記部品展開命令文解析手段により部品展開行が展開さ
れた後の入力テキスト中の登録集原文展開命令を判別し
ソースプログラムとして展開される登録集原文展開行数
を計測する登録集原文展開命令文解析手段と、 プログラム名,前記ソースプログラム読取り手段により
計測された入力ソーステキスト行数,前記ソースプログ
ラム出力手段により計測された部品展開行数および前記
登録集原文展開命令文解析手段により計測された登録集
原文展開行数を自動生成率データ管理ファイルに格納す
る計測値格納手段と、 入力されたプログラム名に基づいて前記自動生成率デー
タ管理ファイルを参照して入力ソーステキスト行数と部
分展開行数と登録集原文展開行数との和である出力ソー
ステキスト行数に対する部品展開行数と登録集原文展開
行数との和の比率である自動生成率を求める演算を行い
演算結果を表示装置に出力する演算手段と、 を有することを特徴とするプログラム自動生成率データ
の自動計測方式。
1. A program development support device for supporting the development of a program by partially creating a source program in advance and generating a source program by combining the source programs when developing the source program. A source program reading unit that measures the number of input source text lines when reading, and a component expansion line that is expanded as a source program by the component expansion command in the input text read by the source program reading unit To the component development command statement analysis means for adding a component development identification flag to the component development command sentence analysis means, and the component development line is identified by the component development identification flag from the source program after the component development line is developed by the component development command statement analysis means. A source professional that measures the number of expansion lines RAM output means and the registration collection which is expanded as a source program by discriminating the registration text original expansion instruction in the input text after the expansion of the parts expansion statement by the parts expansion statement analysis means is registered. Collection original sentence expansion statement analysis unit, program name, number of input source text lines measured by the source program reading unit, number of component expansion lines measured by the source program output unit, and registered collection original sentence expansion statement analysis unit Input source text line number with reference to the automatic generation rate data management file based on the input program name And the number of partially expanded lines and the number of lines of the original text expanded library Automatic Measurement Method of automatic program generation rate data, characterized in that it comprises calculating means for outputting the operation result performs calculation for obtaining the automatic generation rate is the ratio of the sum of the library text number expansion line on the display device.
JP63129698A 1988-05-27 1988-05-27 Automatic program generation rate data automatic measurement method Expired - Fee Related JPH083789B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63129698A JPH083789B2 (en) 1988-05-27 1988-05-27 Automatic program generation rate data automatic measurement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63129698A JPH083789B2 (en) 1988-05-27 1988-05-27 Automatic program generation rate data automatic measurement method

Publications (2)

Publication Number Publication Date
JPH01298436A JPH01298436A (en) 1989-12-01
JPH083789B2 true JPH083789B2 (en) 1996-01-17

Family

ID=15015984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63129698A Expired - Fee Related JPH083789B2 (en) 1988-05-27 1988-05-27 Automatic program generation rate data automatic measurement method

Country Status (1)

Country Link
JP (1) JPH083789B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5785144A (en) * 1980-11-14 1982-05-27 Fuji Facom Corp Program control information generating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
情報処理学会「第31回〔昭和60年後期)全国大会講演論文集」(昭和60−9)P.371−372

Also Published As

Publication number Publication date
JPH01298436A (en) 1989-12-01

Similar Documents

Publication Publication Date Title
JPH083789B2 (en) Automatic program generation rate data automatic measurement method
JPH08314760A (en) Program development supporting device
JPH10105444A (en) Operation manual original form preparation system
JP2002229818A (en) Program execution time analytical method and its device
JP2007018334A (en) Support system for software development
JP2581381B2 (en) Natural language interface method
JPH04143830A (en) Development supporting system for software
JP2007094453A (en) Program development support system, program development support method and program
JPH03271949A (en) Automatic generation system for test environment of program test
JPS61181961A (en) Data processor for chromatograph
JP2004102742A (en) Program test debugging system
JP2023078983A (en) Work management method or system
JP2019096131A (en) Program relation analyzer
JPH0793144A (en) Program analyzer
JPH0635752A (en) Analysis program generation system
JP2000172495A (en) Device and method for outputting data setting reference place
JPH09319611A (en) Program development supporter
JPH02272668A (en) Transaction execution time sequence diagram edition system
JPS60178535A (en) Execution definition type command system for processing
JP2000293410A (en) Profiler
JP2002149449A (en) Method for developing program
JPH05119958A (en) Rom compression system
JPS6142036A (en) Converting method of source program
JPH01306921A (en) System for outputting segment constitution information
JPH06250876A (en) Interactive debugging supporting system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees