JPH01298436A - Automatic measuring system for program automatic preparing ratio data - Google Patents

Automatic measuring system for program automatic preparing ratio data

Info

Publication number
JPH01298436A
JPH01298436A JP63129698A JP12969888A JPH01298436A JP H01298436 A JPH01298436 A JP H01298436A JP 63129698 A JP63129698 A JP 63129698A JP 12969888 A JP12969888 A JP 12969888A JP H01298436 A JPH01298436 A JP H01298436A
Authority
JP
Japan
Prior art keywords
source program
program
text
expansion
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.)
Granted
Application number
JP63129698A
Other languages
Japanese (ja)
Other versions
JPH083789B2 (en
Inventor
Eriko Miyamura
宮村 惠理子
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

Abstract

PURPOSE:To instantaneously grasp an automatic preparing ratio by providing a source program reading means, a source program output means, a registration collection original sentence development instruction sentence analyzing means, a measured value storing means and an arithmetic means. CONSTITUTION:A measured value storing means 9 outputs the program name and the number of input text rows stored from a source program reading means 2, the number of parts development rows stored from a source program output means 7 and the number of the registration collection original sentence develop ment rows stored from a registration collection original sentence development instruction analyzing means 11 as one record to an automatic preparing ratio data control file 16. An arithmetic means 17 refers to the automatic preparing ratio data control file 16 based on the program name inputted from a program name input device 18, executes the operation to obtain the automatic preparing ratio and outputs the arithmetic result to a display device 19. Thus, the auto matic preparing ratio of the program can be instantaneously grasped.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム自動生成率データの自動計測方式に
関し、特に定型的な記述の自動生成やプログラムソース
記述の部品化等によりプログラムの生産性を向上させる
プログラム開発支援装置におけるプログラム自動生成率
データの自動計測方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an automatic measurement method for automatic program generation rate data, and in particular, to improve program productivity through automatic generation of standard descriptions, componentization of program source descriptions, etc. This invention relates to an automatic measurement method for program automatic generation rate data in a program development support device.

〔従来の技術〕[Conventional technology]

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

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

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

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

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

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

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

本発明のプログラム自動生成率データの自動計測方式は
、ソースプログラムをあらかじめ部分的に作成しておき
ソースプログラムの開発時にはそれらを組み合わせてソ
ースプログラムを生成することによりプログラムの開発
を支援するプログラム開発支援装置において、入力とな
るソースプログラムを読み取る際に入力子もスト行数を
計測するソースプログラム読取り手段と、このソースプ
ログラム読取り手段により読み取られた入力テキスト中
の部品展開命令を判別しこの部品展開命令によりソース
プログラムとして展開される部品展開行に部品展開識別
フラグを付加する部品展開命令文解析手段と、この部品
展開命令文解析手段により部品展開行が展開された後の
ソースプログラムの中から部品展開識別フラグにより部
品展開行を識別し部品展開行数を計測するソースプログ
ラム出力手段と、前記部品展開命令文解析手段により部
品展開行が展開された後の入力テキスト中の登録集原文
展開命令を判別しソースプログラムとして展開される登
録集原文展開行数を計測する登録集原文展開命令文解析
手段と、プログラム名。
The automatic measurement method of automatic program generation rate data of the present invention provides program development support that supports program development by creating parts of a source program in advance and combining them to generate a source program when developing a source program. In the device, there is a source program reading means that measures the number of lines of the input child when reading an input source program, and a source program reading means that determines a component expansion command in the input text read by the source program reading means and reads this component expansion command. A parts expansion command sentence analysis means adds a parts expansion identification flag to a parts expansion line expanded as a source program by the parts expansion command sentence analysis means, and a parts expansion command sentence analysis means adds a parts expansion identification flag to a parts expansion line expanded as a source program. A source program output means for identifying a component expansion line using an identification flag and measuring the number of component expansion lines; and a source program output means for identifying a component expansion line using an identification flag, and determining a library source text expansion command in the input text after the component expansion line is expanded by the component expansion command statement analysis means. A library source text expansion statement analysis means for measuring the number of lines of the library source text expanded as a source program, and a program name.

前記ソースプログラム読取り手段により計測された入力
テキスト行数、前記ソースプログラム出力手段により計
測された部品展開行数および前記登録集原文展開命令文
解析手段により計測された登録集原文展開行数を自動生
成率データ管理ファイルに格納する計測値格納手段と、
入力されたプログラム名に基づいて前記自動生成率デー
タ管理ファイルを参照して出力ソーステキスト行数に対
する部品展開行数と登録集原文展開行数との和の比率で
ある自動生成率を求める演算を行い演算結果を表示装置
に出力する演算手段とを有する。
Automatically generating the number of input text lines measured by the source program reading means, the number of component expansion lines measured by the source program output means, and the number of library original text expansion lines measured by the library original text expansion command sentence analysis means. Measured value storage means to be stored in a rate data management file;
Based on the input program name, refer to the automatic generation rate data management file and calculate the automatic generation rate, which is the ratio of the sum of the number of parts expansion lines and the number of library original text expansion lines to the number of output source text lines. and an arithmetic means for outputting the arithmetic results to a display device.

〔作用〕[Effect]

本発明のプログラム自動生成率データの自動計測方式で
は、ソースプログラム読取り手段が入力となるソースプ
ログラムを読み取る際に入力テキスト行数を計測し、部
品展開命令文解析手段がソースプログラム読取り手段に
より読み取られた入力テキスト中の部品展開命令を判別
しこの部品展開命令によりソースプログラムとして展開
される部品展開行に部品展開識別フラグを付加し、ソー
スプログラム出力手段が部品展開命令文解析手段により
部品展開行が展開された後のソースプログラムの中から
部品展開識別フラグにより部品展開行を識別し部品展開
行数を計測し、登録集原文展開命令文解析手段が部品展
開命令文解析手段により部品展開行が展開された後の入
力テキスト中の登録集原文展開命令を判別しソースプロ
グラムとして展開される登録集原文展開行数を計測し、
計測値格納手段がプログラム名、ソースプログラム読取
り手段により計測された入力テキスト行数。
In the automatic measurement method of automatic program generation rate data of the present invention, the source program reading means measures the number of input text lines when reading the input source program, and the component expansion command sentence analysis means reads the source program. The source program output means identifies the parts expansion command in the input text, adds a parts expansion identification flag to the parts expansion line that is expanded as a source program by this parts expansion command, and the source program output means uses the parts expansion command sentence analysis means to extract the parts expansion line. The component expansion line is identified from the expanded source program using the component expansion identification flag, the number of component expansion lines is measured, and the registration library original text expansion command sentence analysis means expands the component expansion line using the component expansion command sentence analysis unit. determines the library source text expansion command in the input text after the input text is processed, and measures the number of library source text expansion lines that are expanded as a source program,
The measurement value storage means is the program name, and the number of input text lines measured by the source program reading means.

ソースプログラム出力手段により計測された部品展開行
数および登録集原文展開命令文解析手段により計測され
た登録集原文展開行数を自動生成率データ管理ファイル
に格納し、演算手段が入力されたプログラム名に基づい
て自動生成率データ管理ファイルを参照して出力ソース
テキスト行数に対する部品展開行数と登録集原文展開行
数との和の比率である自動生成率を求める演算を行い演
算結果を表示装置に出力する。
The number of component expansion lines measured by the source program output means and the number of library original text expansion lines measured by the library original text expansion command sentence analysis means are stored in the automatic generation rate data management file, and the calculation means inputs the program name. Based on this, the automatic generation rate data management file is referenced to calculate the automatic generation rate, which is the ratio of the sum of the number of parts development lines and the number of library original text development lines to the number of output source text lines, and the calculation results are displayed on the display device. Output to.

〔実施例〕〔Example〕

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

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

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

コンパイラ21は、出力ソースプログラム読取り手段1
0と、登録集原文展開命令文解析手段11と、登録集原
文保持部12と、言語翻訳手段13と、オブジェクトプ
ログラム出力手段14とを含んで構成されている。  
 ゛ 第2図を参照すると、自動生成率データ管理ファイル1
6に格納されるデータは、演算手段17が自動生成率デ
ータ管理ファイル16中のデータを読み取る際の呼出し
キーとなるプログラム名22と、自動生成率を求める際
の情報である入力ソーステキスト行数231部品展開行
数24および登録集原文展開行数25とからなる。
The compiler 21 includes an output source program reading means 1
0, a library original text expansion command sentence analysis means 11, a registry original text holding section 12, a language translation means 13, and an object program output means 14.
゛Referring to Figure 2, automatic generation rate data management file 1
The data stored in 6 includes the program name 22, which is the call key when the calculation 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 calculating the automatic generation rate. It consists of 24 lines of 231 parts development and 25 lines of registry original text development.

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

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

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

部品展開命令文解析手段3は、入力プログラム読取り手
段2により読み込まれた入力テキスト中の部品展開命令
を判別する。部品展開命令のないテキストの場合には、
入力テキストをワークファイル5にそのまま出力する。
The parts expansion command sentence analysis means 3 determines the parts expansion command in the input text read by the input program reading means 2. In the case of text without part expansion instructions,
The input text is output as is to the work file 5.

部品展開命令のあるテキストの場合には、部品展開命令
中の部品名をもとに部品保持部4にあらかじめ登録され
ている部品を探しに行き、該当する部品が見つかったと
きには、その部品のテキストを読み取り部品展開行とし
て部品展開識別フラグを付加し、部品展開命令のあるテ
キストとともにワークファイル5に出力する。該当する
部品が見つからなかったときには、入力テキストをワー
クファイル5にそのまま出力する。
In the case of a text with a parts deployment command, the part registered in advance in the component holding unit 4 is searched based on the part name in the parts deployment command, and when the corresponding part is found, the text of that part is searched. is read and a part development identification flag is added as a part development line, and outputted to the work file 5 together with text containing a part development instruction. If the corresponding part is not found, the input text is output as is to the work file 5.

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

ソースプログラム出力手段7は、ソースプログラム変換
手段6により変換されたソースプログラムの中から部品
展開識別フラグにより部品展開行を識別し部品展開行数
を計測して出力ソースプログラム8を出力する。また、
ソースプログラム出力手段7は、出力ソースプログラム
8の出力が終了した時点で、計測した部品展開行数24
を計測値格納手段9に格納する。
The source program output means 7 identifies a component development line from the source program converted by the source program conversion means 6 using a component development identification flag, measures the number of component development lines, and outputs an output source program 8. Also,
When the output of the output source program 8 is finished, the source program output means 7 outputs the measured part development line number 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 component of the output source program 8, line by line, and sends it to the library original text expansion command sentence analysis means 11.

登録集原文展開命令文解析手段11は、出力ソースプロ
グラム読取り手段10により読み取られた入力テキスト
中の登録集原文展開命令を判別する。
The library original text expansion command sentence analysis means 11 determines the library original text expansion command in the input text read by the output source program reading means 10.

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

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

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

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

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

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

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

次に、部品展開命令文解析手段3は、入力テキスト中の
部品展開命令文(@PPP (a、b);)を解析して
部品名PPPをもとに部品保持部4から部品41を読み
取り、入力ソースプログラム1中に部品展開行(MOV
E  a  To  b、等)を併合する。また、入力
ソースプログラムlの入力終了時に、部品展開命令文解
析手段3は、部品展開行数すを計測値格納手段9に格納
する。
Next, the component deployment command statement analysis means 3 analyzes the component deployment command statement (@PPP (a, b);) in the input text and reads the component 41 from the component holding unit 4 based on the component name PPP. , the parts expansion line (MOV
E a To b, etc.). Further, at the end of inputting the input source program 1, the component expansion command sentence analysis means 3 stores the number of component expansion lines in the measured value storage means 9.

次に、登録集原文展開命令文解析手段11は、部品41
が展開された後のソースプログラム42中の登録集原文
展開命令文(COPY  QQQ、)を判別し、登録集
原文名がQQQである登録集原文43のテキストを登録
集原文保持部12から読み取り、部品展開後のソースプ
ログラム42中に登録集原文展開行(READ  IN
P−FILE!、、等)を併合して、登録集原文展開後
のソースプログラム44とする。また、登録集原文展開
命令文解析手段11は、登録集原文展開行数Cを計測値
格納手段9に格納する。
Next, the registration collection original text expansion instruction sentence analysis means 11 uses the component 41
determines the library original text expansion command statement (COPY QQQ,) in the source program 42 after it has been expanded, and reads the text of the library original text 43 whose library text name is QQQ from the library text holding unit 12; In the source program 42 after parts are expanded, there is a library original text expansion line (READ IN).
P-FILE! , , etc.) are merged to form the source program 44 after the registration library original text development. Further, the registry source text development command sentence analysis means 11 stores the number of lines C of the library source text development line number C in the measured value storage device 9.

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

