JPS60120431A - Automatic program creating system - Google Patents
Automatic program creating systemInfo
- Publication number
- JPS60120431A JPS60120431A JP58226849A JP22684983A JPS60120431A JP S60120431 A JPS60120431 A JP S60120431A JP 58226849 A JP58226849 A JP 58226849A JP 22684983 A JP22684983 A JP 22684983A JP S60120431 A JPS60120431 A JP S60120431A
- Authority
- JP
- Japan
- Prior art keywords
- program
- input
- created
- output data
- parts
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は、プログラム自動作成方式に係り、定常業務を
行なうオンライン対話システム等において効率的にプロ
グラムを自動作成する方式などに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an automatic program creation method, and more particularly, to a method for automatically creating programs efficiently in an online dialogue system or the like for performing routine work.
従来のプログラム部品を利用したプログラム作成方式で
は、プログラム部品を人手で修正して目(1)
的のプログラムを作成する方式を取っていたので、プロ
グラム部品の十分な知識を必要とし、かつ飛躍的な生産
性向上が期待できないというような欠点があった。In the conventional program creation method using program parts, the program parts were manually modified to create a target program (1), which required sufficient knowledge of program parts and was a dramatic improvement. The drawback was that no significant productivity improvement could be expected.
これらについては例えば情報処理学会第25回(昭和5
7年後期)全国大会予稿県:「パラダイムによる再利用
考案」などにも見られる通りである。Regarding these, for example, the 25th Information Processing Society of Japan (Showa 5
Late 7th year) National conference preliminary prefecture: As seen in "Reuse ideas using paradigms".
本発明の目的は、オンライン対話型システムの仕様の定
義に基づき、予め作成したプログラム部品を、自動的に
選択し、修正することにより、目的とするオンライン対
話システムのプログラムを自動生成する方式を提供する
ことにある。An object of the present invention is to provide a method for automatically generating a program for a target online interactive system by automatically selecting and modifying program parts created in advance based on the definition of specifications for the online interactive system. It's about doing.
本発明はオンライン対話型システムの仕様を、対話手順
、入出力データフオーマト、入出力データのチェック方
法、求め方の3つの要素に分けて定義し、予め端末との
対話手順の一画面データ一括入力、−行毎入力等の種類
別に作成したプログ(2)
ラム部品の中より該当する部品を自動的に選択し、これ
を入出力データフオーマト情報で修正し、更に、入出力
データのチェック方法、求め方の定義に基づいて生成し
たコードを追加することにより、目的とするプログラム
を自動的に生成するものである。The present invention defines the specifications of an online interactive system by dividing it into three elements: dialogue procedure, input/output data format, input/output data checking method, and method of obtaining. Programs created for each type of input, line-by-line input, etc. (2) Automatically selects the corresponding part from among the RAM parts, corrects it with input/output data format information, and further checks the input/output data. The target program is automatically generated by adding code generated based on the definition of the method and calculation method.
特に、プログラム部品の修正については従来全く人手で
行なうか、あるいは入出力データフォーマトに関する部
分のみを自動的に修正していたもので、入出力データの
チェック法や生成法に関するプログラムコードは人手で
作成する必要があった。In particular, in the past, modification of program parts was done entirely manually, or only parts related to the input/output data format were automatically modified, whereas program code related to how to check and generate input/output data was created manually. I needed to.
以下、本発明を実施例により、図を用いて詳細図である
。DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
第1図において100はメモリを含む中央処理装置、2
は作成対象システムの仕様を作成するビデオ・データ・
ターミナルでディスプレイとキー(3)
ボードを持つ。300はサンプル仕様、定義したユーザ
仕様、プログラム部品、及び生成プログラムを蓄積する
ファイル・メモリである。In FIG. 1, 100 is a central processing unit including memory;
is the video data that creates the specifications for the system to be created.
Hold the display and key (3) board at the terminal. 300 is a file memory that stores sample specifications, defined user specifications, program parts, and generated programs.
第2図は本発明の動作機能部の構成を示す。第2図の1
は対象システムのサンプルとなる仕様を予め蓄積する部
分、2はサンプル仕様の修正に使用するビデオ・データ
・ターミナル、3はサンプル仕様を修正してユーザ仕様
を作成する仕様エディツタ部分、4は作成したユーザ仕
様を蓄積する部分、41は作成したユーザ仕様の内、−
画面一括入力、−行毎入力等のビデオデータターミナル
との対話手順定義を蓄積する部分、42は対話画面、出
力リストなどの人出カフオーマドの定義を蓄積する部分
、43は人出カデータのチェック法、値の生成法の定義
を蓄積する部分である。5はプログラム生成に使用する
プログラム部品を予め蓄積する部分、6はユーザ仕様に
対応するプログラム部品を選択する処理部、7は選択し
たプログラム部品を蓄積する部分、8は選択したプログ
ラム部品を、ユーザ仕様中の入出カフオーマドの定義(
4)
に基づいて修正する処理部、9は修正によって作成した
対話手順制御、物理的入出力実行、入出力データの定義
、入出力データの変換等のプログラムの骨格部を蓄積す
る部分、1oはユーザ仕様中の入出力データのチェック
法、生成法の定義に基づきチェック処理、生成処理のプ
ログラムソースコードを生成する部分、11はプログラ
ムの骨格部にチェック処理、生成処理の処理コードを結
合して目的とするプログラムを生成する部分であり、1
2は生成したプログラムを蓄積する部分である。FIG. 2 shows the configuration of the operating function section of the present invention. Figure 2 1
2 is the video data terminal used to modify the sample specifications; 3 is the specification editor part for modifying the sample specifications to create user specifications; 4 is the part that has been created A part for storing user specifications, 41 is a part of the created user specifications, -
A part that stores definitions of interaction procedures with the video data terminal such as screen batch input and line-by-line input, 42 a part that stores definitions of the number of people coming in such as dialogue screens and output lists, and 43 a method of checking the number of people data. , is a part that stores definitions of value generation methods. Reference numeral 5 denotes a section that stores program parts to be used in program generation, 6 a processing section that selects program parts corresponding to user specifications, 7 a section that stores the selected program parts, and 8 that stores the selected program parts by the user. Definition of input and output capacitors in the specifications (
4) a processing unit that makes modifications based on the above; 9 is a part that stores program skeleton parts such as dialog procedure control, physical input/output execution, input/output data definition, and input/output data conversion created by modification; 1o is a The part 11 generates the program source code for checking and generation processing based on the definition of the input/output data checking method and generation method in the user specifications. This is the part that generates the target program, and 1
2 is a part that stores generated programs.
第4図に、第1図の2のビデオ・データ・ターミナルを
用いて行なう対話手順の1例−ビデオ・データ・ターミ
ナルの画面をヘッダ部411、ボディ部412、トレイ
ラ部413より構成し、ヘッダ部411のデータ入力後
とボディ全行入力後に、入力したデータの正しさを確認
する場合を示す。第4図は売上伝票入力の例である。4
1のヘッダ入力時に、ヘッダ入力データ「顧客コード」
に1123を入力している。42のボディ入力時には、
ヘッダ入力データの「顧客コード」の確認のため、(5
)
対応する「顧客名」日立産業が出力されている。FIG. 4 shows an example of the dialog procedure performed using the video data terminal 2 in FIG. A case is shown in which the correctness of the input data is confirmed after inputting data in the section 411 and after inputting all lines of the body. FIG. 4 is an example of inputting a sales slip. 4
When inputting the header in step 1, enter the header input data "Customer code"
1123 is entered in . When inputting the body of 42,
To confirm the "Customer Code" of the header input data, (5
) The corresponding "customer name" Hitachi Sangyo is output.
この時点でボディ入力データ「商品コード」に0137
、2156.1039を入力し、「数量」に2,1゜1
0、「単価」に81000.20500.47800を
入力している。43のトレイラ入力時には、「商品コー
ド」の確認のためr商品名」が出力され、「数量」と「
単価」の確認のためその積である「金額」が出力されて
いる。この時点でトレイラ入力データ「合計」に660
500を入力して、1つのトランザクション処理を完了
する。At this point, the body input data "product code" is 0137
, enter 2156.1039 and enter 2,1゜1 in "Quantity".
0. 81000.20500.47800 is entered in "Unit Price". When inputting the trailer of 43, "Product name" is output to confirm "Product code", "Quantity" and "
In order to confirm the unit price, the product "amount" is output. At this point, the trailer input data "total" is 660.
Enter 500 to complete one transaction process.
第5図に伝票入力処理において、画面から入力する伝票
のヘッダ部411、ボディ部412、トレイラ部413
のデータを一括して入力するプログラムを生成する例に
おける生成に使用するプログラム部品と、生成されるプ
ログラムの関係を示す。この場合、第2図41のユーザ
仕様の対話手順の定義に基づき、対応する「ヘッダ・ボ
ディ・トレイラ一括入力」のプログラム部品が選択され
る。FIG. 5 shows a header section 411, a body section 412, and a trailer section 413 of a slip input from the screen in the slip input process.
This figure shows the relationship between the program parts used for generation and the generated program in an example of generating a program that inputs data at once. In this case, the corresponding "Header/Body/Trailer batch input" program component is selected based on the definition of the user-specified dialog procedure shown in FIG. 241.
この部品を第2回42のユーザ仕様の入出カフ(6)
オーマドの定義及び第2図43の入出力データのチェッ
ク法・生成法の定義にもとづき、修正してプログラムを
生成する。1本のプログラムを生成するのに要する部品
は1個である。This component is modified to generate a program based on the definition of input/output cuff (6) ohmad according to user specifications in the second session 42 and the definition of the input/output data checking/generation method in FIG. 2 43. One component is required to generate one program.
第5図に示す生成プログラムのプログラム・フローチャ
ートの例の内、実線で示した部分は、対話手順の制御や
、端末・ファイルとの物理的入出力を行なう部分であり
、プログラム部品中にプログラム・ソース・コードが含
まれており、これをそのまま複写してプログラムの対応
する部分を生成する。In the example of the program flowchart of the generated program shown in Figure 5, the parts indicated by solid lines are the parts that control the dialogue procedure and perform physical input/output with terminals and files. Contains source code, which can be copied verbatim to generate the corresponding part of the program.
第5図のプログラム・フローチャートの例の内、1点破
線で示した部分は、入出力データエリアの定義P、入出
力データの物理論理変換等、入出力− データ・フォー
マドに関する部分である。この部分はプログラム部品中
にそのスケルトンが指定されており、これをユーザ定義
の入出カフオーマドの定義にもとづき修正してプログラ
ム・ソース・コードを生成する。In the example program flowchart of FIG. 5, the portion indicated by a one-dot broken line is a portion related to the input/output data format, such as the definition P of the input/output data area, the physical/logical conversion of the input/output data, etc. The skeleton of this part is specified in the program component, and the program source code is generated by modifying this based on the definition of user-defined input/output coordinates.
以上に示す4第5図の実線で示す対話手順制御(7)
や物理的入出力を行なう部分と、1点破線で示した入出
力データエリアの定義や、入出力データエリアの物理論
理変換等の部分がプログラム骨格部を形成する。As shown above, the dialog procedure control (7) shown by the solid line in Figure 5, the part that performs physical input/output, the definition of the input/output data area shown by the dashed line, the physical logic conversion of the input/output data area, etc. This part forms the program skeleton.
第5図のプログラム・フローチャートの例の内、破線で
示した部分は端末等からの入力データのチェック処理、
出力データの生成処理の部分である。In the example program flowchart in Figure 5, the parts indicated by broken lines are the processing for checking input data from a terminal, etc.
This is the output data generation processing part.
プログラム部品中には、これらの処理を行なう個所のみ
が指定されており、これらの処理のプログラム・ソース
・コードはユーザ仕様中の入出力データのチェック法・
生成法の定義により生成される。Only the parts that perform these processes are specified in the program parts, and the program source code for these processes is based on the input/output data checking method and the user specifications.
Generated by the definition of the generation method.
次に本発明の動作フローについて説明する。Next, the operational flow of the present invention will be explained.
ユーザは第2図の3の仕様エディツト部分により1より
サンプルとなるオンライン対話システムの仕様を選択し
、これを2を用いて会話形式により修正してユーザ用の
仕様を作成して4のユーザ仕様蓄積部に蓄積する。ユー
ザ用仕様は第3図4に例を示すように41の対話手順、
42の入出力データフオーマト、43の入出力データの
チェッ(8)
り法、生成法に分けて定義する。The user selects the specification of the sample online dialogue system from 1 using the specification edit section 3 in Figure 2, modifies it in a conversational format using 2 to create a user specification, and creates the user specification 4. Accumulates in the storage section. The user specifications include 41 dialogue procedures, as shown in FIG.
It is divided into 42 input/output data formats, 43 input/output data checking methods, and generation methods.
作成されたユーザ仕様にもとづきプログラムを自動生成
する手順を次に第3図のフローチャートと、第2図を用
いて説明する。Next, the procedure for automatically generating a program based on the created user specifications will be explained using the flowchart of FIG. 3 and FIG. 2.
6は41の対話手順の定義に一致するプログラム部品を
5より選択して蓄積部7に蓄積する。本例では「ヘッダ
ボディブンリニュウリョク」の部品が選択されている。6 selects a program component from 5 that matches the definition of the dialog procedure 41 and stores it in the storage section 7. In this example, the "header body replacement" component is selected.
8では7のプログラム部品内の指定個所に42の入出カ
フオーマット情報により、入出力データの定義等の人出
カフオーマドに関係するプログラムコードを埋め込んで
プログラムの骨格部を作成し、プログラム骨格メモリ9
に蓄積する。第3図の例ではプログラム部品の「ニガメ
ンボディデータ」の個所のスケルトンの「&メイショウ
」、「&ゾクセイ」、「&ケタスウ」の個所に42の人
出カフオーマド定義に定義された画面ボディ部のデータ
である「スウチ」、「タン力」、「キンガク」のデータ
エリアの定義を埋め込んでいる。即ち各データにそれぞ
れ「スウチ」、「タン力」 「キンガク」の名称を与え
、各、(9)
データの属性として数値、桁数としてそれぞれ4桁・5
桁・8桁を与えている。画面ボディ部以外のデータエリ
アの定義や、あるいは、データの物理論理変換等のプロ
グラム・コードも同様に定義する。In 8, the program skeleton part is created by embedding the program code related to the output format, such as the definition of input/output data, using the input/output format information in 42 at the specified location in the program part in 7, and the program skeleton part is stored in the program skeleton memory 9.
Accumulate in. In the example shown in Figure 3, the screen body part defined in the 42 people's appearance caffomado definition is placed in the skeleton's "&Meisho", "&Zokusei", and "&Ketasou" parts of the program part "Nigamen Body Data". The data area definitions of ``Souch'', ``Tanriki'', and ``Kingaku'' are embedded. That is, each data is given the name "Souch", "Tanriki", and "Kingaku", respectively, and (9) the data attribute is a numerical value and the number of digits is 4 digits and 5 digits, respectively.
Digits/8 digits are given. Definition of data areas other than the screen body, or program codes for physical and logical conversion of data, etc., are similarly defined.
第2図10では43のチェック式・生成式の定義にもと
づき、チェック処理・生成処理のプログラム・コードを
生成し、11により9のプログラム骨格部内の指定個所
に、生成したプログラム・コードを挿入して、目的とす
るオンライン対話システムのC0BOLプログラムを完
成し、12に蓄積する。第3図の例では、43の定義さ
れた画面ボディ部出力データ「キンガク」に対する生成
式「スウチ*タンカ」にもとづきrcOMPUTEキン
ガク=スウリョウ*タンヵ」のC0BOLプログラムコ
ードを生成し、9の「#ガメンボディセイセイ」の個所
に挿入している。画面ヘッダ部やトレイラ部の入力デー
タのチェック処理、出方データの生成処理等のプログラ
ムコードも同様に生成する。In FIG. 2, 10, a program code for check processing and generation processing is generated based on the definition of the check expression and generation expression in 43, and the generated program code is inserted into the specified location in the program skeleton section 9 in step 11. Then, the COBOL program of the target online dialogue system is completed and stored in 12. In the example shown in Fig. 3, the C0BOL program code of rcOMPUTE Kingaku = Suryo * Tanka is generated based on the generation formula "Suuchi * Tanka" for the defined screen body part output data "Kingaku" of 43, and the C0BOL program code of 9 is "# Gamen". It is inserted in the ``Body Control'' section. Program codes for checking input data in the screen header section and trailer section, generating output data, etc. are similarly generated.
本実施例では、ビデオデータターミナルにより、(10
)
サンプルとなる仕様を対話形で修正してオンライン対話
システムの仕様を作成する機能を備えることにより、一
層の生産性向上を計ることが出来る。In this embodiment, (10
) By providing a function to create specifications for an online dialogue system by modifying sample specifications interactively, it is possible to further improve productivity.
以」二説明したように本発明は計算機のソフトウェアに
より実施することができるが、専用ハードウェアによっ
て実施することも可能である。As explained above, the present invention can be implemented by computer software, but it can also be implemented by dedicated hardware.
本発明によれば、従来技術では不可能であった、プログ
ラム部品を用いたプログラムの自動作成が可能となり、
オンライン対話システム作成の生産性向上の効果がある
。According to the present invention, it is possible to automatically create a program using program components, which was impossible with the conventional technology.
It has the effect of improving productivity in creating online dialogue systems.
第1図は本発明の一実施例のシステム構成図、第2図は
本発明の一実施例の機能構成図を示す。
第3図は、本発明の一実施例におけるユーザ仕様とプロ
グラム部品からプログラムを生成するデータフローと、
データ例を示す。第4図は本発明におけるオンライン対
話型プログラムの対話手順の一例を示す状態図、第5図
は、本発明において生成されるオンライン対話型プログ
ラムのフローチ(11)
ヤードと、プログラム部品との関係を示すフローチャー
トである。
1・・・サンプル仕様蓄積部、2・・・ビデオ・データ
・ターミナル、3・・・仕様エディツト機能、4・・・
コーザ仕様蓄積機能、5・・・プログラム部品蓄積機能
、6・・・プログラム部品選択処理部、7・・・選択プ
ログラム部品蓄積機能、8・・・プログラム部品修正処
理部、9・・・プログラム骨格部蓄積機能、10・・・
チェック・生成処理コード生成機能、11・・プログラ
ム結合機能、12・・・生成プログラム蓄積機能。
(12)
Y1図
Z z 図
第 3 図FIG. 1 shows a system configuration diagram of an embodiment of the present invention, and FIG. 2 shows a functional configuration diagram of an embodiment of the invention. FIG. 3 shows a data flow for generating a program from user specifications and program components in an embodiment of the present invention;
Show example data. FIG. 4 is a state diagram showing an example of the dialog procedure of the online interactive program according to the present invention, and FIG. 5 shows the relationship between the flowchart (11) yard of the online interactive program generated according to the present invention and program parts. FIG. 1...Sample specification storage section, 2...Video data terminal, 3...Specification edit function, 4...
Coza specification accumulation function, 5... Program parts accumulation function, 6... Program parts selection processing unit, 7... Selected program parts accumulation function, 8... Program parts modification processing unit, 9... Program skeleton Part accumulation function, 10...
Check/generation processing code generation function, 11...program combination function, 12...generated program storage function. (12) Y1 Figure Z z Figure 3
Claims (1)
と、選択したプログラム部品を入出力データフォーマッ
ト情報により修正してプログラム骨格部を作成するステ
ップと、データ生成式、チェック式情報により該当プロ
グラムコードを生成して、プログラム骨格部と結合し、
完全な形のプログラムを自動生成するステップを有する
ことを特徴とするプログラム自動生成方式。A step of selecting a program component based on dialogue procedure information, a step of creating a program skeleton by modifying the selected program component using input/output data format information, and a step of generating a corresponding program code using data generation formula and check formula information. , combined with the program skeleton,
An automatic program generation method comprising a step of automatically generating a complete program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58226849A JPS60120431A (en) | 1983-12-02 | 1983-12-02 | Automatic program creating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58226849A JPS60120431A (en) | 1983-12-02 | 1983-12-02 | Automatic program creating system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS60120431A true JPS60120431A (en) | 1985-06-27 |
Family
ID=16851524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58226849A Pending JPS60120431A (en) | 1983-12-02 | 1983-12-02 | Automatic program creating system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60120431A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6385818A (en) * | 1986-09-29 | 1988-04-16 | Nec Corp | Program data area forming system |
JPH01161530A (en) * | 1987-12-18 | 1989-06-26 | Pfu Ltd | Additional processing system for defining body auxiliary information |
JPH02208724A (en) * | 1989-02-09 | 1990-08-20 | Chugoku Nippon Denki Software Kk | Table format program generating device |
WO1994014107A1 (en) * | 1992-12-07 | 1994-06-23 | Fanuc Ltd | Method for executing sequential program |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS584444A (en) * | 1981-06-30 | 1983-01-11 | Fujitsu Ltd | Automatic program producing system |
-
1983
- 1983-12-02 JP JP58226849A patent/JPS60120431A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS584444A (en) * | 1981-06-30 | 1983-01-11 | Fujitsu Ltd | Automatic program producing system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6385818A (en) * | 1986-09-29 | 1988-04-16 | Nec Corp | Program data area forming system |
JPH01161530A (en) * | 1987-12-18 | 1989-06-26 | Pfu Ltd | Additional processing system for defining body auxiliary information |
JPH02208724A (en) * | 1989-02-09 | 1990-08-20 | Chugoku Nippon Denki Software Kk | Table format program generating device |
WO1994014107A1 (en) * | 1992-12-07 | 1994-06-23 | Fanuc Ltd | Method for executing sequential program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0560619B1 (en) | Method and apparatus for designing computer programs for business | |
CN111651680A (en) | Method and system for self-help generation of legal documents | |
US5212634A (en) | Method of and apparatus for automatically generating application program | |
JPS60120431A (en) | Automatic program creating system | |
JP2002014845A (en) | Method for automatically generating test script part and device for the same | |
JPH03241439A (en) | Test data preparation tool | |
JPH10111876A (en) | Information retrieval device | |
JPH04172529A (en) | Automatic program generating system by data oriented software parts | |
JP2001060240A (en) | Format correcting method and data converting method | |
JP2720768B2 (en) | Program customization equipment | |
JP2692196B2 (en) | Test data editing method | |
JPH1049355A (en) | Development support method for work application program performing screen operation | |
JP3208300B2 (en) | Method of extracting use form of physical entity in program and related extraction method | |
JP2669677B2 (en) | Processing order automatic setting processor | |
JPH01109430A (en) | Programming method for computer processing | |
JP2965767B2 (en) | Programmable controller programming device and timer setting time input method | |
JPH01312641A (en) | Batch test system for on-line | |
JPH05341974A (en) | System for evaluating change of state transition information | |
JPH0773001A (en) | System for generating and displaying picture for demonstration | |
JPH05120068A (en) | Testing and verifying method for computer program | |
JPH04347760A (en) | Interlocking system generation method for online environment | |
JPH08137681A (en) | Buildup system for graphical user interface | |
JPH04242427A (en) | Program designing system | |
JPH05127883A (en) | Automatic generator for job step | |
JPH06119155A (en) | Program generator |