JP2000047859A - Automatic program generator and mechanically readable recording medium recorded with program - Google Patents

Automatic program generator and mechanically readable recording medium recorded with program

Info

Publication number
JP2000047859A
JP2000047859A JP10230100A JP23010098A JP2000047859A JP 2000047859 A JP2000047859 A JP 2000047859A JP 10230100 A JP10230100 A JP 10230100A JP 23010098 A JP23010098 A JP 23010098A JP 2000047859 A JP2000047859 A JP 2000047859A
Authority
JP
Japan
Prior art keywords
function
user
program
format
editor
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
JP10230100A
Other languages
Japanese (ja)
Other versions
JP3379440B2 (en
Inventor
Tomohiro Kudo
智広 工藤
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 JP23010098A priority Critical patent/JP3379440B2/en
Publication of JP2000047859A publication Critical patent/JP2000047859A/en
Application granted granted Critical
Publication of JP3379440B2 publication Critical patent/JP3379440B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a user to describe a specification by an optimal specification form which is decided by a device itself for every function of a program to be automatically generated by the user based on specification description generated by the user. SOLUTION: Correspondence between a function and a specification form is set beforehand in a function/specification form correspondence table 110 by considering that the optimal specification form is fixed to some extent for each function, etc. When the user designates some functions as necessary functions of the program to be automatically generated by the user, a specification form deciding means 101 decides a specification form for describing the specification of each function by referring to the table by each function designed by the user. In order to allow the user to describe a specification, an editor control means 100 automatically starts an editor corresponding to the decided specification form in plural editors 102-1 to 102-n.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は利用者が作成した仕
様記述に従ってプログラムを自動生成する装置に関し、
より具体的には、利用者が自動生成しようとしているプ
ログラムが持つ機能毎に最適な仕様形式を装置自体が決
定し、この決定した仕様形式で利用者に仕様を記述させ
るようにしたプログラム自動生成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for automatically generating a program according to a specification description created by a user.
More specifically, the program itself automatically determines the optimum specification format for each function of the program that the user intends to automatically generate, and causes the user to describe the specification in the determined specification format. Related to the device.

【0002】[0002]

【従来の技術】プログラム自動生成装置は、利用者(人
間)にとって理解し易い仕様記述から、そこに記述され
た利用者の要求を満足するプログラムを自動的に生成す
る装置であり、フローチャート形式の仕様記述からプロ
グラムを自動生成する装置、ブロック図形式の仕様記述
からプログラムを自動生成する装置など、各種の装置が
研究,開発されている。しかし、複数の機能を有するプ
ログラムの場合、単一の形式でプログラム全体の仕様を
記述することは困難である。このため、種々の形式の仕
様記述が扱えるプログラム自動生成装置が望まれてい
る。
2. Description of the Related Art An automatic program generation apparatus is an apparatus for automatically generating a program satisfying a user's requirement described from a specification description which is easy for a user (human) to understand. Various devices have been researched and developed, such as a device for automatically generating a program from a specification description and a device for automatically generating a program from a specification description in a block diagram format. However, in the case of a program having a plurality of functions, it is difficult to describe the specifications of the entire program in a single format. For this reason, an automatic program generation device capable of handling various types of specification descriptions is desired.

【0003】このような要望を満たす従来技術として、
特開平2−236720号公報に記載されるプログラム
自動生成方式がある。この従来技術では、フローチャー
ト形式の仕様記述からプログラムを生成する自動生成部
品、ブロック図形式の仕様記述からプログラムを生成す
る自動生成部品といった各種の自動生成部品を備えてお
り、利用者が自動生成しようとするプログラムの機能毎
に装置自体が最適な自動生成部品を選択する。そして、
この選択した自動生成部品に対し、利用者からの仕様を
入力してプログラム(モジュール)の生成を試み、若
し、前記選択した自動生成部品ではその仕様からのプロ
グラム生成に失敗した場合には、別の自動生成部品を選
択してプログラム生成を再度試みる。そして、こうして
各仕様に従って各自動生成部品で生成されたモジュール
を結合することにより、最終的なプログラムを得てい
る。
[0003] As a conventional technology satisfying such demands,
There is an automatic program generation method described in JP-A-2-236720. This conventional technology includes various automatically generated components such as an automatically generated component that generates a program from a specification description in a flowchart format and an automatically generated component that generates a program from a specification description in a block diagram format. The apparatus itself selects an optimal automatically generated component for each function of the program. And
For the selected automatically generated component, the user inputs a specification and attempts to generate a program (module). If the selected automatically generated component fails to generate a program from the specification, Select another auto-generated part and try program generation again. The final program is obtained by combining the modules generated by the respective automatically generated components in accordance with the respective specifications.

【0004】[0004]

【発明が解決しようとする課題】上述した従来技術で
は、自動生成しようとするプログラムの或る機能につい
て選択した或る自動生成部品に対して仕様を入力して起
動をかけたとき、プログラム(モジュール)の生成に失
敗した場合には、別の自動生成部品を選択してプログラ
ム生成を再度試みることで、どのような仕様であっても
プログラムを確実に生成できるように工夫している。こ
のため、利用者は無理にシステムに合わせた形式の仕様
を入力する必要はない。
In the above-mentioned prior art, when a specification is input to a certain automatically generated part selected for a certain function of a program to be automatically generated and activated, the program (module If the generation of ()) fails, another automatically generated part is selected and the program generation is retried to ensure that the program can be generated regardless of the specifications. Therefore, there is no need for the user to forcibly input a specification in a format suitable for the system.

【0005】しかしながら、このように、入力する仕様
の形式を利用者の自由に任せる考えでは、以下のような
問題が生じる。 (A)一般にプログラムの機能ごとに適切な仕様形式が
或る程度定まっている。このため、各機能ごとの適切な
仕様形式を熟知している利用者の場合には問題はない
が、その知識に乏しい利用者は、最初から適切な仕様形
式で仕様を記述することが困難である。 (B)自動生成されたプログラムを管理する場合、その
仕様記述も合わせて管理しておくが、同様の機能を持つ
プログラムであってもその仕様形式が利用者毎に相違す
ると、管理が煩雑化し、十分な管理が行えない。
[0005] However, in the case where the format of the specification to be input is left to the user, the following problem arises. (A) In general, an appropriate specification format is determined to some extent for each function of a program. For this reason, there is no problem for users who are familiar with the appropriate specification format for each function, but it is difficult for users with little knowledge to write specifications in the appropriate specification format from the beginning. is there. (B) When managing an automatically generated program, the specification description is also managed. However, even if the program has the same function, if the specification format differs for each user, the management becomes complicated. , Not enough management.

【0006】本発明はこのような従来の問題点に鑑みて
提案されたものであり、その目的は、利用者が自動生成
しようとしているプログラムが持つ機能毎に最適な仕様
形式を装置自体が決定し、この決定した仕様形式で利用
者に仕様を記述させるようにしたプログラム自動生成装
置を提供することにある。
The present invention has been proposed in view of such conventional problems, and has as its object to determine the optimum specification format for each function of a program which a user intends to automatically generate. It is another object of the present invention to provide an automatic program generation device that allows a user to describe a specification in the determined specification format.

【0007】[0007]

【課題を解決するための手段】本発明は、所定の機能を
実現する個別コードを所定形式の仕様記述から自動生成
する自動生成部品を複数備え、利用者が作成した各機能
毎の仕様記述とその機能に対応する前記自動生成部品と
から各機能毎の個別コードを生成し、該生成した各機能
毎の個別コードを結合することによりプログラムを生成
するプログラム自動生成装置において、機能と仕様形式
との対応関係を設定してある機能・仕様形式対応表と、
自動生成しようとするプログラムが持つべき機能として
利用者が指定した各機能毎に前記機能・仕様形式対応表
を参照し、その機能の仕様を記述する仕様形式を決定す
る仕様形式決定手段と、自動生成しようとするプログラ
ムが持つべき機能として利用者が指定した各機能毎に、
前記仕様形式決定手段で決定された仕様形式で利用者に
仕様を記述させるエディタ制御手段とを備えている。
According to the present invention, there are provided a plurality of automatically generated parts for automatically generating individual codes for realizing a predetermined function from a specification description in a predetermined format, and a specification description for each function created by a user. An automatic program generation device that generates an individual code for each function from the automatic generation component corresponding to the function, and generates a program by combining the generated individual code for each function. A function / specification format correspondence table that sets the correspondence between
A specification format determining unit that refers to the function / specification format correspondence table for each function specified by a user as a function to be possessed by the program to be automatically generated and determines a specification format for describing the specification of the function; For each function specified by the user as a function that the program to be generated should have,
Editor control means for allowing the user to describe the specification in the specification format determined by the specification format determination means.

【0008】また本発明の好ましい実施形態において
は、仕様形式毎のエディタを備え、前記エディタ制御手
段は、前記仕様形式決定手段で決定された仕様形式に対
応するエディタを自動的に起動する構成を有する。勿
論、前記仕様形式決定手段で決定された仕様形式に対応
するエディタを起動するよう促すメッセージを利用者に
提示し、利用者自身にエディタを起動させるようにして
も良い。
In a preferred embodiment of the present invention, an editor for each specification format is provided, and the editor control means automatically starts an editor corresponding to the specification format determined by the specification format determination means. Have. Of course, a message may be presented to the user prompting the user to start the editor corresponding to the specification format determined by the specification format determining means, and the user himself may start the editor.

【0009】上述のように構成された本発明のプログラ
ム自動生成装置にあっては、各機能について最適な仕様
形式がある程度定まっていること、及び、この機能はこ
の仕様形式で統一するといった社内でのプログラム管理
の方針等に基づいて、機能・仕様形式対応表に予め機能
と仕様形式との対応が設定されており、利用者が、自動
生成しようとするプログラムが持つべき機能として幾つ
かの機能を指定すると、仕様形式決定手段が、利用者が
指定した各機能毎に前記対応表を参照し、各機能の仕様
を記述する仕様形式を決定する。そして、エディタ制御
手段が、仕様形式決定手段で決定された仕様形式で利用
者に仕様を記述させるべく、例えば、仕様形式決定手段
で決定された仕様形式に対応するエディタを自動的に起
動する。
In the automatic program generating apparatus of the present invention configured as described above, the optimum specification format for each function is determined to some extent, and this function is unified in-house by unifying this specification format. The correspondence between functions and specification formats is set in advance in the function / specification format correspondence table based on the program management policy, etc. Is specified, the specification format determination means refers to the correspondence table for each function specified by the user and determines a specification format in which the specification of each function is described. Then, the editor control means automatically activates, for example, an editor corresponding to the specification format determined by the specification format determination means so that the user describes the specification in the specification format determined by the specification format determination means.

【0010】[0010]

【発明の実施の形態】次に本発明の実施の形態の例につ
いて図面を参照して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0011】図1は本発明のプログラム自動生成装置の
一例を示すブロック図である。この例のプログラム自動
生成装置は、処理装置1と、この処理装置1に接続され
た表示装置2、入力装置3および補助記憶装置4とから
構成されている。
FIG. 1 is a block diagram showing an example of a program automatic generation device according to the present invention. The automatic program generation device of this example includes a processing device 1, a display device 2, an input device 3, and an auxiliary storage device 4 connected to the processing device 1.

【0012】表示装置2は例えばCRTディスプレイ装
置で構成され、入力装置3は例えばキーボードおよびマ
ウスで構成される。利用者は、この表示装置2と入力装
置3を使って、自動生成しようとするプログラムが持つ
べき機能の一覧情報を作成したり、各機能の結合方法を
表す機能関連情報を作成したり、各機能毎の仕様を記述
する。
The display device 2 comprises, for example, a CRT display device, and the input device 3 comprises, for example, a keyboard and a mouse. The user uses the display device 2 and the input device 3 to create a list of functions to be possessed by the program to be automatically generated, to create function-related information indicating a method of combining the functions, Describe the specifications for each function.

【0013】補助記憶装置4は、自動生成されたプログ
ラム(ソースコード)41を記憶する装置である。
The auxiliary storage device 4 is a device for storing an automatically generated program (source code) 41.

【0014】処理装置1は、表示装置2および入力装置
3によって利用者が作成した仕様記述に従ってプログラ
ムを自動生成して補助記憶装置4に出力する装置であ
り、本実施形態の場合、エディタ制御手段100、仕様
形式決定手段101、各種のエディタ102−1〜10
2−n、自動生成部品選択手段103、個別コード生成
手段104、個別コード結合手段105といった機能部
を備えると共に、機能・仕様形式対応表110、機能一
覧情報111、機能関連情報112、各機能毎の仕様1
13−1〜113−m、各機能毎の自動生成部品114
−1〜114−x、各機能毎の個別コード115−1〜
115−mをそれぞれ記憶するための記憶部M0,M
1,M2,M3−1〜M3−m、M4,M5−1〜M5
−mを備えている。
The processing device 1 is a device for automatically generating a program in accordance with the specification description created by the user using the display device 2 and the input device 3 and outputting the program to the auxiliary storage device 4. In the case of this embodiment, the editor control means 100, specification format determining means 101, various editors 102-1 to 10-2
2-n, including automatically generated component selection means 103, individual code generation means 104, individual code combination means 105, and a function / specification format correspondence table 110, function list information 111, function related information 112, each function Specifications 1
13-1 to 113-m, automatic generation component 114 for each function
-1 to 114-x, individual code 115-1 to each function
Storage units M0 and M for storing 115-m, respectively.
1, M2, M3-1 to M3-m, M4, M5-1 to M5
-M.

【0015】エディタ102−1〜102−nは、それ
ぞれ異なる形式のエディタであり、その1つは表作成エ
ディタ、他の1つは状態遷移図作成エディタであり、こ
れらは利用者がプログラムの持つ機能の一覧情報を作成
したり、機能関連情報を作成する場合に利用される。他
に、フローチャート作成エディタ、画面レイアウト作成
エディタ、帳票レイアウト作成エディタ、ブロック図作
成エディタなどの各種エディタが用意されており、任意
の仕様形式で仕様が記述できるようになっている。
The editors 102-1 to 102-n are different types of editors, one of which is a table creation editor, and the other is a state transition diagram creation editor, which is owned by the user of the program. It is used when creating function list information or creating function-related information. In addition, various editors such as a flowchart creation editor, a screen layout creation editor, a form layout creation editor, and a block diagram creation editor are prepared, and specifications can be described in an arbitrary specification format.

【0016】記憶部M1は、利用者が作成した機能一覧
情報111を保持するファイル、記憶部M2は、利用者
が作成した機能関連情報112を保持するファイルなど
である。
The storage unit M1 is a file holding the function list information 111 created by the user, and the storage unit M2 is a file holding the function related information 112 created by the user.

【0017】記憶部M0は、機能・仕様形式対応表11
0を保持するファイルなどである。図2に機能・仕様形
式対応表110の内容例を示す。この例では、検索機
能,表示機能,印刷機能などといったプログラムの持つ
機能の名前(機能名)に対応して、その機能の仕様記述
を作成すべき仕様形式として、フローチャート,画面レ
イアウト図,帳票レイアウト図などの仕様形式が設定さ
れている。この機能・仕様形式対応表110は、各機能
について最適な仕様形式がある程度定まっていること
や、この機能はこの仕様形式で統一するといった社内で
のプログラム管理の方針等に基づいて、事前に定められ
ている。なお、レイアウト図とは、画面/帳票の中で、
どこ(どの座標)にどの要素(タイトル,表示テキス
ト,GUIボタンなど)を配置するかをイメージ図で表
したものである。
The storage unit M0 stores a function / specification format correspondence table 11
For example, a file holding 0. FIG. 2 shows an example of the contents of the function / specification format correspondence table 110. In this example, a flowchart, a screen layout diagram, a form layout, and the like are provided as specification formats in which specification descriptions of the functions such as a search function, a display function, and a printing function are to be created in correspondence with the names (function names) of the functions. A specification format such as a figure is set. The function / specification format correspondence table 110 is determined in advance based on the fact that the optimal specification format for each function has been determined to some extent, and the in-house program management policy such as unifying this function with this specification format. Have been. In addition, the layout diagram is the screen / form,
Where (which coordinates) and which element (title, display text, GUI button, etc.) is arranged is represented by an image diagram.

【0018】仕様形式決定手段101は、エディタ制御
手段100から機能名が通知された場合に、機能・仕様
形式対応表110を参照して、その機能の仕様を記述す
る仕様形式を決定する手段である。決定された仕様形式
はエディタ制御手段100に通知される。
The specification format determining means 101 refers to a function / specification format correspondence table 110 when the editor name is notified from the editor control means 100, and determines a specification format for describing the specification of the function. is there. The determined specification format is notified to the editor control means 100.

【0019】エディタ制御手段100は、各種エディタ
102−1〜102nの起動と、起動したエディタによ
って作成されたデータの保存などを行う手段である。本
実施の形態のエディタ制御手段100は、入力装置3を
通じ利用者から指定されたエディタを起動する機能を持
つと共に、利用者による機能一覧情報111の作成後の
各機能毎の仕様記述の作成時には、仕様形式決定手段1
01で決定された仕様形式のエディタを自動的に起動す
る機能を有している。
The editor control means 100 is a means for activating the various editors 102-1 to 102n and storing data created by the activated editor. The editor control means 100 according to the present embodiment has a function of activating an editor specified by a user through the input device 3 and, at the time of creating a specification description for each function after creating the function list information 111 by the user. , Specification format determination means 1
It has a function of automatically starting the editor of the specification format determined in step 01.

【0020】記憶部M3−1〜M3−mは、利用者がエ
ディタを使用して作成した各機能毎の仕様記述113−
1〜113−mを保持するファイルなどである。
The storage units M3-1 to M3-m store specification descriptions 113-for each function created by a user using an editor.
For example, a file that holds 1-113-m.

【0021】記憶部M4は、複数の自動生成部品114
−1〜114−xを蓄積するデータベースなどである。
この記憶部M4には、フローチャート形式の仕様記述か
ら検索機能を実現する個別コードを生成する自動生成部
品、画面レイアウト図形式の仕様記述から表示機能を実
現する個別コードを生成する自動生成部品、帳票レイア
ウト図形式の仕様記述から印刷機能を実現する個別コー
ドを実現する自動生成部品といった、各種の自動生成部
品が、機能名で検索可能なように、事前に記憶されてい
る。
The storage unit M4 stores a plurality of automatically generated components 114
-1 to 114-x.
The storage unit M4 includes an automatically generated component that generates an individual code that realizes a search function from a specification description in a flowchart format, an automatically generated component that generates an individual code that realizes a display function from a specification description in a screen layout diagram format, and a form. Various automatically generated components, such as an automatically generated component that realizes an individual code that realizes a printing function from a specification description in a layout diagram format, are stored in advance so as to be searchable by function name.

【0022】自動生成部品選択手段103は、個別コー
ド生成手段104から通知された機能名で記憶部M4を
検索して、該当する自動生成部品を個別コード生成手段
104に返却する手段である。
The automatically generated component selection means 103 is a means for searching the storage unit M4 with the function name notified from the individual code generation means 104 and returning the corresponding automatically generated component to the individual code generation means 104.

【0023】個別コード生成手段104は、機能一覧情
報111中に記述された機能名毎に、記憶部M3−1〜
M3−mに記憶された同機能にかかる仕様記述を取得す
ると共に、その機能名を自動生成部品選択手段103に
通知して該当する自動生成部品を取得し、この自動生成
部品をその仕様記述の下で起動することにより、その機
能を実現する個別コード115−1〜115−mを生成
する手段である。
The individual code generation means 104 stores in the storage units M3-1 to M3-1 for each function name described in the function list information 111.
In addition to acquiring the specification description of the same function stored in M3-m, the function name is notified to the automatically generated component selection unit 103 to obtain the corresponding automatically generated component, and the automatically generated component is described in the specification description. This is a means for generating individual codes 115-1 to 115-m that realize the function by being activated below.

【0024】記憶部M5−1〜M5−mは、個別コード
生成手段104で生成された各機能毎の個別コードを保
持するファイルなどである。
The storage units M5-1 to M5-m are files or the like which hold the individual codes for each function generated by the individual code generation unit 104.

【0025】個別コード結合手段105は、記憶部M5
−1〜M5−mに記憶された各機能毎の個別コードを入
力し、利用者によって作成され記憶部M2に保持されて
いる機能関連情報112に従って個別コードを結合する
ことで、最終的なソースコード41を生成する手段であ
る。
The individual code combining means 105 includes a storage unit M5
-1 to M5-m, the individual codes for each function are input, and the individual codes are combined according to the function-related information 112 created by the user and held in the storage unit M2, so that the final source This is a means for generating the code 41.

【0026】なお、処理装置1はパーソナルコンピュー
タやワークステーション等で実現することが可能であ
る。その場合、図1に付記したように、CD−ROM、
半導体メモリ、磁気ディスク装置などの機械読み取り可
能な記録媒体MEMが処理装置1に接続される。この記
録媒体MEMには、プログラム自動生成装置用プログラ
ムが記録されており、処理装置1の立ち上げ時などに処
理装置1を構成するCPUによって読み取られ、処理装
置1を構成するメモリ上に記憶部M0,M1,M2,M
3−1〜M3−m、M4,M5−1〜M5−mがロード
されると共に、CPUの動作を制御することにより、処
理装置1上に、エディタ制御手段100、仕様形式決定
手段101、各種のエディタ102−1〜102−n、
自動生成部品選択手段103、個別コード生成手段10
4、個別コード結合手段105といった機能部を実現す
る。
The processing device 1 can be realized by a personal computer, a workstation, or the like. In that case, as shown in FIG. 1, a CD-ROM,
A machine-readable recording medium MEM such as a semiconductor memory or a magnetic disk device is connected to the processing device 1. The recording medium MEM stores a program for an automatic program generation device, which is read by a CPU constituting the processing device 1 when the processing device 1 is started up, and is stored in a memory on a memory constituting the processing device 1. M0, M1, M2, M
3-1 to M3-m, M4, M5-1 to M5-m are loaded, and by controlling the operation of the CPU, the editor control means 100, the specification format determination means 101, Editors 102-1 to 102-n,
Automatic generation component selection means 103, individual code generation means 10
4. A functional unit such as the individual code combining unit 105 is realized.

【0027】次に、上述のように構成された本実施形態
のプログラム自動生成装置の動作を説明する。
Next, the operation of the automatic program generation device of the present embodiment configured as described above will be described.

【0028】幾つかの機能を併せ持ったプログラムを本
実施形態のプログラム自動生成装置を使って作成する場
合、利用者は、そのプログラムが有する機能の一覧情報
と、各機能の結合方法を表す機能関連情報とを作成す
る。この際の処理手順を図3に示す。
When a program having several functions is created by using the automatic program generation apparatus of the present embodiment, the user needs to obtain a list of functions of the program and a function relation indicating a method of combining the functions. Create information and. FIG. 3 shows a processing procedure at this time.

【0029】まず、利用者は、入力装置3からエディタ
の種類として表作成エディタを指定し、起動を命令す
る。エディタ制御手段100は、この命令に従い、複数
のエディタ102−1〜102−nの中から、表作成エ
ディタを選択して起動する。これにより、表示装置2の
画面上に表作成エディタの画面が表示されるので、利用
者は、入力装置3からプログラムが有する各機能の名前
を順次入力していくことで、機能一覧情報を作成する
(図3のステップ3−1)。図4は作成された機能一覧
情報の例を示す。この例では、検索機能,表示機能,印
刷機能の3つの機能を利用者が指定している。
First, the user designates the table creation editor as the type of editor from the input device 3 and instructs start-up. The editor control means 100 selects and activates the table creation editor from among the plurality of editors 102-1 to 102-n according to the command. As a result, the screen of the table creation editor is displayed on the screen of the display device 2, and the user creates the function list information by sequentially inputting the names of the functions of the program from the input device 3. (Step 3-1 in FIG. 3). FIG. 4 shows an example of the created function list information. In this example, the user designates three functions of a search function, a display function, and a print function.

【0030】次に利用者は、入力装置3からエディタの
種類として状態遷移図エディタを指定し、起動を命令す
る。エディタ制御手段100は、この命令に従い、複数
のエディタ102−1〜102−nの中から、状態遷移
図エディタを選択して起動する。これにより、表示装置
2の画面上に状態遷移図エディタの画面が表示されるの
で、利用者は、各機能を起動する条件を表すためのイベ
ントと状態とを定義し(図3のステップ3−2)、そし
て、定義した状態とイベントに対応する機能を状態遷移
表の形式で対応付ける(図3のステップ3−3)。この
状態遷移表の例を図5に示す。この例では、例えば、初
期状態では検索機能のみ起動可能で検索イベントが発生
すれば、検索機能を起動すると共に、次状態として検索
済み状態に進むことが示されている。
Next, the user designates the state transition diagram editor as the type of editor from the input device 3 and instructs start-up. The editor control means 100 selects and activates the state transition diagram editor from the plurality of editors 102-1 to 102-n in accordance with this command. As a result, the screen of the state transition diagram editor is displayed on the screen of the display device 2, and the user defines an event and a state for representing a condition for activating each function (step 3 in FIG. 3). 2) Then, the defined state is associated with the function corresponding to the event in the form of a state transition table (step 3-3 in FIG. 3). FIG. 5 shows an example of this state transition table. In this example, for example, only the search function can be started in the initial state, and if a search event occurs, the search function is started and the state advances to the searched state as the next state.

