JPH11353164A - System and method for source program generation, and system and method for chart generation - Google Patents

System and method for source program generation, and system and method for chart generation

Info

Publication number
JPH11353164A
JPH11353164A JP10160478A JP16047898A JPH11353164A JP H11353164 A JPH11353164 A JP H11353164A JP 10160478 A JP10160478 A JP 10160478A JP 16047898 A JP16047898 A JP 16047898A JP H11353164 A JPH11353164 A JP H11353164A
Authority
JP
Japan
Prior art keywords
chart
language
source program
program
algorithm
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
JP10160478A
Other languages
Japanese (ja)
Inventor
Takashi Okayama
敬 岡山
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP10160478A priority Critical patent/JPH11353164A/en
Publication of JPH11353164A publication Critical patent/JPH11353164A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the source program generation system which generates source programs of plural kinds of program language from an algorithm chart. SOLUTION: Symbol definition dictionaries 40 wherein symbols for notating the structure of a program are defined and language definition dictionaries 50 wherein the description rules of source programs are defined are provided by program languages and chart kinds independently of a source program generation part 10 which generates a source program 200 from an algorithm chart 100 and an algorithm chart generation part 20 which generates the algorithm chart 100 from the source program 200. Consequently, plural kinds of program language can flexibly be handled and functions of a program language itself can be extended by being registered additionally to the symbol definition dictionaries 40 and language definition dictionaries 50.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、たとえばフロー
チャートやPAD(Problem Analysis
Diagrams)などのアルゴリズムチャートから
C言語やCOBOL言語などのソースプログラムを生成
するソースプログラム生成システムおよび同システムの
ソースプログラム生成方法ならびにソースプログラムか
らアルゴリズムチャートを生成するアルゴリズムチャー
ト生成システムおよび同システムのアルゴリズムチャー
ト生成方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flowchart and a PAD (Problem Analysis).
Source program generation system for generating a source program such as C language or COBOL language from an algorithm chart such as Diagrams, a source program generation method of the system, an algorithm chart generation system for generating an algorithm chart from the source program, and an algorithm chart of the system Related to generation method.

【0002】[0002]

【従来の技術】近年、コンピュータの普及は目覚しく、
この普及に伴なって、様々なシステムが開発され運用さ
れている。このような状況から、アルゴリズムを表現す
るフローチャートやPADなどのアルゴリズムチャート
から特定のプログラム言語、たとえばC言語やCOBO
L言語などで記述されたソースプログラムを生成するソ
ースプログラム生成システムや、その逆に、特定のプロ
グラム言語で記述されたソースプログラムからアルゴリ
ズムチャートを生成するアルゴリズム生成システムなど
が考え出されるに到っている。
2. Description of the Related Art In recent years, the spread of computers has been remarkable,
With the spread, various systems have been developed and operated. Under these circumstances, a specific programming language, for example, C language or COBO, can be obtained from an algorithm chart such as a flowchart expressing an algorithm or a PAD.
A source program generation system that generates a source program described in an L language or the like, and conversely, an algorithm generation system that generates an algorithm chart from a source program described in a specific program language, have come to be devised. .

【0003】ところで、このアルゴリズムチャートから
ソースプログラムを生成するソースプログラム生成シス
テムおよびソースプログラムからアルゴリズムチャート
を生成するアルゴリズム生成システム双方は、ともに予
め定められた一つのプログラム言語にしか対応していな
かった。これは、プログラム言語に依存する部分がソー
スプログラムからアルゴリズムチャートへの変換機構お
よびアルゴリズムチャートからソースプログラムへの変
換機構に含まれていること、ならびに、プログラム言語
ごとに特有の処理が必要になることから、いずれかのプ
ログラム言語用に構築された変換機構を他のプログラム
言語にそのまま適用させることができないことによる。
By the way, both a source program generation system for generating a source program from the algorithm chart and an algorithm generation system for generating an algorithm chart from the source program both correspond to only one predetermined programming language. This means that the parts that depend on the programming language are included in the conversion mechanism from the source program to the algorithm chart and the conversion mechanism from the algorithm chart to the source program, and that processing that is unique to each programming language is required Therefore, the conversion mechanism constructed for one of the programming languages cannot be directly applied to another programming language.

【0004】そのため、従来においては、アルゴリズム
チャートからのソースプログラムの生成や、ソースプロ
グラムからのアルゴリズムチャートの生成といった同じ
動作を行なうにも関わらず、プログラム言語ごとに異な
るシステムを用意しなければならないといった問題があ
った。
[0004] For this reason, conventionally, it is necessary to prepare a different system for each programming language despite performing the same operation such as generation of a source program from an algorithm chart and generation of an algorithm chart from a source program. There was a problem.

【0005】[0005]

