JPH03240829A - Macro-evolving system for diagram program editor - Google Patents

Macro-evolving system for diagram program editor

Info

Publication number
JPH03240829A
JPH03240829A JP3891990A JP3891990A JPH03240829A JP H03240829 A JPH03240829 A JP H03240829A JP 3891990 A JP3891990 A JP 3891990A JP 3891990 A JP3891990 A JP 3891990A JP H03240829 A JPH03240829 A JP H03240829A
Authority
JP
Japan
Prior art keywords
macro
section
description
unit
holding unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3891990A
Other languages
Japanese (ja)
Inventor
Isao Takano
高野 功
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 JP3891990A priority Critical patent/JPH03240829A/en
Publication of JPH03240829A publication Critical patent/JPH03240829A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To simultaneously produce both the specification information and the detailed information by applying a structure formation programming technique, calling out a macro-original sentence which is previously produced in the stepped production of a program, and obtaining the detailed information and its corresponding specification information. CONSTITUTION:A called sentence analyzing part 103 is provided together with a real parameter holding part 104, a macro-reading part 105, a macro-holding part 106, a distributing part 107, a parameter solving part 111, a processing evolving part 113, etc. Furthermore a structure formation programming technique is applied. A diagram program editor backs up the stepped development of a program including a rough design, i.e., the production of the specification information through a detailed information, i.e., the production of the detailed information. Then the program editor designates a macro-calling sentence at production of the specification information. Thus, it is possible to evolve both the specification information and the detailed information from a macro-original sentence in accordance with the contents required by a user.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、図式プログラムエディタにおけるマクロ展開
方式に関し、プログラム開発支援装置における構造化プ
ログラミング技法を取り入れたプログラム構造図を作成
してソースプログラムを生成する図式プログラムエディ
タにより、プログラムの仕様情報を作成したのちに詳細
情報を作成していく段階的なプログラム作成において、
予め作成されているマクロ原文を呼び出すことにより目
的とする詳細情報およびその詳細情報に対応した仕様情
報を得ることを可能とする図式プログラムエディタにお
けるマクロ展開方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a macro expansion method in a graphical program editor, and relates to a method for generating a source program by creating a program structure diagram incorporating structured programming techniques in a program development support device. In step-by-step program creation, where detailed information is created after creating program specification information using the graphical program editor,
The present invention relates to a macro expansion method in a graphical program editor that makes it possible to obtain target detailed information and specification information corresponding to the detailed information by calling a macro original text created in advance.

〔従来の技術〕[Conventional technology]

従来の流れ図に対して指摘された欠点を解決するために
プログラム構造図が各種考案され高い評価を得ている。
Various program structure diagrams have been devised to solve the shortcomings of conventional flowcharts and have received high praise.

またプログラム構造図を主体に処理の概要を仕様情報と
して作成したのち、次にその詳細化を行う段階的なプロ
グラム作成を支援する図式プログラムエディタをプログ
ラム開発支援装置として用いてプログラムを開発するこ
とは有効である。
In addition, it is not possible to develop a program using a diagrammatic program editor as a program development support device, which supports step-by-step program creation by creating a process outline as specification information based on a program structure diagram and then detailing it. It is valid.

しかし、プログラムの開発は予め機能単位に作成された
汎用的なマクロ原文を、開発者が必要な内容に特化して
プログラムに組み込む手法が広く取り入れられ、生産性
および品質の向上が図られている。図式プログラムエデ
ィタにおいてもこのマクロ原文を利用するプログラム開
発を考慮する必要かあるか、従来この種の図式プログラ
ムエディタでは仕様情報を先に作成したのちにそれを満
足する詳細情報か作成されているマクロ原文を利用する
方式であった。
However, in program development, a method has been widely adopted in which general-purpose macro text created in advance for each function is incorporated into the program by the developer, specializing in the content required, in order to improve productivity and quality. . Is it necessary to consider program development that uses this macro original text in a graphical program editor as well? Conventionally, in this type of graphical program editor, the specification information is first created, and then the detailed information that satisfies it is created. This method used the original text.

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