【0031】その後に利用者は、整合性を確認し、必要
があれば状態遷移表や場合によっては機能一覧情報を修
正する(図3のステップ3−4)。そして、問題が無け
れば入力装置3から登録を指示する。これにより、エデ
ィタ制御手段100は、作成された機能一覧情報を機能
一覧情報111として記憶部M1に格納し、作成された
状態遷移表を機能関連情報112として記憶部M2に格
納する。
Thereafter, the user checks the consistency, and if necessary, corrects the state transition table and, if necessary, the function list information (step 3-4 in FIG. 3). If there is no problem, registration is instructed from the input device 3. Thereby, the editor control means 100 stores the created function list information as the function list information 111 in the storage unit M1, and stores the created state transition table as the function related information 112 in the storage unit M2.

【0032】エディタ制御手段100は、利用者によっ
て機能一覧情報および状態遷移表が作成され、その格納
を終えると、各機能の仕様記述を利用者に入力させる制
御を開始する。その際のエディタ制御手段100の処理
の流れを図6に示す。
When the user creates function list information and a state transition table and stores them, the editor control means 100 starts control for allowing the user to input a specification description of each function. FIG. 6 shows the flow of processing of the editor control means 100 at that time.

【0033】まずエディタ制御手段100は、機能一覧
情報111から仕様記述未作成の機能名を取り出す(図
6のステップ6−1)。次に、取り出した機能名を仕様
形式決定手段101に渡し、返却される仕様形式を得る
(ステップ6−3)。ここで仕様形式決定手段101
は、エディタ制御手段100から渡された機能名で図2
に示したような機能・仕様形式対応表110を検索し、
その機能名に対応する仕様形式をエディタ制御手段10
0に返却する。エディタ制御手段100は、複数のエデ
ィタ102−1〜102−nの中から、仕様形式決定手
段101で決定された仕様形式のエディタを選択して起
動する(ステップ6−4)。これにより、表示装置2に
当該エディタの画面が表示される。このときエディタ制
御手段100は、表示装置2の画面の隅などに、今回の
機能名を表示し、その機能の仕様記述を今回起動された
エディタを使って記述するように利用者に指示する。利
用者は、画面に表示されたエディタ画面に対し入力装置
3から種々のデータを入力することにより、当該機能の
仕様記述を作成する。利用者が仕様記述を作成し終え、
保存命令を出すと、エディタ制御手段100は、エディ
タによって作成された仕様記述に今回の機能名を付け
て、記憶部M3−1〜M3−mの何れかに格納する(ス
テップ6−5)。そして、ステップ6−1に戻り、機能
一覧情報111中の次の機能名に対して同様の処理を行
う。機能一覧情報111中の全ての機能名について処理
を終えると(ステップ6−2でYES)、エディタ制御
手段100は処理を終える。この時点で、各機能毎の仕
様記述が記憶部M3−1〜M3−mに記憶されているこ
とになる。その後、制御は個別コード生成手段104へ
と移る。
First, the editor control means 100 extracts a function name for which a specification description has not been created from the function list information 111 (step 6-1 in FIG. 6). Next, the extracted function name is passed to the specification format determining means 101 to obtain a specification format to be returned (step 6-3). Here, the specification format determining means 101
Is the function name passed from the editor control means 100 in FIG.
Search the function / specification format correspondence table 110 as shown in
The specification format corresponding to the function name is set in the editor control means 10.
Return to 0. The editor control means 100 selects and starts an editor of the specification format determined by the specification format determination means 101 from the plurality of editors 102-1 to 102-n (step 6-4). Thereby, the screen of the editor is displayed on the display device 2. At this time, the editor control means 100 displays the current function name in a corner of the screen of the display device 2 or the like, and instructs the user to describe the specification of the function using the editor started this time. The user creates a specification description of the function by inputting various data from the input device 3 to the editor screen displayed on the screen. When the user has created the specification description,
When the save command is issued, the editor control means 100 attaches the current function name to the specification description created by the editor and stores it in any of the storage units M3-1 to M3-m (step 6-5). Then, the process returns to step 6-1 to perform the same processing for the next function name in the function list information 111. When the processing has been completed for all the function names in the function list information 111 (YES in step 6-2), the editor control means 100 ends the processing. At this point, the specification description for each function is stored in the storage units M3-1 to M3-m. Thereafter, the control moves to the individual code generation means 104.