【発明が解決しようとする課題】従来のアルゴリズムチ
ャートからソースプログラムを生成するソースプログラ
ム生成システム、および、ソースプログラムからアルゴ
リズムチャートを生成するアルゴリズム生成システム双
方の欠点は、プログラム言語に依存する部分が変換機構
に含まれる、すなわち、変換機構内に組み込まれる点に
ある。
The drawbacks of both the conventional source program generation system for generating a source program from an algorithm chart and the conventional algorithm generation system for generating an algorithm chart from a source program are that a program language-dependent part is converted. It is included in the mechanism, that is, incorporated in the conversion mechanism.

【0006】前述したように、プログラム言語に依存す
る部分が変換機構に含まれると、プログラム言語ごとに
異なるシステムを用意しなければならず、また、たとえ
ばプログラム言語自体に新たな機能が追加されたときな
どは、変換機構そのものに修正を施さなければならなか
った。
As described above, if a part that depends on the programming language is included in the conversion mechanism, a different system must be prepared for each programming language. For example, a new function is added to the programming language itself. At times, the conversion mechanism itself had to be modified.

【0007】この発明はこのような実情に鑑みてなされ
たものであり、プログラム言語に依存する部分をカスタ
マイズ可能な定義辞書として変換機構から独立させるこ
とにより、複数種のプログラム言語に対応したソースプ
ログラム生成を可能とするソースプログラム生成システ
ムおよびソースプログラム生成方法、ならびに、複数種
のプログラム言語に対応したアルゴリズムチャート生成
を可能とするアルゴリズムチャート生成システムおよび
アルゴリズムチャート生成方法を提供することを目的と
する。
[0007] The present invention has been made in view of such circumstances, and by making a portion dependent on a programming language independent of a conversion mechanism as a customizable definition dictionary, a source program compatible with a plurality of types of programming languages. It is an object of the present invention to provide a source program generation system and a source program generation method capable of generation, and an algorithm chart generation system and an algorithm chart generation method capable of generating an algorithm chart corresponding to a plurality of types of programming languages.

【0008】[0008]

【課題を解決するための手段】この発明は、チャートエ
ディタにより作成されたアルゴリズムチャートからソー
スプログラムを生成するソースプログラム生成システム
において、ソースプログラムの記述規則を定義したプロ
グラム言語別の複数の言語定義辞書と、プログラムの構
造を表記するためのシンボルを定義したチャート種別の
複数のシンボル定義辞書と、前記言語定義辞書が設けら
れた複数のプログラム言語の中からいずれかのプログラ
ム言語を選択する言語選択手段と、前記アルゴリズムチ
ャートを入力する入力手段と、前記入力手段により入力
されたアルゴリズムチャートのチャート種判定を含む表
記内容の解析を前記シンボル定義辞書に基づいて実行す
る解析手段と、前記解析手段の解析結果に合致するソー
スプログラムの記述規則を前記言語選択手段により選択
されたプログラム言語に対応する言語定義辞書から取り
出してソースプログラムを生成する生成手段と、前記生
成手段により生成されたソースプログラムを出力する出
力手段とを具備することを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to a source program generation system for generating a source program from an algorithm chart created by a chart editor. A plurality of symbol definition dictionaries of a chart type defining symbols for expressing the structure of a program; and a language selecting means for selecting any one of a plurality of program languages provided with the language definition dictionary Input means for inputting the algorithm chart; analysis means for executing notation content analysis including chart type determination of the algorithm chart input by the input means based on the symbol definition dictionary; and analysis of the analysis means. Writing source programs that match the results Generating means for extracting a rule from a language definition dictionary corresponding to the program language selected by the language selecting means to generate a source program; and outputting means for outputting the source program generated by the generating means. Features.

【0009】また、この発明は、ソースプログラムから
チャートエディタが読み取り可能なアルゴリズムチャー
トを生成するアルゴリズムチャート生成システムにおい
て、ソースプログラムの記述規則を定義したプログラム
言語別の複数の言語定義辞書と、プログラムの構造を表
記するためのシンボルを定義したチャート種別の複数の
シンボル定義辞書と、前記シンボル定義辞書が設けられ
た複数のチャート種の中からいずれかのチャート種を選
択するチャート種選択手段と、前記ソースプログラムを
入力する入力手段と、前記入力手段により入力されたソ
ースプログラムのプログラム言語判定を含む記述内容の
解析を前記言語定義辞書に基づいて実行する解析手段
と、前記解析手段の解析結果に合致するシンボルを前記
チャート選択手段により選択されたチャート種に対応す
る言語定義辞書から取り出してアルゴリズムチャートを
生成する生成手段と、前記生成手段により生成されたア
ルゴリズムチャートを出力する出力手段とを具備するこ
とを特徴とする。
The present invention also provides an algorithm chart generation system for generating an algorithm chart readable by a chart editor from a source program, comprising: a plurality of language definition dictionaries for each programming language defining a description rule of the source program; A plurality of symbol definition dictionaries of a chart type defining a symbol for representing a structure, a chart type selecting means for selecting any one of a plurality of chart types provided with the symbol definition dictionary, Input means for inputting a source program, analysis means for executing the analysis of the description content including the program language determination of the source program input by the input means based on the language definition dictionary, and matching the analysis result of the analysis means To the chart selection means Generating means for generating an algorithm chart removed from the corresponding language definition dictionary selected chart type Ri, characterized by comprising an output means for outputting an algorithm chart generated by the generation means.