演算手段17は、プログラム名入力装置18からプログ
ラム名Aが入力されると(ステップ31)、プログラム
名Aをキーとして自動生成率データ管理ファイル16か
ら入力ソーステキスト行数a8部品展開行数すおよび登
録集原文展開行数Cを読み込み、入力ソーステキスト行
数a9部品展開行数すおよび登録集原文展開行数Cを加
算することにより出力ソーステキスト行数(a+b+c
)を求め、部品展開行数すと登録集原文展開行数Cとの
和(b+c)を出力ソーステキスト行数(,1+b+c
)で除することにより自動生成率を求める(ステップ3
2)、続いて、演算手段17は、表示装置19にプログ
ラム名A、入力ソーステキスト行数a1部品展開行数す
、登録集原文展開行数C2出力ソーステキスト行数(a
+b+c)および求めた自動生成率を出力する(ステッ
プ33)。
When the program name A is input from the program name input device 18 (step 31), the calculation means 17 uses the program name A as a key to calculate the number of input source text lines, a8, the number of component development lines, and By reading the number of lines of the library original text developed, C, and adding the number of input source text lines a9, the number of parts developed lines, and the number of lines of the library original text developed, the number of output source text lines (a+b+c
), and the sum (b+c) of the number of component development lines and the number of library original text development lines C is calculated as the number of source text lines (,1+b+c
) to find the automatic generation rate (Step 3
2) Subsequently, the calculation means 17 displays on the display device 19 the program name A, the number of input source text lines a1 the number of component development lines, the number of registry source text development lines C2 the number of output source text lines (a
+b+c) and the determined automatic generation rate are output (step 33).

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

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