【0034】個別コード生成手段104は、記憶部M3
−1〜M3−mに記憶された各仕様記述と記憶部M4に
記憶された自動生成部品114−1〜114−xとを用
いて、各機能毎の個別コードを生成する。その際の個別
コード生成手段104の処理の流れを図7に示す。
The individual code generation means 104 includes a storage unit M3
Individual codes for each function are generated using the specification descriptions stored in -1 to M3-m and the automatically generated components 114-1 to 114-x stored in the storage unit M4. FIG. 7 shows the flow of processing of the individual code generation means 104 at that time.

【0035】まず個別コード生成手段104は、機能一
覧情報111から個別コード未生成の機能名を取り出す
(図7のステップ7−1)。次に、取り出した機能名を
自動生成部品選択手段103に渡し、返却される自動生
成部品を得る(ステップ7−3)。ここで自動生成部品
選択手段103は、個別コード生成手段104から渡さ
れた機能名で記憶部M4を検索し、その機能名に対応す
る自動生成部品を個別コード生成手段104に返却す
る。また、個別コード生成手段104は、ステップ7−
1で取り出した機能名の付いた仕様記述を記憶部M3−
1〜M3−mから取り出す(ステップ7−4)。そし
て、個別コード生成手段104は、当該仕様記述を当該
自動生成部品に入力して起動する(ステップ7−5)。
これにより、当該機能に対応する個別コードが生成され
る。次に個別コード生成手段104は、生成された個別
コードに機能名を付けて記憶部M5−1〜M5−mの何
れかに格納する(ステップ7−6)。そして、ステップ
7−1に戻り、機能一覧情報111中の次の機能名に対
して同様の処理を行う。機能一覧情報111中の全ての
機能名について処理を終えると(ステップ7−2でYE
S)、個別コード生成手段104は処理を終える。この
時点で、各機能毎の個別コードが記憶部M5−1〜M5
−mに記憶されていることになる。その後、制御は個別
コード結合手段105へと移る。
First, the individual code generation means 104 extracts a function name for which an individual code has not been generated from the function list information 111 (step 7-1 in FIG. 7). Next, the extracted function name is passed to the automatically generated component selection means 103 to obtain a returned automatically generated component (step 7-3). Here, the automatically generated component selection unit 103 searches the storage unit M4 with the function name passed from the individual code generation unit 104, and returns the automatically generated component corresponding to the function name to the individual code generation unit 104. Also, the individual code generation means 104 performs step 7-
The specification description with the function name extracted in step 1 is stored in the storage unit M3-
1 to M3-m (step 7-4). Then, the individual code generation unit 104 inputs the specification description to the automatically generated component and starts up (Step 7-5).
Thereby, an individual code corresponding to the function is generated. Next, the individual code generation unit 104 assigns a function name to the generated individual code and stores it in any of the storage units M5-1 to M5-m (step 7-6). Then, the process returns to step 7-1 to perform the same processing for the next function name in the function list information 111. When the processing is completed for all the function names in the function list information 111 (YE in step 7-2)
S), the individual code generation means 104 ends the processing. At this point, the individual codes for each function are stored in the storage units M5-1 to M5.
−m. Thereafter, control is transferred to the individual code combining means 105.