【0010】この発明においては、ソースプログラムの
記述規則を定義した言語定義辞書を変換機構とは独立さ
せてプログラム言語ごとに複数設けたことにより、複数
種のプログラム言語に柔軟に対応することができるとと
もに、プログラム言語自体の機能拡張などにも言語定義
辞書への追加登録で対処できることになる。
In the present invention, a plurality of language definition dictionaries defining the description rules of the source program are provided for each program language independently of the conversion mechanism, so that it is possible to flexibly cope with a plurality of types of program languages. At the same time, it is possible to cope with a function extension of the programming language itself by additionally registering it in the language definition dictionary.

【0011】また、プログラムの構造を表記するための
シンボルを定義したシンボル定義辞書を変換機構とは独
立させてチャート種ごとに複数設けたことにより、複数
種のチャート種に柔軟に対応することができるととも
に、新たなチャート種のサポートもシンボル定義辞書の
作成で対処できることになる。
Further, by providing a plurality of symbol definition dictionaries for defining symbols for expressing the structure of the program for each chart type independently of the conversion mechanism, it is possible to flexibly cope with a plurality of chart types. Yes, and support for new chart types can be addressed by creating a symbol definition dictionary.

【0012】[0012]

【発明の実施の形態】以下、図面を参照してこの発明の
実施形態を説明する。図1は、この実施形態に係るコン
ピュータシステムの機能ブロックを示す図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing functional blocks of a computer system according to this embodiment.

【0013】図1に示すように、この実施形態のコンピ
ュータシステムは、ソースプログラム生成部10、アル
ゴリズムチャート生成部20、定義辞書管理部30、シ
ンボル定義辞書40および言語定義辞書50を備えてい
る。なお、ソースプログラム生成部10、アルゴリズム
チャート生成部20および定義辞書管理部30は、この
コンピュータシステムに装備されるCPUによって実行
制御されるプログラムとして構成されるものであり、ま
た、シンボル定義辞書40および言語定義辞書50は、
このコンピュータシステムに装備される磁気ディスクな
どのメモリデバイス上に構築されるものである。
As shown in FIG. 1, the computer system of this embodiment includes a source program generator 10, an algorithm chart generator 20, a definition dictionary management unit 30, a symbol definition dictionary 40, and a language definition dictionary 50. The source program generation unit 10, the algorithm chart generation unit 20, and the definition dictionary management unit 30 are configured as programs executed and controlled by a CPU provided in the computer system. The language definition dictionary 50 is
It is built on a memory device such as a magnetic disk provided in this computer system.

【0014】ソースプログラム生成部10は、チャート
エディタにより作成された、たとえばフローチャートや
PADなどの電子化されたアルゴリズムチャート100
からC言語プログラム、Java言語プログラムまたは
COBOL言語プログラムなどのソースプログラム20
0を生成するところであり、入力部11、言語選択部1
2、解析部13、生成部14および出力部15を有して
なる。
The source program generation unit 10 generates an algorithm chart 100, such as a flowchart or a PAD, which has been digitized by a chart editor.
To a source program 20 such as a C language program, a Java language program or a COBOL language program
0, the input unit 11, the language selection unit 1
2, an analysis unit 13, a generation unit 14, and an output unit 15.

【0015】また、アルゴリズムチャート生成部20
は、C言語プログラム、Java言語プログラムまたは
COBOL言語プログラムなどのソースプログラム20
0からフローチャートやPADなどのチャートエディタ
が読み取り可能な電子化されたアルゴリズムチャート1
00を生成するところであり、入力部21、チャート選
択部22、解析部23、生成部24および出力部25を
有してなる。
The algorithm chart generator 20
Is a source program 20 such as a C language program, a Java language program, or a COBOL language program.
Digitized algorithm chart 1 that can be read by a chart editor such as a flowchart or PAD from 0
00, which includes an input unit 21, a chart selection unit 22, an analysis unit 23, a generation unit 24, and an output unit 25.

【0016】定義辞書管理部30は、シンボル定義辞書
40および言語辞書50双方の整合性を確保しながらこ
れらに対する各種情報の登録などを行なうところであ
る。また、シンボル定義辞書40は、チャート種ごとに
設けられ、たとえば図2に示すように、チャート種それ
ぞれに対応するシンボル定義を格納するためのファイル
である。なお、図2では、プログラムの構造を表記する
ためのシンボルのチャート種による違いを示すために、
その一例として、双岐選択の(a)フローチャートによ
る表記法と(b)PADによる表記法との具体的なイメ
ージが記されているが、実際のシンボル定義としては、
これらのイメージをチャートエディタが展開するために
必要となる識別コードなどが格納される。そして、言語
定義辞書50は、図3に示したように、各種プログラム
言語に対応する記述規則を格納するためのファイルであ
る。
The definition dictionary management section 30 registers various kinds of information for the symbol definition dictionary 40 and the language dictionary 50 while ensuring the consistency of both. The symbol definition dictionary 40 is provided for each chart type, and is a file for storing symbol definitions corresponding to each chart type, for example, as shown in FIG. In FIG. 2, in order to show the difference between the chart types of symbols for expressing the structure of the program,
As an example, a specific image of notation by (a) flowchart and (b) notation by PAD of bifurcation selection is described, but as an actual symbol definition,
An identification code required for the chart editor to develop these images is stored. The language definition dictionary 50 is a file for storing description rules corresponding to various program languages, as shown in FIG.