また、プログラムの自動生成率を求める際に必要なデー
タが自動生成率データ管理ファイルに蓄えられるので、
自動生成率を求めたいプログラム名を指示するだけで即
座に自動生成率を把握することができる効果がある。
In addition, the data necessary to determine the automatic generation rate of a program is stored in the automatic generation rate data management file.
This has the effect of allowing you to instantly understand the automatic generation rate by simply specifying the name of the program for which you want to calculate the automatic generation rate.

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

第1図は本発明の一実施例のプログラム自動生成率デー
タの自動計測方式の構成を示すブロック図、 第2図は第1図中の自動生成率データ管理ファイルにお
けるデータ格納形式を示す図、第3図は第1図中の演算
手段における処理を示す流れ図、 第4図は本実施例のプログラム自動生成率データの自動
計測方式の動作を具体的に説明するための図である。 図において、 1・・・入力ソースプログラム、 2・・・ソースプログラム読取り手段、3・・・部品展
開命令文解析手段、 4・・・部品保持部、 5・・・ワークファイル、 6・・・ソースプログラム変換手段、 7・・・ソースプログラム出力手段、 8・・・出力ソースプログラム、 9・・・計測値格納手段、 lO・・・出力ソースプログラム読取り手段、11・・
・登録集原文展開命令文解析手段、12・・・登録集原
文保持部、 13・・・言語翻訳手段、 14・・・オブジェクトプログラム出力手段、15・・
・出力オブジェクトプログラム、16・・・自動生成率
データ管理ファイル、17・・・演算手段、 18・・・プログラム名入力’AM、 19・・・表示装置、 20・・・プリプロセッサ、 21・・・コンパイラ、 22・・・プログラム名、 23・・・入力ソーステキスト行数、 24・・・部品展開行数、 25・・・登録集原文展開行数、 41・・・部品、 42・・・部品展開後のソースプログラム、43・・・
登si集原文、 44・・・登録集原文展開後のソースプログラムである
FIG. 1 is a block diagram showing the configuration of an automatic measurement method for program automatic generation rate data according to an embodiment of the present invention; FIG. 2 is a diagram showing a data storage format in the automatic generation rate data management file in FIG. 1; FIG. 3 is a flowchart showing the processing in the arithmetic means in FIG. 1, and FIG. 4 is a diagram specifically explaining the operation of the automatic measurement method of program automatic generation rate data of this embodiment. In the figure, 1... Input source program, 2... Source program reading means, 3... Part expansion command sentence analysis means, 4... Part holding section, 5... Work file, 6... Source program conversion means, 7...Source program output means, 8...Output source program, 9...Measurement value storage means, IO...Output source program reading means, 11...
・Registration collection original text expansion imperative sentence analysis means, 12...Registration collection original text holding unit, 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 'AM, 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 library original text development lines, 41...Parts, 42...Parts Source program after expansion, 43...
Registration collection original text, 44... This is the source program after the registration collection original text has been expanded.