【0036】個別コード結合手段105は、記憶部M5
−1〜M5−mに保存されている個別コードを結合し、
ソースコード41として補助記憶装置4に出力する。そ
の際の個別コード結合手段105の処理の流れを図8に
示す。
The individual code combining means 105 includes a storage unit M5
-1 to M5-m by combining the individual codes stored therein,
It is output to the auxiliary storage device 4 as a source code 41. FIG. 8 shows the flow of processing of the individual code combining means 105 at that time.

【0037】個別コード結合手段105は、図5に示し
たような状態遷移表形式の機能関連情報112を解析
し、結合部分を生成する(ステップ8−1)。結合部分
とは、各機能に対応する個別コードを呼び出すためのコ
ードとして、例えば図5の状態遷移に対応する分岐処理
として実現される。次に個別コード結合手段105は、
この結合部分と個別コードを結合することで(ステップ
8−2)、最終的なソースコードを生成する。
The individual code combining means 105 analyzes the function-related information 112 in the form of a state transition table as shown in FIG. 5, and generates a combined part (step 8-1). The connection portion is realized as a code for calling an individual code corresponding to each function, for example, as a branch process corresponding to the state transition in FIG. Next, the individual code combining means 105
The final source code is generated by combining the combined portion with the individual code (step 8-2).