【0017】なお、これらシンボル定義辞書40および
言語定義辞書50は、従来のソースプログラム生成シス
テムやアルゴリズムチャート生成システムで用いられる
ものをそのまま適用して構わない。
As the symbol definition dictionary 40 and the language definition dictionary 50, those used in the conventional source program generation system and algorithm chart generation system may be applied as they are.

【0018】ここで、図4を参照して、この実施形態の
ソースプログラム生成部10の動作手順を説明する。こ
のソースプログラム生成部10は、まず、入力部11
が、処理対象となるアルゴリズムチャート100を読み
込む(ステップA1)。
Here, the operation procedure of the source program generator 10 of this embodiment will be described with reference to FIG. The source program generation unit 10 first includes an input unit 11
Reads the algorithm chart 100 to be processed (step A1).

【0019】処理対象となるアルゴリズムチャート10
0が読み込まれると、次に、言語選択部12が、生成す
るソースプログラム200のプログラム言語を選択する
(ステップA2)。この選択は、たとえばユーザに対し
ていずれのプログラム言語を選択するかを問い合わせ、
この問い合わせに応答して行なわれる選択指示を受け付
けるなどによって実施される。
Algorithm chart 10 to be processed
When 0 is read, the language selection unit 12 next selects a program language of the source program 200 to be generated (step A2). This choice may involve, for example, asking the user which programming language to select,
This is performed by, for example, receiving a selection instruction performed in response to the inquiry.

【0020】その後、解析部13が、入力部11によっ
て入力されたアルゴリズムチャート100のチャート種
判定を含む表記内容の解析をシンボル定義辞書40に基
づいて実行するとともに(ステップA3)、生成部14
が、この解析部13の解析結果に合致するソースプログ
ラムの記述規則を言語選択部12によって選択されたプ
ログラム言語に対応する言語辞書50から取り出して、
ソースプログラム200を生成する(ステップA4)。
この解析部13および生成部14の処理は、入力部11
によって入力されたアルゴリズムチャート100のチャ
ート記述分繰り返される。
After that, the analysis unit 13 analyzes the notation contents including the chart type judgment of the algorithm chart 100 input by the input unit 11 based on the symbol definition dictionary 40 (step A3), and the generation unit 14
Extracts the description rule of the source program that matches the analysis result of the analysis unit 13 from the language dictionary 50 corresponding to the program language selected by the language selection unit 12,
A source program 200 is generated (Step A4).
The processing of the analysis unit 13 and the generation unit 14 is performed by the input unit 11
Is repeated by the amount of the chart description of the algorithm chart 100 input.

【0021】そして、チャート記述分の解析部13およ
び生成部14の処理がすべて完了すると、出力部15
が、生成部14によって生成されたソースプログラム2
00を出力する(ステップA5)。
When the processes of the analysis unit 13 and the generation unit 14 for the chart description are all completed, the output unit 15
Is the source program 2 generated by the generation unit 14.
00 is output (step A5).

【0022】ここで、このソースプログラム生成部10
では、入力部11により読み込まれたアルゴリズムチャ
ート100から別のプログラム言語のソースプログラム
200を生成するかどうか問い合わせ(ステップA
6)、別のプログラム言語のソースプログラム200を
生成する場合には(ステップA6のYES)、言語選択
部12によるプログラム言語選択(ステップA2)から
の処理を繰り返す。
Here, the source program generator 10
Then, it is inquired whether to generate a source program 200 of another programming language from the algorithm chart 100 read by the input unit 11 (step A).
6) If the source program 200 of another programming language is to be generated (YES in step A6), the processing from the program language selection (step A2) by the language selecting unit 12 is repeated.

【0023】一方、別のプログラム言語のソースプログ
ラム200を生成しない場合には(ステップA6のN
O)、さらに、別のアルゴリズムチャート100からソ
ースプログラム200を生成するかどうか問い合わせ
(ステップA7)、別のアルゴリズムチャート100か
らソースプログラム200を生成する場合には(ステッ
プA7のYES)、入力部11による処理対象となるア
ルゴリズムチャート100の読み込み(ステップA1)
からの処理を繰り返す。そして、別のアルゴリズムチャ
ート100からソースプログラム200を生成しない場
合には(ステップA7のNO)、この処理を終了する。
On the other hand, when the source program 200 of another programming language is not generated (N in step A6)
O) Further, an inquiry is made as to whether or not to generate the source program 200 from another algorithm chart 100 (step A7). If the source program 200 is to be generated from another algorithm chart 100 (YES in step A7), the input unit 11 Of the algorithm chart 100 to be processed by the program (Step A1)
Is repeated. Then, when the source program 200 is not generated from another algorithm chart 100 (NO in step A7), the process ends.

