JPH0773026A - Automatic generation system for label name - Google Patents

Automatic generation system for label name

Info

Publication number
JPH0773026A
JPH0773026A JP5156475A JP15647593A JPH0773026A JP H0773026 A JPH0773026 A JP H0773026A JP 5156475 A JP5156475 A JP 5156475A JP 15647593 A JP15647593 A JP 15647593A JP H0773026 A JPH0773026 A JP H0773026A
Authority
JP
Japan
Prior art keywords
label name
parts
program
variable
component
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.)
Withdrawn
Application number
JP5156475A
Other languages
Japanese (ja)
Inventor
Kunihisa Yanagiuchi
邦久 柳内
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP5156475A priority Critical patent/JPH0773026A/en
Publication of JPH0773026A publication Critical patent/JPH0773026A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To enable a program generator to freely cite parts without paying his attention to labels and to enable a parts generator to easily generate parts including label description. CONSTITUTION:A temporary label name retrieval means 2 which retrieves a temporary label name from parts 1 including the temporary label name consisting of a fixed part and a variable to discriminate the classification of the variable, a parts information setting means 6 which sets the frequency in use to a total parts use information table 4 and a parts-classified use information table 5 at each time of detection of a parts call statement in a program, a variable value return means 3 which extracts use frequency information from the total parts use information table 4 or the parts-classified use information table 5 correspondingly to the parts name from the temporary label retrieval means 2 and information of the classification of the variable, and a label name generating means 7 which reflects use frequency information from the variable value return means 3 on the variable in the temporary label name to generate a label name are provided, and an unequivocal label name is automatically generated and is expanded in the program even if the same parts are cited plural times in the same program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はラベル名自動生成方式に
関し、特に部品を使用してプログラムを作成する際に、
記述中にラベル名を用いている部品を複数回引用したと
き、プログラム中でそれぞれ一意となるようなラベル名
を作成して組み込むラベル名自動生成方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic label name generation system, and particularly when a program is created using parts.
The present invention relates to a label name automatic generation method in which a label name that is unique in a program is created and incorporated when a component using a label name in a description is quoted multiple times.

【0002】[0002]

【従来の技術】従来から、一定の処理手続きを定義して
いる処理記述の集まりをソフトウェア部品(以下単に部
品という)としてあらかじめ用意し、これらの部品を引
用してプログラムを作成する手法は、プログラムの作成
を容易にするため広く用いられている。この場合、プロ
グラム言語の制約上から同一プログラム中では同一のラ
ベル名(分岐等を容易にするため特定の処理記述に付与
する識別名)を重複しては使用できないこと、並びに同
一プログラム内で同じ部品を複数回引用する可能性が大
きいことを考慮して、部品内ではラベル名を用いた記述
を行わないか、又は部品展開先のプログラム上に呼び出
し文の引き数として記述された編集情報に基づいて一意
なラベル名を生成するように、部品内部の記述を工夫す
る手法が一般的であった。
2. Description of the Related Art Conventionally, a method of preparing a set of processing descriptions defining a certain processing procedure in advance as software parts (hereinafter simply called parts) and creating a program by quoting these parts is a program. Is widely used to facilitate the creation of. In this case, the same label name (identification name given to a specific process description for facilitating branching, etc.) cannot be used in duplicate in the same program due to the restrictions of the programming language, and the same in the same program. Considering that there is a high possibility that a part will be quoted multiple times, the description using the label name is not performed in the part, or the edit information written as an argument of the call statement is written in the program of the part expansion destination. A general method is to devise the description inside the component so that a unique label name is generated based on it.

【0003】[0003]

【発明が解決しようとする課題】上述した従来の部品の
作成および利用方法には、下記の問題点がある。
The above-described conventional method of making and using the parts has the following problems.