【0038】以上の実施形態では、エディタ制御手段1
00によって仕様形式決定手段101で決定された仕様
形式に対応するエディタを自動的に起動したが、エディ
タ制御手段100によって、仕様形式決定手段101で
決定された仕様形式に対応するエディタを起動するよう
促すメッセージを表示装置2の画面に表示して利用者に
提示し、利用者自身にエディタを起動させるようにして
も良い。
In the above embodiment, the editor control means 1
00, the editor corresponding to the specification format determined by the specification format determining means 101 is automatically started. However, the editor control means 100 starts the editor corresponding to the specification format determined by the specification format determining means 101. The prompting message may be displayed on the screen of the display device 2 and presented to the user, and the user may activate the editor.

【0039】[0039]

【発明の効果】以上説明した本発明のプログラム自動生
成装置によれば、以下のような効果が得られる。
According to the automatic program generation device of the present invention described above, the following effects can be obtained.

【0040】各機能毎の適切な仕様形式を知らない利用
者であっても、最初から適切な仕様形式で仕様を記述す
ることが可能である。その理由は、利用者が自動生成し
ようとしているプログラムが持つ機能毎に最適な仕様形
式を装置自体が決定し、この決定した仕様形式で利用者
に仕様を記述させるからである。
Even a user who does not know an appropriate specification format for each function can describe the specification in an appropriate specification format from the beginning. The reason is that the device itself determines the optimum specification format for each function of the program that the user intends to automatically generate, and causes the user to describe the specification in the determined specification format.