【0024】次に、図5を参照して、この実施形態のア
ルゴリズムチャート生成部20の動作手順を説明する。
このアルゴリズムチャート生成部21は、まず、入力部
21が、処理対象となるソースプログラム200を読み
込む(ステップB1)。
Next, the operation procedure of the algorithm chart generator 20 of this embodiment will be described with reference to FIG.
In the algorithm chart generating unit 21, first, the input unit 21 reads the source program 200 to be processed (step B1).

【0025】処理対象となるソースプログラム200が
読み込まれると、次に、チャート選択部22が、生成す
るアルゴリズムチャート100のチャート種を選択する
(ステップB2)。この選択は、たとえばユーザに対し
ていずれのプログラム言語を選択するかを問い合わせ、
この問い合わせに応答して行なわれる選択指示を受け付
けるなどによって実施される。
When the source program 200 to be processed is read, the chart selecting section 22 selects a chart type of the algorithm chart 100 to be generated (step B2). This choice may involve, for example, asking the user which programming language to select,
This is performed by, for example, receiving a selection instruction performed in response to the inquiry.

【0026】その後、解析部23が、入力部21によっ
て入力されたソースプログラム200のプログラム言語
判定を含む記述内容の解析を言語定義辞書50に基づい
て実行するとともに(ステップB3)、生成部24が、
この解析部23の解析結果に合致するシンボルをチャー
ト選択部22によって選択されたチャート種に対応する
シンボル辞書40から取り出して、アルゴリズムチャー
ト100を生成する(ステップB4)。この解析部23
および生成部24の処理は、入力部21によって入力さ
れたソースプログラム200のプログラム記述分繰り返
される。
After that, the analysis unit 23 analyzes the description content including the program language judgment of the source program 200 input by the input unit 21 based on the language definition dictionary 50 (step B3), and the generation unit 24 ,
A symbol that matches the analysis result of the analysis unit 23 is extracted from the symbol dictionary 40 corresponding to the chart type selected by the chart selection unit 22, and an algorithm chart 100 is generated (step B4). This analysis unit 23
The process of the generation unit 24 is repeated for the program description of the source program 200 input by the input unit 21.

【0027】そして、プログラム記述分の解析部23お
よび生成部24の処理がすべて完了すると、出力部25
が、生成部24によって生成されたアルゴリズムチャー
ト100を出力する(ステップB5)。
When the processes of the analysis unit 23 and the generation unit 24 for the program description are all completed, the output unit 25
Outputs the algorithm chart 100 generated by the generation unit 24 (step B5).

【0028】ここで、このアルゴリズムチャート生成部
20では、入力部21により読み込まれたソースプログ
ラム200から別のチャート種のアルゴリズムチャート
100を生成するかどうか問い合わせ(ステップB
6)、別のチャート種のアルゴリズムチャート100を
生成する場合には(ステップB6のYES)、チャート
選択部22によるチャート種選択(ステップB2)から
の処理を繰り返す。
Here, the algorithm chart generation section 20 inquires whether to generate an algorithm chart 100 of another chart type from the source program 200 read by the input section 21 (step B).
6) When the algorithm chart 100 of another chart type is generated (YES in step B6), the processing from the chart type selection (step B2) by the chart selecting unit 22 is repeated.

【0029】一方、別のチャート種のアルゴリズムチャ
ート100を生成しない場合には(ステップB6のN
O)、さらに、別のソースプログラム200からアルゴ
リズムチャート100を生成するかどうか問い合わせ
(ステップB7)、別のソースプログラム200からア
ルゴリズムチャート100を生成する場合には(ステッ
プB7のYES)、入力部11による処理対象となるソ
ースプログラム200の読み込み(ステップB1)から
の処理を繰り返す。そして、別のソースプログラム20
0からアルゴリズムチャート100を生成しない場合に
は(ステップB7のNO)、この処理を終了する。
On the other hand, when the algorithm chart 100 of another chart type is not generated (N in step B6)
O) Further, an inquiry is made as to whether or not to generate the algorithm chart 100 from another source program 200 (step B7). If the algorithm chart 100 is to be generated from another source program 200 (YES in step B7), the input unit 11 Is repeated from the reading of the source program 200 to be processed (step B1). And another source program 20
If the algorithm chart 100 is not generated from 0 (NO in step B7), the process ends.

【0030】このように、この実施形態のコンピュータ
システムにおいては、言語定義辞書50をソースプログ
ラム生成部10およびアルゴリズムチャート生成部20
とは独立させてプログラム言語ごとに複数設けたことに
より、複数種のプログラム言語に柔軟に対応することが
できるとともに、プログラム言語の機能拡張などにも言
語定義辞書への追加登録で対処できることになる。
As described above, in the computer system of this embodiment, the language definition dictionary 50 is stored in the source program generator 10 and the algorithm chart generator 20.
Independently provided for each programming language, it is possible to flexibly support multiple types of programming languages, and also to expand the function of the programming language by adding it to the language definition dictionary .