上述した従来の図式プログラムエディタにおけるマクロ
展開方式は、詳細情報を作成するときのみマクロ原文を
利用するので、その詳細情報の機能を表す仕様情報は別
に作成しなければならないという問題点がある。さらに
、マクロ原文を特化するために与えるパラメータに変更
が生じた場合は、再度対応する仕様情報を修正する必要
がある。
The above-described macro expansion method in the conventional graphical program editor uses the macro original text only when creating detailed information, so there is a problem in that specification information representing the function of the detailed information must be created separately. Furthermore, if the parameters given to specialize the macro text are changed, the corresponding specification information needs to be revised again.

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

本発明の図式プログラムエディタにおけるマクロ展開方
式は、 図式プログラムエディタの編集画面や利用者からのキー
ボード入力等を受け付ける入出力装置と、前記入出力装
置より入力されたマクロの展開指示(以下、「マクロ呼
び出し文」と称す〉を入力する入力部と、 入力したマクロ呼び出し分からマクロ名と、マクロの内
容(以下、[マクロ原文Jと称す)を特化するために与
えられたパラメータ(以下、「実パラメータ」と称す)
をそれぞれ抽出し出力する呼び出し文解析部と、 前記呼び出し文解析部より出力される実パラメータを保
持する実パラメータ保持部と、予め作成されているマク
ロ原文をメモリや外部記憶装置等に保持しておくマクロ
保持部と、前記呼び出し文解析部より出力されるマクロ
名を受けて、前記マクロ保持部より対応するマクロ原文
を読み込むマクロ読込部と、 前記読み込んだマクロ原文を仮パラメータ記述部、仕様
記述部および処理記述部とに分けてそれぞれ出力する振
分部と、 前記振分部より出力される仮パラメータ記述部の内容を
保持する仮パラメータ保持部と、前記仕様記述部の内容
を保持する仕様記述保持部と、 前記処理記述部の内容を保持する処理記述保持部と、 前記仮パラメータ保持部に保持されている仮パラメータ
と、前記実パラメータ保持部に保持されている実パラメ
ータを対応付けて対応表を作成し出力するパラメータ解
決部と、 前記パラメータ解決部より出力される仮パラメータと実
パラメータとの対応表を保持する対応表保持部と、 前記処理記述保持部に保持されている処理記述を、前記
対応表保持部に保持されている対応表を基に展開し出力
するとともに、当該展開した処理記述を一意に識別する
ための名標(以下、「識別ID、と称す)を抽出し出力
する処理展開部と、前記抽出した識別IDを保持する生
成識別ID保持部と、 前記識別ID保持部に保持されている識別IDと同じ識
別IDが付加されている仕様記述を前記仕様記述保持部
より選択し出力する仕様展開部と、前記処理展開部およ
び仕様展開部より出力されるそれぞれの内容を前記入出
力装置に表示する出力部とを備えて構成される。
The macro expansion method in the graphical program editor of the present invention consists of an input/output device that accepts the editing screen of the graphical program editor, keyboard input, etc. from the user, and a macro expansion instruction (hereinafter referred to as "macro") input from the input/output device. an input section for inputting a macro name from the input macro call statement, and parameters (hereinafter referred to as "execution text J") given to specialize the contents of the macro (hereinafter referred to as "macro original text J"). (referred to as "parameter")
a call statement analysis unit that extracts and outputs each of the above, an actual parameter holding unit that holds the actual parameters output from the call statement analysis unit, and a macro original text created in advance that is held in memory, an external storage device, etc. a macro holding unit that receives the macro name output from the call statement analysis unit and reads the corresponding macro text from the macro holding unit; a macro reading unit that reads the macro text that is read from the macro holding unit; and a formal parameter description unit that transfers the read macro text to a specification description. a temporary parameter holding section that holds the contents of the formal parameter description section output from the distribution section; and a specification section that holds the contents of the specification description section. a description holding section; a processing description holding section that holds the contents of the processing description section; a formal parameter held in the formal parameter holding section and an actual parameter held in the actual parameter holding section; a parameter resolution unit that creates and outputs a correspondence table; a correspondence table holding unit that holds a correspondence table between formal parameters and actual parameters output from the parameter resolution unit; and a processing description held in the processing description holding unit. is expanded and output based on the correspondence table held in the correspondence table holding unit, and a name (hereinafter referred to as "identification ID") for uniquely identifying the expanded processing description is extracted. a processing expansion unit that outputs, a generated identification ID holding unit that holds the extracted identification ID, and a specification description holding unit that holds the specification description to which the same identification ID as the identification ID held in the identification ID holding unit is added. and an output section that displays the respective contents outputted from the processing development section and the specification development section on the input/output device.

〔実施例〕〔Example〕

以下、本発明を図面を参照して説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例に係る図式プログラムエデ
ィタにおけるマクロ展開方式の全体構成を示すブロック
図である。この図式プログラムエディタにおけるマクロ
展開方式は入出力装置101と、入力部102と、呼び
出し文解析部103と、実パラメータ保持部104と、
マクロ読込部105と、マクロ保持部106と、振分部
107と、仮パラメータ保持部108と、仕様記述保持
部109と、処理記述保持部110と、パラメータ解決
部111と、対応表保持部112と、処理展開部113
と、出力部114と、生成識別ID保持部115と、仕
様展開部116とを基本的に備えて構成される。
FIG. 1 is a block diagram showing the overall configuration of a macro expansion method in a graphical program editor according to an embodiment of the present invention. The macro expansion method in this graphical program editor includes an input/output device 101, an input section 102, a call statement analysis section 103, an actual parameter holding section 104,
Macro reading unit 105, macro holding unit 106, distribution unit 107, temporary parameter holding unit 108, specification description holding unit 109, processing description holding unit 110, parameter solving unit 111, correspondence table holding unit 112 and processing development unit 113
, an output section 114 , a generation identification ID holding section 115 , and a specification development section 116 .

入出力装置101は、図式プログラムエディタと図式プ
ログラムエディタの利用者とのインタフェースを司とる
ワークステーションなどの装置である。入力部102は
、入出力装置101より入力されたマクロの展開指示(
以下、「マクロ呼び出し文」と称す)を受け取り、呼び
出し文解析部103へ出力する。呼び出し文解析部10
3では、マクロ呼び出し文をマクロ名と、マクロの内容
(以下、「マクロ原文」と称す)とを特化するために与
えられたパラメータ(以下、「実パラメータ」と称す)
を区分けして、実パラメータを実パラメータ保持部10
4に保持し、マクロ名をマクロ読込部105へそれぞれ
出力する。
The input/output device 101 is a device such as a workstation that controls the interface between the graphical program editor and the user of the graphical program editor. The input unit 102 receives macro expansion instructions (
(hereinafter referred to as a "macro call statement") and outputs it to the call statement analysis unit 103. Calling statement analysis unit 10
3, parameters (hereinafter referred to as ``actual parameters'') are given to specialize the macro call statement with the macro name and the contents of the macro (hereinafter referred to as ``macro original text'').
The actual parameters are stored in the actual parameter holding unit 10.
4 and output the macro names to the macro reading unit 105, respectively.

マクロ読込部105では、予め作成されているマクロ原
文が格納されているマクロ保持部106より、呼び出し
文解析部103から受け取ったマクロ名と同じマクロ名
を持つマクロ原文を読み込み、振分部107へ出力する
。振分部107では、受け取ったマクロ原文の中から、
マクロ原文を特化するために用意されているデータ(以
下、「仮パラメータ」と称す)と、当該マクロ原文が実
装している機能の説明(以下、「仕様記述」と称す)と
、前記機能に対応した詳細処理(以下、「処理記述」と
称す)とをそれぞれ抽出し、対応する仮パラメータ保持
部108と、仕様記述保持部109と処理記述保持部1
10とにそれぞれ保持したのち、パラメータ解決部11
1へ制御を移す。パラメータ解析部111では、仮パラ
メータ保持部108に保持されている当該マクロの仮パ
ラメータに対して、利用者より与えられた前記実パラメ
ータ保持部104に保持されている実パラメータを対応
付け、仮パラメータと実パラメータの対応表を作成し、
対応表保持部112へ保持したのち処理展開部113へ
制御を移す。
The macro reading unit 105 reads a macro original text having the same macro name as the macro name received from the call statement analysis unit 103 from the macro holding unit 106 in which the macro original text created in advance is stored, and sends it to the distribution unit 107. Output. In the sorting unit 107, from among the received macro original texts,
Data prepared to specialize the macro text (hereinafter referred to as "formal parameters"), a description of the functions implemented by the macro text (hereinafter referred to as "specification description"), and the said functions. Detailed processing (hereinafter referred to as “processing description”) corresponding to
10 and 10, respectively, and then the parameter solving unit 11
Transfer control to 1. The parameter analysis unit 111 associates the formal parameters of the macro held in the temporary parameter holding unit 108 with the actual parameters held in the actual parameter holding unit 104 given by the user, and calculates the formal parameters. Create a correspondence table between
After being held in the correspondence table holding unit 112, control is transferred to the processing development unit 113.

処置展開部113では、前記処理記述保持部110に保
持されている処理記述を、前記対応表保持部112に保
持されている仮パラメータと実パラメータの対応表を基
に特化し、利用者が必要とする処理記述に展開したのち
展開した処理記述の各行に付加されている当該処理記述
の各行を一意に識別するための名標を抽出し、生成識別
ID保持部115に保持する。さらに、当該展開した処
理記述を出力部114へ出力する。処理記述の展開が全
て完了したのち、仕様展開部116へ制御を移す。仕様
展開部116では、前記生成識別ID保持部115に保
持されている展開した処理記述の識別IDと同じ識別I
Dが付加されている仕様記述を、前記仕様記述保持部1
09より選択する。そのうち、当該選択した仕様記述に
存在する仮パラメータを、前記対応表保持部112に保
持されている仮パラメータと実パラメータの対応表を基
に、実パラメータに置換することにより仕様記述の展開
を行う。さらに、当該展開した仕様記述を出力部114
へ出力す。
The treatment expansion unit 113 specializes the process description held in the process description holding unit 110 based on the correspondence table between formal parameters and actual parameters held in the correspondence table holding unit 112, and specifies the process description as required by the user. After expanding the process description into a process description, the name mark added to each line of the process description to uniquely identify each line of the process description is extracted and held in the generated identification ID holding unit 115. Furthermore, the expanded processing description is output to the output unit 114. After all processing description development is completed, control is transferred to the specification development section 116. The specification development unit 116 uses the same identification ID as the identification ID of the developed processing description held in the generation identification ID holding unit 115.
The specification description to which D is added is stored in the specification description holding unit 1.
Select from 09. Among them, the specification description is expanded by replacing the formal parameters existing in the selected specification description with actual parameters based on the correspondence table of formal parameters and actual parameters held in the correspondence table holding unit 112. . Furthermore, the expanded specification description is sent to the output unit 114.
Output to

出力部114では、処理展開部113より受け取った処
理記述か、前記入出力装置101に表示されている詳細
定義画面へ表示され、また前記仕様展開部116より受
け取った仕様記述は、前記入出力装置101に表示され
ている仕様定義画面へ表示する。
In the output unit 114, the processing description received from the processing development unit 113 is displayed on the detailed definition screen displayed on the input/output device 101, and the specification description received from the specification development unit 116 is displayed on the input/output device. Display on the specification definition screen displayed in 101.

第2図は本発明の一実施例に係る図式プログラムエディ
タにおけるマクロ展開方式の動作フロー図であり、さら
に第3図は本発明の一実施例に係る図式プログラムエデ
ィタにおけるマクロ展開方式を示す説明図である。
FIG. 2 is an operation flow diagram of a macro expansion method in a graphical program editor according to an embodiment of the present invention, and FIG. 3 is an explanatory diagram showing a macro expansion method in a graphical program editor according to an embodiment of the present invention. It is.

第1図の入出力装置101に図式プログラムエディタの
仕様を作成する仕様定義画面と、処理を作成する詳細定
義画面とが表示されている状態で、仕様定義画面上に第
3図の■に示すマクロ呼び出し文が入力されたとき、ま
ず当該マクロ呼び出し文を入力して(ステップ201)
、マクロ名と実パラメータをそれぞれ区分けして実パラ
メータをメモリ等に保持する(ステップ202〉。第3
図の場合はマクロ名が“PMOVE”に、実パラメータ
が′入カレコード゛出力しコード′“社員番号′、゛社
員名′、゛所属“・・・となる。
With the specification definition screen for creating specifications for the graphical program editor and the detailed definition screen for creating processing being displayed on the input/output device 101 in FIG. 1, the screen shown in ■ in FIG. 3 is displayed on the specification definition screen. When a macro call statement is input, first input the macro call statement (step 201).
, separate the macro name and actual parameter, and store the actual parameter in memory etc. (step 202). Third
In the case shown in the figure, the macro name is "PMOVE" and the actual parameters are output as 'input record' and codes as 'employee number', 'employee name', 'affiliation', and so on.

次に第2図を見るに、予め作成されているマクロ原文が
格納されているメモリや外部記憶装置等から当該マクロ
名と同じマクロ名を持つマクロ原文を読み込んで、ステ
ップ204へ制御を移す(ステップ203)。ステップ
204では、第3図の■に示すようなマクロ原文を順次
受け取り、仮パラメータ記述、仕様記述および処理記述
に振分けてそれぞれをステップ205、ステップ206
およびステップ207へ引き渡す。ステップ205では
、仮パラメータ記述より仮パラメータを抽出し仮パラメ
ータ保持部として用意されているメモリ等に保持する。
Next, referring to FIG. 2, a macro text with the same macro name as the macro name is read from a memory or an external storage device in which a previously created macro text is stored, and control is transferred to step 204 ( Step 203). In step 204, the macro original text as shown in ■ in FIG.
Then, the process is transferred to step 207. In step 205, formal parameters are extracted from the formal parameter description and held in a memory or the like prepared as a temporary parameter holding unit.

第3図の■のマクロ原文の場合は“P1゛〜“P7°が
仮パラメータとなる。ステップ206では、仕様記述を
仕様記述保持部として用意されているメモリ等に保持す
る。第3図の■のマクロ原文の場合は/5PECから/
PROCの手前までが仕様記述となる。ステップ207
では、処理記述を処理記述保持部として用意されている
メモリ等に保持する。第3図の■のマクロ原文の場合は
/PROCから最後までが処理記述となる。マクロ原文
の振分けが全て完了するまでステップ203からステッ
プ207までを繰り返し完了したならばステップ209
へ制御を移す(ステップ208)。
In the case of the macro original text (■) in FIG. 3, "P1" to "P7° are temporary parameters. In step 206, the specification description is held in a memory or the like prepared as a specification description holding unit. In the case of the macro original text marked ■ in Figure 3, start from /5PEC/
The part before PROC is the specification description. Step 207
Now, the processing description is held in a memory or the like prepared as a processing description holding unit. In the case of the macro original text indicated by ■ in FIG. 3, the processing description is from /PROC to the end. Step 209 is performed after steps 203 to 207 are repeated until all macro original texts have been distributed.
Control is transferred to (step 208).

ステップ209では、それぞれメモリ等に保持されてい
る仮パラメータと実パラメータとの対応付けを行い、第
3図の■に示すような仮パラメータと実パラメータとの
対応表を作成し、ステップ210へ制御を移す。第2図
ステップ210では、メモリ等に保持している処理記述
を受け取り、処理記述中に存在する仮パラメータを第3
図の■に示す対応表を基に実パラメータに置換し、次に
その値に従って処理記述を展開する。これにより、利用
者が必要とする処理記述が得られる(ステップ211)
In step 209, the formal parameters and actual parameters held in memory etc. are associated with each other, a correspondence table between the formal parameters and actual parameters as shown in ■ in FIG. 3 is created, and control is passed to step 210. move. In step 210 of FIG. 2, the processing description held in memory etc. is received, and the formal parameters existing in the processing description are transferred to the third
Replace the parameters with actual parameters based on the correspondence table shown in ■ in the figure, and then expand the processing description according to the values. As a result, the processing description required by the user is obtained (step 211).
.

次に、展開された処理記述に付加されている識別IDを
抽出し、メモリ等に保持しステップ213へ制御を移す
。これによりどの処理記述が展開されたかを判断するこ
とが可能となる。第3図の■に、抽出した識別IDの一
覧を示す(ステップ212)。第2図ステップ213で
は、当該展開された処理記述を図式プログラムエディタ
の詳細定義画面に表示する形式に変換して、ステップ2
14へ制御を移す。
Next, the identification ID added to the developed processing description is extracted, held in a memory, etc., and control is transferred to step 213. This makes it possible to determine which processing description has been developed. 3 shows a list of extracted identification IDs (step 212). In step 213 of FIG. 2, the expanded processing description is converted into a format to be displayed on the detailed definition screen of the graphical program editor, and step 213
Control is transferred to 14.

ステップ214では、受け取った処理記述を、図式プロ
グラムエディタの詳細定義画面へ表示する。処理記述の
展開が全て完了するまで、第2図のステップ209から
ステップ214までを繰り返し、完了したならばステッ
プ216へ制御を移す(ステップ215)、第3図の■
に展開された処理記述が表示されている詳細定義画面を
示す。
In step 214, the received processing description is displayed on the detailed definition screen of the graphical program editor. Steps 209 to 214 in FIG. 2 are repeated until the processing description is fully expanded, and once completed, control is transferred to step 216 (step 215), and step 2 in FIG. 3 is repeated.
The detailed definition screen is shown in which the expanded processing description is displayed.

ステップ216では、メモリ等に保持されている仕様記
述を受け取り当該仕様記述に付加されている識別IDを
抽出し、ステップ217へ制御を移す。ステップ217
では、抽出した識別IDが第3図の■に示す識別ID−
覧中に存在するか否かを判断し、存在するときはステッ
プ218へ、存在しないときはステップ220へそれぞ
れ制御を移す。
In step 216, the specification description held in a memory or the like is received, and the identification ID added to the specification description is extracted, and control is transferred to step 217. Step 217
Then, the extracted identification ID is the identification ID- shown in ■ in Figure 3.
It is determined whether or not the object exists in the view, and if the object exists, the control moves to step 218, and if it does not exist, the control moves to step 220.

これにより展開された処理記述に関係する仕様記述が選
択されることになる。ステップ218では、当該仕様記
述中に存在する仮パラメータを第3図の■に示す対応表
を基に実パラメータに置換し、ステップ219へ制御を
移す。
As a result, specification descriptions related to the expanded processing description are selected. In step 218, the temporary parameters existing in the specification description are replaced with actual parameters based on the correspondence table shown in (■) in FIG. 3, and control is transferred to step 219.

第2図のステップ219では、図式プログラムエディタ
の仕様定義画面へ展開された仕様記述を表示する。ステ
ップ220では、仕様記述の展開が全て完了するまでス
テップ216からステップ219までを繰り返す、これ
により第3図の■に示す仕様定義画面が得られる。
In step 219 of FIG. 2, the expanded specification description is displayed on the specification definition screen of the graphical program editor. In step 220, steps 216 to 219 are repeated until the specification description is completely expanded, thereby obtaining the specification definition screen shown in (■) in FIG. 3.

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

以上説明したように本発明は、構造化プログラミング技
法を取り入れて概要設計(仕様情報の作成)から詳細設
計(詳細情報の作成)へと段階的なプログラム開発を支
援する図式プログラムエディタで、仕様情報作成時にマ
クロ呼び出し文を指定することにより利用者が必要とす
る内容に特化した仕様情報と詳細情報の両方をマクロ原
文より展開できることを可能にするので、仕様情報と詳
細情報の同時作成および仕様情報と詳細情報の一体的管
理による修正の容易化が実現されプログラム開発の作業
効率の向上やプログラミングスタイルの統一ができると
いう効果がある。
As explained above, the present invention is a graphical program editor that incorporates structured programming techniques to support step-by-step program development from outline design (creation of specification information) to detailed design (creation of detailed information). By specifying the macro call statement at the time of creation, it is possible to extract both specification information and detailed information specific to the content required by the user from the macro original text, making it possible to simultaneously create specification information and detailed information and to specify the specifications. The integrated management of information and detailed information makes it easier to make modifications, which has the effect of improving work efficiency in program development and unifying programming styles.

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

第1図は本発明の一実施例に係る図式プログラムエディ
タにおけるマクロ展開方式の全体構成を示すブロック図
、第2図は本発明の一実施例に係る図式プログラムエデ
ィタにおけるマクロ展開方式の動作フロー図、第3図は
本発明の一実施例に係る図式プログラムエディタにおけ
るマクロ展開方式のマクロ展開例を示す説明図。 101・・・入出力装置、102・・・入力部、103
・・・呼び出し文解析部、104・・・実パラメータ保
持部、105・・・マクロ読込部、106・・・マクロ
保持部、107・・・振分部、108・・・仮パラメー
タ保持部、109・・・仕様記述保痔部、110・・・
処理記述保持部、111・・・パラメータ解決部、′1
12・・・対応表保持部、113・・・処理展開部、1
14・・・出力部、115・・・生成識別ID保持部、
116・・・仕様展開部。
FIG. 1 is a block diagram showing the overall configuration of a macro expansion method in a graphical program editor according to an embodiment of the present invention, and FIG. 2 is an operation flow diagram of the macro expansion method in a graphical program editor according to an embodiment of the present invention. , FIG. 3 is an explanatory diagram showing an example of macro expansion of a macro expansion method in a graphical program editor according to an embodiment of the present invention. 101... Input/output device, 102... Input section, 103
... Call statement analysis section, 104... Actual parameter holding section, 105... Macro reading section, 106... Macro holding section, 107... Distribution section, 108... Formal parameter holding section, 109...Specification description hemorrhoid protection part, 110...
Processing description holding unit, 111...parameter resolution unit, '1
12... Correspondence table holding unit, 113... Processing expansion unit, 1
14... Output section, 115... Generation identification ID holding section,
116...Specification development department.

Claims (1)

【特許請求の範囲】 図式プログラムエディタの編集画面や利用者からのキー
ボード入力等を受け付ける入出力装置と、前記入出力装
置より入力されたマクロの展開指示(以下、「マクロ呼
び出し文」と称す)を入力する入力部と、 入力したマクロ呼び出し文からマクロ名と、マクロの内
容(以下、「マクロ原文」と称す)を特化するために与
えられたパラメータ(以下、「実パラメータ」と称す)
をそれぞれ抽出し出力する呼び出し文解析部と、 前記呼び出し文解析部より出力される実パラメータを保
持する実パラメータ保持部と、 予め作成されているマクロ原文をメモリや外部記憶装置
等に保持しておくマクロ保持部と、前記呼び出し文解析
部より出力されるマクロ名を受けて、前記マクロ保持部
より対応するマクロ原文を読み込むマクロ読込部と、 前記読み込んだマクロ原文を仮パラメータ記述部、仕様
記述部および処理記述部とに分けてそれぞれ出力する振
分部と、 前記振分部より出力される仮パラメータ記述部の内容を
保持する仮パラメータ保持部と、前記仕様記述部の内容
を保持する仕様記述保持部と、 前記処理記述部の内容を保持する処理記述保持部と、 前記仮パラメータ保持部に保持されている仮パラメータ
と、前記実パラメータ保持部に保持されている実パラメ
ータを対応付けて対応表を作成し出力するパラメータ解
決部と、 前記パラメータ解決部より出力される仮パラメータと実
パラメータとの対応表を保持する対応表保持部と、 前記処理記述保持部に保持されている処理記述を、前記
対応表保持部に保持されている対応表を基に展開し出力
するとともに、当該展開した処理記述を一意に識別する
ための名標(以下、「識別ID」と称す)を抽出し出力
する処理展開部と、前記抽出した識別IDを保持する生
成識別ID保持部と、 前記識別ID保持部に保持されている識別IDと同じ識
別IDが付加されている仕様記述を前記仕様記述保持部
より選択し出力する仕様展開部と、前記処理展開部およ
び仕様展開部より出力されるそれぞれの内容を前記入出
力装置に表示する出力部とを備えて成ることを特徴とす
る図式プログラムエディタにおけるマクロ展開方式。
[Claims] An input/output device that accepts keyboard input from the editing screen of a graphical program editor or a user, and an instruction to expand a macro input from the input/output device (hereinafter referred to as a "macro call statement") an input section for inputting the macro name from the input macro call statement, and parameters (hereinafter referred to as "actual parameters") given to specialize the contents of the macro (hereinafter referred to as "macro original text").
a call statement analysis unit that extracts and outputs each of the above, an actual parameter holding unit that holds the actual parameters output from the call statement analysis unit, and an actual parameter holding unit that holds the macro original text created in advance in memory, an external storage device, etc. a macro holding unit that receives the macro name output from the call statement analysis unit and reads the corresponding macro text from the macro holding unit; a macro reading unit that reads the macro text that is read from the macro holding unit; and a formal parameter description unit that transfers the read macro text to a specification description. a temporary parameter holding section that holds the contents of the formal parameter description section output from the distribution section; and a specification section that holds the contents of the specification description section. a description holding section; a processing description holding section that holds the contents of the processing description section; a formal parameter held in the formal parameter holding section and an actual parameter held in the actual parameter holding section; a parameter resolution unit that creates and outputs a correspondence table; a correspondence table holding unit that holds a correspondence table between formal parameters and actual parameters output from the parameter resolution unit; and a processing description held in the processing description holding unit. is expanded and outputted based on the correspondence table held in the correspondence table holding unit, and a name (hereinafter referred to as "identification ID") for uniquely identifying the expanded processing description is extracted. a processing expansion unit that outputs, a generated identification ID holding unit that holds the extracted identification ID, and a specification description holding unit that holds the specification description to which the same identification ID as the identification ID held in the identification ID holding unit is added. A graphical program editor comprising: a specification development section that selects and outputs contents from the processing section; and an output section that displays respective contents output from the processing development section and the specification development section on the input/output device. Macro expansion method.
JP3891990A 1990-02-19 1990-02-19 Macro-evolving system for diagram program editor Pending JPH03240829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3891990A JPH03240829A (en) 1990-02-19 1990-02-19 Macro-evolving system for diagram program editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3891990A JPH03240829A (en) 1990-02-19 1990-02-19 Macro-evolving system for diagram program editor

Publications (1)

Publication Number Publication Date
JPH03240829A true JPH03240829A (en) 1991-10-28

Family

ID=12538625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3891990A Pending JPH03240829A (en) 1990-02-19 1990-02-19 Macro-evolving system for diagram program editor

Country Status (1)

Country Link
JP (1) JPH03240829A (en)

Similar Documents

Publication Publication Date Title
US5799193A (en) Scenario based iterative method for development of an object oriented system model
JPH0458052B2 (en)
JPH02232152A (en) Production system simulator forming device
JP2004341623A (en) Security specification creation support device and security specification creation support method
JP2002014845A (en) Method for automatically generating test script part and device for the same
JP2004157927A (en) Creating system for business form input, creating program and creating method
JPH03240829A (en) Macro-evolving system for diagram program editor
JP3085922B2 (en) Drawing generation device for assembly group by 3D CAD
JPH01175036A (en) Source selection type conversion system for source converter
JP2000155714A (en) Method and system for application development assistance
JP2007094453A (en) Program development support system, program development support method and program
JP2720768B2 (en) Program customization equipment
JP3016109B2 (en) Program document maintenance device
JPH04195426A (en) Program development backup device
JPH08166973A (en) Image data managing system
JP2010157165A (en) Information processor, information processing method, and program
JPH0830448A (en) Program specification consistency inspecting device
JPH0588865A (en) Software design supporting device
JPH06214777A (en) Method and device for developiig program
JPS62145424A (en) Program managing method
JPH1195991A (en) Customize method for screen processing program and recording medium therefor
JP2674520B2 (en) Electronic data generation system
JPH07160536A (en) Program test supporting device for interactive system
JPH0566938A (en) Patch data generating system
JP2002229787A (en) Program generating device