【0041】自動生成されたプログラムをその仕様記述
と共に管理する場合、管理が容易になる。その理由は、
自動生成された複数のプログラムが同じ機能を含む場
合、その機能の仕様記述の形式がその作成者によらずに
統一されるからである。
When the automatically generated program is managed together with its specification description, the management becomes easy. The reason is,
This is because when a plurality of automatically generated programs include the same function, the format of the specification description of the function is unified regardless of the creator.

【0042】仕様形式毎のエディタを備え、エディタ制
御手段が仕様形式決定手段で決定された仕様形式に対応
するエディタを自動的に起動する構成にあっては、利用
者の負担を軽減できると共に、誤った仕様形式で仕様を
記述してしまうミスを防止することができる。
In a configuration in which an editor for each specification format is provided and the editor control means automatically starts the editor corresponding to the specification format determined by the specification format determination means, the burden on the user can be reduced and It is possible to prevent a mistake in describing a specification in an incorrect specification format.

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

【図1】本発明のプログラム自動生成装置の一例を示す
ブロック図である。
FIG. 1 is a block diagram illustrating an example of an automatic program generation device according to the present invention.

【図2】機能・仕様形式対応表の内容例を示す図であ
る。
FIG. 2 is a diagram showing an example of the contents of a function / specification format correspondence table.