【0031】また、シンボル定義辞書40をソースプロ
グラム生成部10およびアルゴリズムチャート生成部2
0とは独立させてチャート種ごとに複数設けたことによ
り、複数種のチャート種に柔軟に対応することができる
とともに、新たなチャート種のサポートもシンボル定義
辞書の作成で対処できることになる。
The symbol definition dictionary 40 is stored in the source program generator 10 and the algorithm chart generator 2.
By providing a plurality of chart types independently of 0, it is possible to flexibly cope with a plurality of chart types and to support a new chart type by creating a symbol definition dictionary.

【0032】[0032]

【発明の効果】以上詳述したように、この発明によれ
ば、ソースプログラムの記述規則を定義した言語定義辞
書を変換機構とは独立させてプログラム言語ごとに複数
設けたことにより、複数種のプログラム言語に柔軟に対
応することができるとともに、プログラム言語の機能拡
張などにも言語定義辞書への追加登録で対処できること
になる。
As described above in detail, according to the present invention, a plurality of language definition dictionaries, each defining a description rule of a source program, are provided for each programming language independently of the conversion mechanism. In addition to being able to flexibly cope with the programming language, it is also possible to cope with a function extension of the programming language by additionally registering it in the language definition dictionary.

【0033】また、プログラムの構造を表記するための
シンボルを定義したシンボル定義辞書を変換機構とは独
立させてチャート種ごとに複数設けたことにより、複数
種のチャート種に柔軟に対応することができるととも
に、新たなチャート種のサポートもシンボル定義辞書の
作成で対処できることになる。
Further, by providing a plurality of symbol definition dictionaries for defining symbols for describing the structure of the program for each chart type independently of the conversion mechanism, it is possible to flexibly cope with a plurality of chart types. Yes, and support for new chart types can be addressed by creating a symbol definition dictionary.

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

【図1】この発明の実施形態に係るコンピュータシステ
ムの機能ブロックを示す図。
FIG. 1 is an exemplary view showing functional blocks of a computer system according to an embodiment of the present invention.

【図2】同実施形態のシンボル定義辞書の内容を説明す
るための図。
FIG. 2 is an exemplary view for explaining the contents of a symbol definition dictionary according to the embodiment;

【図3】同実施形態の言語定義辞書の内容を説明するた
めの図。
FIG. 3 is an exemplary view for explaining the contents of a language definition dictionary according to the embodiment;

【図4】同実施形態のソースプログラム生成部の動作手
順を説明するためのフローチャート。
FIG. 4 is an exemplary flowchart for explaining the operation procedure of the source program generation unit according to the embodiment;

【図5】同実施形態のアルゴリズムチャート生成部の動
作手順を説明するためのフローチャート。
FIG. 5 is an exemplary flowchart for explaining the operation procedure of the algorithm chart generator of the embodiment.

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