【0004】第一に、部品の記述中にラベル名を用いな
い場合は、任意の場所へ容易に分岐することができない
ため、部品を作成する際にプログラム言語の自由な使用
が制限され、同じ処理記述を同一部品内の複数箇所に記
述するため大規模で複雑なものとなる。これを避けるた
めに、部品自身を小規模の処理単位に分割すれば、分割
した部品を多数引用する必要があり不便となるほか、部
品が大量に作成されると部品間の関連性などの面で誤り
が発生する割合も高くなる。
First, if the label name is not used during the description of the part, it is not possible to easily branch to an arbitrary place, so that the free use of the programming language is restricted when creating the part, and the same. Since the process description is described in multiple places in the same part, it becomes large-scale and complicated. To avoid this, if the parts themselves are divided into small-scale processing units, it is inconvenient because it is necessary to quote a large number of the divided parts. In addition, if a large number of parts are created, the relationship between the parts and other aspects will increase. The rate of making mistakes also increases.

【0005】第二に、外部から編集情報を与えて一意な
ラベル名を生成する場合には、プログラム中に展開する
ための本来の処理記述に加え、ラベル名生成に関し、外
部から与えられる編集情報を受け取る処理および受け取
った編集情報から実際のラベル名を生成する処理を部品
内に記述する必要がある。このため、部品を作成する際
にある程度の工夫が必要となり、部品作成者の重荷とな
ってしまう。又、外部から与える編集情報も部品ごとに
異なるため、部品を利用するプログラム作成者自身が編
集情報の管理を行いラベル名の重複を避ける必要があ
る。
Secondly, when editing information is given from the outside to generate a unique label name, in addition to the original process description for developing in the program, the editing information given from the outside with respect to the label name generation is added. It is necessary to describe in the part the process of receiving the label and the process of generating the actual label name from the received edit information. Therefore, a certain amount of ingenuity is required when creating a component, which is a burden on the component creator. Further, since the editing information given from the outside is different for each part, it is necessary for the program creator who uses the part to manage the editing information and avoid duplication of label names.

【0006】本発明の目的は、プログラム作成者はラベ
ルを意識することなく部品名のみで自由に部品の引用が
でき、部品作成者は記述中にラベルを用いた部品を容易
に作成可能なレベル名自動生成方式を提供することにあ
る。
An object of the present invention is that a program creator can freely quote a part only by the part name without being aware of the label, and a part creator can easily create a part using a label during description. It is to provide an automatic name generation method.

【0007】[0007]

【課題を解決するための手段】本発明のラベル名自動生
成方式は、処理手続きを定義している処理記述の集団か
ら成るあらかじめ用意されている部品を引用してプログ
ラムを作成するプログラム開発支援システムにおいて、
記述の中に固定部と変数とから成る仮ラベル名を含む部
品から前記仮ラベル名を検索し前記変数の種別を判別す
る仮ラベル名検索手段と、同一プログラム中における全
部品通算の使用回数情報を保存する通算部品使用情報テ
ーブルと、同一プログラム中における部品ごとの使用回
数情報を保存する部品別使用情報テーブルと、プログラ
ム中の部品呼び出し文を検出して前記通算部品使用情報
テーブル及び部品別使用情報テーブルにそれぞれ使用回
数情報を設定する部品情報設定手段と、前記仮ラベル名
検索手段からの部品名および変数種別の情報に対応して
前記通算部品使用情報テーブル又は部品別使用情報テー
ブルから対応する使用回数情報を抽出する変数値返却手
段と、前記仮ラベル名検索手段からの前記固定部の情報
と前記変数値返却手段からの使用回数情報とを組み合わ
せてプログラム中で一意なラベル名を生成するラベル名
生成手段とを備えて構成されている。
According to the automatic label name generation method of the present invention, a program development support system for creating a program by quoting a prepared part consisting of a group of process descriptions defining process procedures. At
Temporary label name search means for determining the type of the variable by searching the temporary label name from the part including the temporary label name consisting of the fixed part and the variable in the description, and the total number of times of use of all parts in the same program To store the total component usage information table, the usage information table for each component that stores the usage count information for each component in the same program, and the total component usage information table and usage by component by detecting the component call statement in the program Corresponding from the total component use information table or the component-specific use information table corresponding to the component name and variable type information from the temporary label name search means, and component information setting means for setting the number-of-uses information in the information table, respectively. Variable value returning means for extracting the number-of-uses information, information on the fixed part from the temporary label name searching means, and the variable value returning means It is constituted by a label generating means for generating a unique label name by combining the usage count information in the program from the stage.