Claims (1)

【特許請求の範囲】 ソースプログラムをあらかじめ部分的に作成しておきソ
ースプログラムの開発時にはそれらを組み合わせてソー
スプログラムを生成することによりプログラムの開発を
支援するプログラム開発支援装置において、 入力となるソースプログラムを読み取る際に入力テキス
ト行数を計測するソースプログラム読取り手段と、 このソースプログラム読取り手段により読み取られた入
力テキスト中の部品展開命令を判別しこの部品展開命令
によりソースプログラムとして展開される部品展開行に
部品展開識別フラグを付加する部品展開命令文解析手段
と、 この部品展開命令文解析手段により部品展開行が展開さ
れた後のソースプログラムの中から部品展開識別フラグ
により部品展開行を識別し部品展開行数を計測するソー
スプログラム出力手段と、前記部品展開命令文解析手段
により部品展開行が展開された後の入力テキスト中の登
録集原文展開命令を判別しソースプログラムとして展開
される登録集原文展開行数を計測する登録集原文展開命
令文解析手段と、 プログラム名、前記ソースプログラム読取り手段により
計測された入力テキスト行数、前記ソースプログラム出
力手段により計測された部品展開行数および前記登録集
原文展開命令文解析手段により計測された登録集原文展
開行数を自動生成率データ管理ファイルに格納する計測
値格納手段と、入力されたプログラム名に基づいて前記
自動生成率データ管理ファイルを参照して出力ソーステ
キスト行数に対する部品展開行数と登録集原文展開行数
との和の比率である自動生成率を求める演算を行い演算
結果を表示装置に出力する演算手段と、 を有することを特徴とするプログラム自動生成率データ
の自動計測方式。
[Claims] In a program development support device that supports program development by partially creating a source program in advance and combining them to generate a source program when developing the source program, a source program that is an input source program. a source program reading means that measures the number of lines of input text when reading the source program, and a part expansion line that determines a component expansion command in the input text read by the source program reading means and expands it as a source program according to the component expansion instruction. a parts expansion command statement analysis means that adds a parts expansion identification flag to a part development statement, and a parts expansion statement analysis means that identifies a parts expansion line from the source program after the parts expansion line has been expanded by the parts expansion command statement analysis means, using the parts expansion identification flag. A source program output means for measuring the number of expanded lines; and a library original text that is developed as a source program by determining a library original text expansion command in the input text after the component expansion line is expanded by the component expansion command statement analysis means. a registry source text expansion command sentence analysis means for measuring the number of expanded lines; a program name, the number of input text lines measured by the source program reading means, the number of parts expanded lines measured by the source program output means, and the registry. measurement value storage means for storing the number of lines expanded in the library original text measured by the source text expansion command sentence analysis means in an automatic generation rate data management file; calculation means for calculating an automatic generation rate, which is the ratio of the sum of the number of component development lines and the number of library original text development lines to the number of output source text lines, and outputting the calculation result to a display device; An automatic measurement method for program automatic generation rate data.
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 true JPH01298436A (en) 1989-12-01
JPH083789B2 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)