10…ソースプログラム生成部 11…入力部 12…言語選択部 13…解析部 14…生成部 15…出力部 20…アルゴリズムチャート生成部 21…入力部 22…チャート選択部 23…解析部 24…生成部 25…出力部 30…定義辞書管理部 40…シンボル定義辞書 50…言語定義辞書 100…アルゴリズムチャート 200…ソースプログラム DESCRIPTION OF SYMBOLS 10 ... Source program generation part 11 ... Input part 12 ... Language selection part 13 ... Analysis part 14 ... Generation part 15 ... Output part 20 ... Algorithm chart generation part 21 ... Input part 22 ... Chart selection part 23 ... Analysis part 24 ... Generation part 25 output unit 30 definition dictionary management unit 40 symbol definition dictionary 50 language definition dictionary 100 algorithm chart 200 source program

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 チャートエディタにより作成されたアル
ゴリズムチャートからソースプログラムを生成するソー
スプログラム生成システムにおいて、 ソースプログラムの記述規則を定義したプログラム言語
別の複数の言語定義辞書と、 プログラムの構造を表記するためのシンボルを定義した
チャート種別の複数のシンボル定義辞書と、 前記言語定義辞書が設けられた複数のプログラム言語の
中からいずれかのプログラム言語を選択する言語選択手
段と、 前記アルゴリズムチャートを入力する入力手段と、 前記入力手段により入力されたアルゴリズムチャートの
チャート種判定を含む表記内容の解析を前記シンボル定
義辞書に基づいて実行する解析手段と、 前記解析手段の解析結果に合致するソースプログラムの
記述規則を前記言語選択手段により選択されたプログラ
ム言語に対応する言語定義辞書から取り出してソースプ
ログラムを生成する生成手段と、 前記生成手段により生成されたソースプログラムを出力
する出力手段とを具備することを特徴とするソースプロ
グラム生成システム。
In a source program generation system for generating a source program from an algorithm chart created by a chart editor, a plurality of language definition dictionaries for each programming language defining a description rule of the source program, and a program structure are described. A plurality of symbol definition dictionaries of a chart type defining symbols for use, language selecting means for selecting any one of a plurality of program languages provided with the language definition dictionary, and inputting the algorithm chart Input means; analysis means for executing analysis of the notation contents including chart type determination of the algorithm chart input by the input means based on the symbol definition dictionary; description of a source program matching the analysis result of the analysis means Rules for the language selection means Generating a source program by extracting from a language definition dictionary corresponding to the program language selected by the generating unit; and outputting means for outputting the source program generated by the generating unit. system.
【請求項2】 ソースプログラムの記述規則を定義した
プログラム言語別の複数の言語定義辞書とプログラムの
構造を表記するためのシンボルを定義したチャート種別
の複数のシンボル定義辞書とを備え、チャートエディタ
により作成されたアルゴリズムチャートからソースプロ
グラムを生成するソースプログラム生成システムのソー
スプログラム生成方法において、 前記言語定義辞書が設けられた複数のプログラム言語の
中からいずれかのプログラム言語を選択するステップ
と、 前記アルゴリズムチャートを入力するステップと、 前記入力されたアルゴリズムチャートのチャート種判定
を含む表記内容の解析を前記シンボル定義辞書に基づい
て実行するステップと、 前記解析結果に合致するソースプログラムの記述規則を
前記選択されたプログラム言語に対応する言語定義辞書
から取り出してソースプログラムを生成するステップ
と、 前記生成されたソースプログラムを出力するステップと
からなることを特徴とするソースプログラム生成方法。
A plurality of language definition dictionaries for each programming language defining a description rule of a source program, and a plurality of symbol definition dictionaries of a chart type defining symbols for describing the structure of the program. In a source program generation method for a source program generation system that generates a source program from a created algorithm chart, a step of selecting any one of a plurality of program languages provided with the language definition dictionary; and the algorithm A step of inputting a chart; a step of executing a notation analysis including a chart type determination of the input algorithm chart based on the symbol definition dictionary; and selecting the description rule of a source program that matches the analysis result. Was done Steps and, a source program generating method characterized by comprising the step of outputting the source program said generated for generating the source program is taken out from the language definition dictionary corresponding to the program language.
【請求項3】 ソースプログラムからチャートエディタ
が読み取り可能なアルゴリズムチャートを生成するアル
ゴリズムチャート生成システムにおいて、 ソースプログラムの記述規則を定義したプログラム言語
別の複数の言語定義辞書と、 プログラムの構造を表記するためのシンボルを定義した
チャート種別の複数のシンボル定義辞書と、 前記シンボル定義辞書が設けられた複数のチャート種の
中からいずれかのチャート種を選択するチャート種選択
手段と、 前記ソースプログラムを入力する入力手段と、 前記入力手段により入力されたソースプログラムのプロ
グラム言語判定を含む記述内容の解析を前記言語定義辞
書に基づいて実行する解析手段と、 前記解析手段の解析結果に合致するシンボルを前記チャ
ート選択手段により選択されたチャート種に対応する言
語定義辞書から取り出してアルゴリズムチャートを生成
する生成手段と、 前記生成手段により生成されたアルゴリズムチャートを
出力する出力手段とを具備することを特徴とするアルゴ
リズムチャート生成システム。
3. An algorithm chart generation system for generating an algorithm chart readable by a chart editor from a source program, wherein a plurality of language definition dictionaries for each programming language defining a description rule of the source program and a structure of the program are described. A plurality of symbol definition dictionaries of a chart type defining symbols for use, chart type selecting means for selecting any one of a plurality of chart types provided with the symbol definition dictionary, and inputting the source program Input means for performing analysis of description content including a program language determination of a source program input by the input means based on the language definition dictionary; and a symbol matching an analysis result of the analysis means. Selected by chart selection means An algorithm chart generation system, comprising: a generation unit that generates an algorithm chart by extracting from a language definition dictionary corresponding to a chart type; and an output unit that outputs the algorithm chart generated by the generation unit.
【請求項4】 ソースプログラムの記述規則を定義した
プログラム言語別の複数の言語定義辞書とプログラムの
構造を表記するためのシンボルを定義したチャート種別
の複数のシンボル定義辞書とを備え、ソースプログラム
からチャートエディタが読み取り可能なアルゴリズムチ
ャートを生成するアルゴリズムチャート生成システムの
アルゴリズムチャート生成方法において、 前記シンボル定義辞書が設けられた複数のチャート種の
中からいずれかのチャート種を選択するステップと、 前記ソースプログラムを入力するステップと、 前記入力されたソースプログラムのプログラム言語判定
を含む記述内容の解析を前記言語定義辞書に基づいて実
行するステップと、 前記解析結果に合致するシンボルを前記選択されたチャ
ート種に対応する言語定義辞書から取り出してアルゴリ
ズムチャートを生成するステップと、 前記生成されたアルゴリズムチャートを出力するステッ
プとからなることを特徴とするアルゴリズムチャート生
成方法。
4. A system comprising a plurality of language definition dictionaries for each programming language defining a description rule of a source program and a plurality of symbol definition dictionaries of a chart type defining symbols for describing a structure of the program. In an algorithm chart generation method of an algorithm chart generation system that generates an algorithm chart readable by a chart editor, a step of selecting any chart type from a plurality of chart types provided with the symbol definition dictionary; Inputting a program; executing an analysis of description contents including a program language determination of the input source program based on the language definition dictionary; and selecting a symbol matching the analysis result with the selected chart type. Word corresponding to Steps and algorithm chart generating method characterized by comprising the step of outputting an algorithm chart the generated that generates an algorithm chart removed from the definition dictionary.
JP10160478A 1998-06-09 1998-06-09 System and method for source program generation, and system and method for chart generation Pending JPH11353164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10160478A JPH11353164A (en) 1998-06-09 1998-06-09 System and method for source program generation, and system and method for chart generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10160478A JPH11353164A (en) 1998-06-09 1998-06-09 System and method for source program generation, and system and method for chart generation