【0008】[0008]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の一実施例の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【0010】本実施例のラベル名自動生成方式は、図1
に示すように、固定部と変数とから成る仮ラベル名の記
述を内部に含みプログラムから引用されてプログラム中
に記述が展開される部品1と、部品1から仮ラベル名の
記述を検索・抽出して仮ラベル名の構成要素を解析し変
数の種別を判別する仮ラベル名検索手段2と、同一プロ
グラム中における全部品通算の使用回数情報を保存する
通算部品使用情報テーブル4と、同一プログラム中にお
ける部品ごとの使用回数情報を保存する部品別使用情報
テーブル5と、プログラム中の部品呼び出し文を検出す
る度に通算部品使用情報テーブル4及び部品別使用情報
テーブル5にそれぞれ使用回数情報を設定し更新する部
品情報設定手段6と、仮ラベル名検索手段2からの部品
名および変数種別の情報に対応して通算部品使用情報テ
ーブル4又は部品別使用情報テーブル5から対応する使
用回数情報を抽出する変数値返却手段3と、仮ラベル名
検索手段2からの仮ラベル名中の変数に変数値返却手段
3からの使用回数情報を反映させてプログラム中で一意
なラベル名を生成するラベル名生成手段7とを備えて構
成されている。
The automatic label name generation system of this embodiment is shown in FIG.
As shown in FIG. 2, a part 1 in which a description of a temporary label name including a fixed part and a variable is included and the description is expanded in the program by being quoted from the program, and a description of the temporary label name is extracted from the part 1. Then, the provisional label name search means 2 for analyzing the components of the provisional label name to determine the type of the variable, the total component use information table 4 for storing the use count information of all the components in the same program, and the same program The usage information table 5 for each part that stores the usage frequency information for each part in the component, and the usage frequency information is set in the total component usage information table 4 and the usage information table by component 5 each time a component call statement in the program is detected. The component information setting means 6 to be updated, and the total component usage information table 4 or the components corresponding to the component name and variable type information from the temporary label name retrieval means 2. Variable value returning means 3 for extracting the corresponding usage count information from the usage information table 5, and a program in which the usage count information from the variable value returning means 3 is reflected in the variable in the temporary label name from the temporary label name search means 2. And a label name generating means 7 for generating a unique label name.

【0011】図2は、本実施例の処理の流れを示すフロ
ーチャートである。以下、図2を参照しながら図1の各
部の動作を説明する。
FIG. 2 is a flow chart showing the flow of processing of this embodiment. The operation of each unit in FIG. 1 will be described below with reference to FIG.

【0012】まず、利用者は、固定文字列および変数か
ら成る仮ラベル名が部品中で一意な文字列となるように
作成された部品1を、部品ライブラリ等から読み込んで
用意しておく(ステップ21)。
First, the user reads and prepares the component 1 prepared so that the temporary label name consisting of a fixed character string and a variable becomes a unique character string in the component from a component library or the like (step 21).

【0013】次に、部品を引用して作成されたプログラ
ム中に部品の記述を展開する過程において、プログラム
中に記述されている部品の呼び出し文を認識すると(ス
テップ22)、部品情報設定手段6は、その都度そのプ
ログラム中での全部品を通算した部品使用回数を通算部
品使用情報テーブル4に設定し更新していく(ステップ
23)。同時に、呼び出し文に示されている引用する部
品の部品名を基に、各部品ごとの使用回数を部品別使用
情報テーブル5に設定し更新していく(ステップ2
4)。
Next, in the process of expanding the description of the component in the program created by quoting the component, when the call statement of the component described in the program is recognized (step 22), the component information setting means 6 Sets the total number of times of use of all the parts in the program to the total parts use information table 4 and updates them each time (step 23). At the same time, the number of times of use for each part is set in the part-by-part usage information table 5 and updated based on the part name of the part to be quoted shown in the call statement (step 2).
4).