Citations (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

Patent Citations (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

Also Published As

Publication number Publication date
JPH083789B2 (en) 1996-01-17

Similar Documents

Publication Publication Date Title
US8209670B2 (en) Program conversion program, program conversion apparatus and program conversion method
US20020049929A1 (en) Humanity interface development system of testing program of circuit board
JPH01298436A (en) Automatic measuring system for program automatic preparing ratio data
JP2760682B2 (en) Hardware design support system
JPH10105444A (en) Operation manual original form preparation system
JP2007018334A (en) Support system for software development
JP3657097B2 (en) Test program generation system
JPH09101880A (en) Program analyzer
JPH0752387B2 (en) Software development support device
JPH04143830A (en) Development supporting system for software
JPH06250876A (en) Interactive debugging supporting system
JP2990701B2 (en) File editing method
JPH0895787A (en) Parallel support task image display system
JP2004102742A (en) Program test debugging system
JPS63226730A (en) Automatic program forming method
JPH06348541A (en) Program test system
JP2000172495A (en) Device and method for outputting data setting reference place
JPS6142036A (en) Converting method of source program
JPH0635752A (en) Analysis program generation system
JPH02272668A (en) Transaction execution time sequence diagram edition system
JPS60178535A (en) Execution definition type command system for processing
JP2019096131A (en) Program relation analyzer
JPH05303490A (en) System for measuring skeleton comprehension
JPH04229343A (en) Memory contents display system in interactive debugger
JP2001331312A (en) System for acquiring related information among plural programs

Legal Events

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