Publications (1)

Publication Number Publication Date
JPH11353164A true JPH11353164A (en) 1999-12-24

Family

ID=15715831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10160478A Pending JPH11353164A (en) 1998-06-09 1998-06-09 System and method for source program generation, and system and method for chart generation

Country Status (1)

Country Link
JP (1) JPH11353164A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005512188A (en) * 2001-12-06 2005-04-28 シリル Method and apparatus for automatic generation of geomatic applications
US7640509B2 (en) 2005-06-09 2009-12-29 Nec Electronics Corporation Program creation apparatus, program creation method and program
JP2010020539A (en) * 2008-07-10 2010-01-28 Nippon Denno Co Ltd Program development support device and program creation method
JP2013152727A (en) * 2013-02-28 2013-08-08 Nippon Denno Co Ltd Program creation method
JP2014123321A (en) * 2012-12-21 2014-07-03 Ntt Data Corp Software development support device, software development support method, and software development support program
KR20180121732A (en) * 2017-04-28 2018-11-08 엔에이치엔엔터테인먼트 주식회사 Method and system for analyzing data based on block

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005512188A (en) * 2001-12-06 2005-04-28 シリル Method and apparatus for automatic generation of geomatic applications
US7640509B2 (en) 2005-06-09 2009-12-29 Nec Electronics Corporation Program creation apparatus, program creation method and program
JP2010020539A (en) * 2008-07-10 2010-01-28 Nippon Denno Co Ltd Program development support device and program creation method
JP2014123321A (en) * 2012-12-21 2014-07-03 Ntt Data Corp Software development support device, software development support method, and software development support program
JP2013152727A (en) * 2013-02-28 2013-08-08 Nippon Denno Co Ltd Program creation method
KR20180121732A (en) * 2017-04-28 2018-11-08 엔에이치엔엔터테인먼트 주식회사 Method and system for analyzing data based on block
JP2018190400A (en) * 2017-04-28 2018-11-29 エヌエイチエヌ エンターテインメント コーポレーションNHN Entertainment Corporation Method for analyzing data based on block, system, and program
US10296304B2 (en) 2017-04-28 2019-05-21 Nhn Entertainment Corporation Method and system for analyzing data based on block

Similar Documents

Publication Publication Date Title
JP5209209B2 (en) How to configure a computer program
CN108108162A (en) Application programming interface generation method and device
JPH09509271A (en) Methods and processes for inter-computer communication and generalized methods for writing programs therefor
JP4026940B2 (en) Program converter
JPH11353164A (en) System and method for source program generation, and system and method for chart generation
US7328158B1 (en) System and method for adding speech recognition to GUI applications
JP5758311B2 (en) Test code generation device, test code generation method, test code generation program
JP4872285B2 (en) Document management apparatus, document management system, and document management method
JP2004362343A (en) Source code conversion apparatus, source code conversion method, and program
JP2002202892A (en) Method for processing character string data and device for the same
JP2007226358A (en) Application generation device, application generation method, and application generation program
JP6062735B2 (en) Software development support device, software development support method, software development support program
JP4371000B2 (en) IDL compiling device, IDL compiling method, and IDL compiler
JP6243619B2 (en) Program analysis apparatus and program analysis method
WO2022049693A1 (en) Program creation device and method
US6954926B1 (en) Label address translating device
JP2007094453A (en) Program development support system, program development support method and program
JP3003459B2 (en) Program creation support device
CN116737144A (en) Mobile terminal application release method, device and medium based on low codes
JP6267971B2 (en) Source code analysis support device, source code analysis support method
Libby et al. Making the Conversion to Using Sass
CN114020263A (en) Interface configuration generation method and device
JPH096586A (en) Graphical user interface operation unit
JP2001273150A (en) Device for converting program
JPH04160433A (en) Information editing system