【0014】次に、引用を指示された部品1を読み込み
(ステップ25)、仮ラベル名検索手段2が部品中に記
述されている仮ラベル名を検索して抽出し、仮ラベル名
の構成要素の解析を行い、変数の種別情報を変数値返却
手段3へ、固定文字列の記述イメージと変数の固定文字
列への組み込み位置情報とをラベル名生成手段7へ渡す
(ステップ26)。ここで、仮ラベル名に固定文字列と
共に記述できる変数としては、同一プログラム中での部
品の通算使用回数値あるいは同一プログラム中での該当
部品の使用回数値のいずれかである。
Next, the part 1 for which the quotation is instructed is read (step 25), and the temporary label name search means 2 searches for and extracts the temporary label name described in the part, and the components of the temporary label name. And the variable type return information to the variable value return means 3, and the description image of the fixed character string and position information of the variable embedded in the fixed character string to the label name generation means 7 (step 26). Here, the variable that can be described in the temporary label name together with the fixed character string is either the total usage count value of the component in the same program or the usage count value of the relevant component in the same program.

【0015】次に、変数値返却手段3は、仮ラベル名検
索手段2から渡された変数の種別情報に従って通算部品
使用情報テーブル4又は部品別使用情報テーブル5を参
照して、変数に対する変数値をラベル名生成手段7へ返
却する(ステップ27)。
Next, the variable value returning means 3 refers to the total component usage information table 4 or the component-specific usage information table 5 according to the variable type information passed from the temporary label name searching means 2, and refers to the variable value for the variable. Is returned to the label name generating means 7 (step 27).

【0016】最後に、ラベル名生成手段7は、仮ラベル
名検索手段2で解析された固定文字列の記述イメージや
変数の固定文字列への組み込み情報、及び、変数値返却
手段3で求められた変数値を基にして一意なラベル名を
生成し(ステップ28)、部品中の他の記述と共にプロ
グラム中へ展開する(ステップ29)。
Finally, the label name generating means 7 is obtained by the variable value returning means 3 and the description image of the fixed character string analyzed by the temporary label name searching means 2 and the embedded information in the fixed character string. A unique label name is generated based on the variable value (step 28) and is expanded in the program together with other descriptions in the part (step 29).

【0017】図3は、部品中の仮ラベル名がプログラム
に引用されて一意なラベル名を生成する具体例を表して
いる。部品の中でラベルを用いた記述を行う場合、参照
番号31で示すように、固定文字列“PAT1―LBL
―”と通算部品使用回数を表す変数“&SYSGCN
T”とから構成される仮ラベル名を部品中で一意な文字
列として定義する。
FIG. 3 shows a specific example in which a temporary label name in a part is quoted by a program to generate a unique label name. When a label is used in a part, a fixed character string “PAT1-LBL” is used as indicated by reference numeral 31.
-"And a variable"& SYSGCCN "that indicates the total number of times the parts have been used
A temporary label name composed of T "is defined as a unique character string in the part.

【0018】この部品を本発明のラベル名自動生成方式
によりプログラム中に展開すると、固定文字列はそのま
ま展開されるが、変数には当該プログラムにおける部品
の通算使用回数が反映され、1回目の部品引用なら
“1”という値を、2回目の部品引用なら“2”という
値を変数“&SYSGCNT”の値として一意なラベル
名を生成する。
When this part is expanded in the program by the automatic label name generation method of the present invention, the fixed character string is expanded as it is, but the variable reflects the total number of uses of the part in the program, and the first part A unique label name is generated using the value "1" for quotation and the value "2" for the second part quotation as the value of the variable "&SYSCNTNT".