【図3】利用者が機能一覧情報と機能関連情報を作成す
る際の処理手順を示す流れ図である。
FIG. 3 is a flowchart showing a processing procedure when a user creates function list information and function related information.

【図4】作成された機能一覧情報の例を示す図である。FIG. 4 is a diagram showing an example of created function list information.

【図5】作成された状態遷移表(機能関連情報)の例を
示す図である。
FIG. 5 is a diagram illustrating an example of a created state transition table (function-related information).

【図6】エディタ制御手段の処理例を示す流れ図であ
る。
FIG. 6 is a flowchart showing a processing example of an editor control means.

【図7】個別コード生成手段の処理例を示す流れ図であ
る。
FIG. 7 is a flowchart illustrating a processing example of an individual code generation unit.

【図8】個別コード結合手段の処理例を示す流れ図であ
る。
FIG. 8 is a flowchart showing a processing example of an individual code combining unit.

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

1…処理装置1 2…表示装置 3…入力装置 4…補助記憶装置 100…エディタ制御手段 101…仕様形式決定手段 102−1〜102−n…エディタ 103…自動生成部品選択手段 104…個別コード生成手段 105…個別コード結合手段 110…機能・仕様形式対応表 111…機能一覧情報 112…機能関連情報 113−1〜113−m…各機能毎の仕様記述 114−1〜114−x…各機能毎の自動生成部品 115−1〜115−m…各機能毎の個別コード M0,M1,M2,M3−1〜M3−m、M4,M5−
1〜M5−m…記憶部
DESCRIPTION OF SYMBOLS 1 ... Processing apparatus 1 2 ... Display apparatus 3 ... Input apparatus 4 ... Auxiliary storage apparatus 100 ... Editor control means 101 ... Specification format determination means 102-1 to 102-n ... Editor 103 ... Automatic generation component selection means 104 ... Individual code generation Means 105: Individual code combining means 110: Function / specification form correspondence table 111: Function list information 112: Function related information 113-1 to 113-m: Specification description for each function 114-1 to 114-x: For each function Automatically generated parts 115-1 to 115-m... Individual codes for each function M0, M1, M2, M3-1 to M3-m, M4, M5-
1 to M5-m ... storage unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 所定の機能を実現する個別コードを所定
形式の仕様記述から自動生成する自動生成部品を複数備
え、利用者が作成した各機能毎の仕様記述とその機能に
対応する前記自動生成部品とから各機能毎の個別コード
を生成し、該生成した各機能毎の個別コードを結合する
ことによりプログラムを生成するプログラム自動生成装
置において、 機能と仕様形式との対応関係を設定してある機能・仕様
形式対応表と、 自動生成しようとするプログラムが持つべき機能として
利用者が指定した各機能毎に前記機能・仕様形式対応表
を参照し、その機能の仕様を記述する仕様形式を決定す
る仕様形式決定手段と、 自動生成しようとするプログラムが持つべき機能として
利用者が指定した各機能毎に、前記仕様形式決定手段で
決定された仕様形式で利用者に仕様を記述させるエディ
タ制御手段とを備えることを特徴とするプログラム自動
生成装置。
1. A plurality of automatically generated parts for automatically generating individual codes for realizing a predetermined function from a specification description in a predetermined format, wherein a specification description for each function created by a user and the automatic generation corresponding to the function are provided. In a program automatic generation device that generates an individual code for each function from a component and combines the generated individual code for each function to generate a program, the correspondence between the function and the specification format is set. Refers to the function / specification format correspondence table and the function / specification format correspondence table for each function specified by the user as the function that the program to be automatically generated should have, and determines the specification format that describes the specifications of that function Specification format determining means to perform, and a specification format determined by the specification format determining means for each function specified by a user as a function to be possessed by a program to be automatically generated. And an editor control means for allowing a user to describe specifications in the automatic program generation device.
【請求項2】 仕様形式毎のエディタを備え、前記エデ
ィタ制御手段は、前記仕様形式決定手段で決定された仕
様形式に対応するエディタを自動的に起動する構成を有
することを特徴とする請求項1記載のプログラム自動生
成装置。
2. An editor for each specification format, wherein said editor control means automatically starts an editor corresponding to the specification format determined by said specification format determination means. 2. The program automatic generation device according to 1.
【請求項3】 仕様形式毎のエディタを備え、前記エデ
ィタ制御手段は、前記仕様形式決定手段で決定された仕
様形式に対応するエディタを起動するよう促すメッセー
ジを利用者に提示する構成を有することを特徴とする請
求項1記載のプログラム自動生成装置。
3. An editor for each specification format, wherein the editor control means is configured to present to the user a message prompting the user to start an editor corresponding to the specification format determined by the specification format determination means. The automatic program generation device according to claim 1, wherein:
【請求項4】 所定の機能を実現する個別コードを所定
形式の仕様記述から自動生成する自動生成部品を複数備
え、利用者が作成した各機能毎の仕様記述とその機能に
対応する前記自動生成部品とから各機能毎の個別コード
を生成し、該生成した各機能毎の個別コードを結合する
ことによりプログラムを生成するプログラム自動生成装
置を構成するコンピュータを、 機能と仕様形式との対応関係を設定してある機能・仕様
形式対応表を保持する記憶部、 自動生成しようとするプログラムが持つべき機能として
利用者が指定した各機能毎に前記機能・仕様形式対応表
を参照し、その機能の仕様を記述する仕様形式を決定す
る仕様形式決定手段、 自動生成しようとするプログラムが持つべき機能として
利用者が指定した各機能毎に、前記仕様形式決定手段で
決定された仕様形式で利用者に仕様を記述させるエディ
タ制御手段、 として機能させるプログラムを記録した機械読み取り可
能な記録媒体。
4. A plurality of automatically generated components for automatically generating an individual code for realizing a predetermined function from a specification description in a predetermined format, wherein the specification description for each function created by a user and the automatic generation corresponding to the function are provided. Generates an individual code for each function from the parts and combines the generated individual code for each function with a computer that constitutes an automatic program generation device that generates a program. A storage unit that holds the set function / specification format correspondence table, refers to the function / specification format correspondence table for each function specified by the user as a function that the program to be automatically generated should have, and A specification format determining means for determining a specification format for describing the specification, the specification format for each function specified by a user as a function to be possessed by a program to be automatically generated; An editor control means for allowing a user to describe a specification in a specification format determined by the determination means;
JP23010098A 1998-07-31 1998-07-31 Automatic program generation device and machine-readable recording medium recording program Expired - Fee Related JP3379440B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23010098A JP3379440B2 (en) 1998-07-31 1998-07-31 Automatic program generation device and machine-readable recording medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23010098A JP3379440B2 (en) 1998-07-31 1998-07-31 Automatic program generation device and machine-readable recording medium recording program