【0019】すなわち、この部品の1回目の引用がプロ
グラム中での最初の部品引用なら、展開されるラベル名
は参照番号32で示すように“PAT1―LBL―
1.”となるが、この部品の2回目の引用が中間に他の
部品の引用がありプログラムとして3回目であれば、参
照番号33で示すように“PAT1―LBL―3.”と
なる。
That is, if the first citation of this part is the first part citation in the program, the expanded label name is "PAT1-LBL-" as shown by reference numeral 32.
1. However, if the second reference to this part is the third reference as a program with reference to another part in the middle, as indicated by reference numeral 33, “PAT1-LBL-3. "It becomes.

【0020】なお、仮ラベル名が固定文字列と部品別使
用回数を表す変数とで構成されていた場合は、図3の例
の2回目の引用の際に固定文字列の後に付加される数値
は、“3”でなく“2”となる。変数としてどちらを使
用するかは、部品作成者の選択によるが、通算部品使用
回数を表す変数を使用しておけば、複数の部品間で同一
固定文字列の仮ラベル名が使用されていた場合でも、一
意なラベル名として展開されるので支障が生じない利点
がある。
If the temporary label name is composed of a fixed character string and a variable indicating the number of times of use for each part, the numerical value added after the fixed character string in the second citation in the example of FIG. Becomes "2" instead of "3". Which one is used as a variable depends on the selection of the component creator, but if a variable that represents the total number of times a component is used is used, the temporary label name of the same fixed character string is used between multiple components. However, since it is expanded as a unique label name, there is an advantage that no trouble occurs.

【0021】[0021]

【発明の効果】以上説明したように、本発明のラベル名
自動生成方式は、同一プログラム中に同じ部品を複数回
展開する場合においても、部品を引用するプログラム作
成者はラベル名に関して考慮する必要がなく、部品名を
指定して引用すれば、それぞれ同一プログラムに対して
一意なラベル名が自動的に生成され展開されるので、部
品引用を自由に行える効果がある。
As described above, according to the automatic label name generation method of the present invention, the program creator who cites a part needs to consider the label name even when the same part is developed a plurality of times in the same program. However, if a part name is specified and quoted, a unique label name is automatically generated and developed for the same program, so that there is an effect that parts can be freely quoted.

【0022】又、部品中にラベルを用いた記述を行う際
には、変数を付加した仮ラベル名を使用するだけで通常
と同一形式で記述できるため、記述による制御の誤りが
発生する可能性も少なく、保守性の向上が期待できると
いう効果がある。
Further, when a description is made by using a label in a part, the description can be made in the same format as usual only by using a temporary label name to which a variable is added, so that a control error may occur due to the description. There is little, and there is an effect that improvement of maintainability can be expected.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1の実施例の処理の流れを示すフローチャー
トである。
FIG. 2 is a flowchart showing a processing flow of the embodiment of FIG.

【図3】本発明により部品中の仮ラベル名が展開される
具体例を示す説明図である。
FIG. 3 is an explanatory diagram showing a specific example in which a temporary label name in a component is expanded according to the present invention.

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

1 部品 2 仮ラベル名検索手段 3 変数値返却手段 4 通算部品使用情報テーブル 5 部品別使用情報テーブル 6 部品情報設定手段 7 ラベル名生成手段 1 Parts 2 Temporary Label Name Search Means 3 Variable Value Returning Means 4 Total Parts Usage Information Table 5 Parts-Specific Usage Information Table 6 Parts Information Setting Means 7 Label Name Generating Means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 処理手続きを定義している処理記述の集
団から成るあらかじめ用意されている部品を引用してプ
ログラムを作成するプログラム開発支援システムにおい
て、記述の中に固定部と変数とから成る仮ラベル名を含
む部品から前記仮ラベル名を検索し前記変数の種別を判
別する仮ラベル名検索手段と、同一プログラム中におけ
る全部品通算の使用回数情報を保存する通算部品使用情
報テーブルと、同一プログラム中における部品ごとの使
用回数情報を保存する部品別使用情報テーブルと、プロ
グラム中の部品呼び出し文を検出して前記通算部品使用
情報テーブル及び部品別使用情報テーブルにそれぞれ使
用回数情報を設定する部品情報設定手段と、前記仮ラベ
ル名検索手段からの部品名および変数種別の情報に対応
して前記通算部品使用情報テーブル又は部品別使用情報
テーブルから対応する使用回数情報を抽出する変数値返
却手段と、前記仮ラベル名検索手段からの前記固定部の
情報と前記変数値返却手段からの使用回数情報とを組み
合わせてプログラム中で一意なラベル名を生成するラベ
ル名生成手段とを備えたことを特徴とするラベル名自動
生成方式。
1. In a program development support system for creating a program by quoting a prepared component consisting of a group of processing descriptions defining a processing procedure, a temporary part consisting of a fixed part and a variable in the description. A temporary label name searching means for searching the temporary label name from the part including the label name to determine the type of the variable, a total component usage information table for storing the usage count information of all the components in the same program, and the same program -By-part usage information table that stores usage count information for each part in the component, and component information that detects the component call statement in the program and sets usage count information in the total component usage information table and the component-specific usage information table, respectively Corresponding to the part name and variable type information from the setting means and the temporary label name searching means, the total part use A variable value return means for extracting the corresponding usage count information from the usage information table or the part-by-part usage information table, the fixed part information from the temporary label name search means, and the usage count information from the variable value return means. An automatic label name generation method comprising: a label name generation unit that generates a unique label name in a program in combination.
JP5156475A 1993-06-28 1993-06-28 Automatic generation system for label name Withdrawn JPH0773026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5156475A JPH0773026A (en) 1993-06-28 1993-06-28 Automatic generation system for label name

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5156475A JPH0773026A (en) 1993-06-28 1993-06-28 Automatic generation system for label name

Publications (1)

Publication Number Publication Date
JPH0773026A true JPH0773026A (en) 1995-03-17

Family

ID=15628571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5156475A Withdrawn JPH0773026A (en) 1993-06-28 1993-06-28 Automatic generation system for label name

Country Status (1)

Country Link
JP (1) JPH0773026A (en)

Similar Documents

Publication Publication Date Title
JP4924976B2 (en) Software development support system
US7386793B2 (en) Apparatus, method and program for supporting a review
JPH09160765A (en) Production of software parts
JPH0773026A (en) Automatic generation system for label name
JPH0528088A (en) Method for automatically generating hardware constitution information
JPH11338686A (en) Program development support device, its method and medium for recording program development support program
JPH06348477A (en) Software developing system
JP3417318B2 (en) Document creation management method and apparatus, and machine-readable recording medium recording program
JPH056291A (en) Method for preparing and managing test resources
JP2010157165A (en) Information processor, information processing method, and program
JP3843957B2 (en) Software development processing related drawing generation system, apparatus, method and program
JP5585145B2 (en) Correction location discrimination device, correction location discrimination program, and correction location discrimination method
JPH0744359A (en) Memo document preparing method and memo document selecting method in case tool
JPH05298082A (en) Method and device for editing program
JPS6027941A (en) Identifier generation system
JP2000089945A (en) Integrated software development support system
JPH0689170A (en) Source program analysis method for case system
JPH03209542A (en) System and device for automatic production of interlocking test data on communication control program
JPH06119153A (en) Retrieving/assembling device for software component
JPH02148136A (en) System for automatically determining program parts
JPH05143303A (en) Fetching system for program information
JPH04205142A (en) Existent source code reutilization editor
JPH07302194A (en) Managing method for version of module group
JPH0490026A (en) Processing flow chart editing device
JPH04199337A (en) Information collection optimization output processing system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000905