Publications (2)

Publication Number Publication Date
JP2000047859A true JP2000047859A (en) 2000-02-18
JP3379440B2 JP3379440B2 (en) 2003-02-24

Family

ID=16902563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23010098A Expired - Fee Related JP3379440B2 (en) 1998-07-31 1998-07-31 Automatic program generation device and machine-readable recording medium recording program

Country Status (1)

Country Link
JP (1) JP3379440B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014136210A1 (en) * 2013-03-05 2014-09-12 富士通株式会社 Execution-flow creation support program
JP2019061459A (en) * 2017-09-26 2019-04-18 株式会社東芝 Software creating system
CN111781849A (en) * 2013-05-17 2020-10-16 三菱电机株式会社 Energy management system, energy management controller, energy management method, and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014136210A1 (en) * 2013-03-05 2014-09-12 富士通株式会社 Execution-flow creation support program
JP5971399B2 (en) * 2013-03-05 2016-08-17 富士通株式会社 Execution flow creation support program
US9858113B2 (en) 2013-03-05 2018-01-02 Fujitsu Limited Creating execution flow by associating execution component information with task name
CN111781849A (en) * 2013-05-17 2020-10-16 三菱电机株式会社 Energy management system, energy management controller, energy management method, and recording medium
JP2019061459A (en) * 2017-09-26 2019-04-18 株式会社東芝 Software creating system

Also Published As

Publication number Publication date
JP3379440B2 (en) 2003-02-24

Similar Documents

Publication Publication Date Title
JPH0850598A (en) Electronic document retrieval system
CN110008460A (en) Information edit method, device, equipment and computer storage medium
JP2000047859A (en) Automatic program generator and mechanically readable recording medium recorded with program
US20090077502A1 (en) Creation of a help file
JPH10312451A (en) Information processing device and method, and record medium recording information processing program
JPS62232020A (en) Menu manager
JP2001014152A (en) Method and device for data processing, and storage medium
JP2003337810A (en) Merge printing method
JP2001092610A (en) Printer device, data processor, printer system, printing method and storage medium storing computer readable program
JP2004157834A (en) Print system
JP2000207175A (en) Device and method for generation of installation program
JPH11102395A (en) Operation map display device and storage medium
JP2010237986A (en) Electronic album editing device, method of controlling the same, program, and storage medium
JP4189461B2 (en) File management program, computer-readable recording medium storing file management program, file management apparatus, and file management method
JP7389367B2 (en) Exhibition support device, exhibition support system, exhibition support method, and program
JP3150323B2 (en) Document processing method and apparatus
JP2003058496A (en) Multimedia information terminal system and computer program
JPH08221265A (en) Supporting device for developing software
JPH0457153A (en) Structured document processing system
JP2003216399A (en) Image processing method, storage medium, program and device
JP2000089946A (en) Method for customizing message text and help text and recording medium storing program for executing the customizing method
JP2019159745A (en) Guide generation program, guide generation method, and server device
JP2003316542A (en) Print system, program and recording medium
JP2005339042A (en) Information processing device, system, method, and program
JPH0457151A (en) Insert processing method for structured document

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071213

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081213

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091213

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101213

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111213

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111213

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121213

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121213

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131213

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees