JPH02161521A - Automatic formation method for source program from flow chart - Google Patents
Automatic formation method for source program from flow chartInfo
- Publication number
- JPH02161521A JPH02161521A JP31570988A JP31570988A JPH02161521A JP H02161521 A JPH02161521 A JP H02161521A JP 31570988 A JP31570988 A JP 31570988A JP 31570988 A JP31570988 A JP 31570988A JP H02161521 A JPH02161521 A JP H02161521A
- Authority
- JP
- Japan
- Prior art keywords
- macro
- flowchart
- flow chart
- source program
- file
- 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
Links
- 238000000034 method Methods 0.000 title claims description 17
- 230000015572 biosynthetic process Effects 0.000 title 1
- 238000001514 detection method Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 4
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は流れ図から原始プログラムを自動生成する流れ
図からの原始プログラム自動生成方式に関し、特に共通
的な部分をもつ流れ図を共通化した流れ図からの原始プ
ログラム自動生成方式に関する。[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to a method for automatically generating a source program from a flowchart, and in particular, the present invention relates to a method for automatically generating a source program from a flowchart. Concerning automatic source program generation method.
(従来の技術)
従来、この種の流れ図からの原始プログラムの自動生成
方式においては、流れ図マクロ呼び出しがある毎に流れ
図マクロファイルを参照していた。(Prior Art) Conventionally, in this type of automatic generation method of a source program from a flowchart, a flowchart macro file is referred to each time a flowchart macro is called.
(発明が解決しようとする課題)
上述した従来の原始プログラム自動生成方式は、流れ図
マクロ呼び出しがあるごとに流れ図マクロファイルを参
照していたため処理効率の向上が困難であるという欠点
がある。(Problems to be Solved by the Invention) The conventional automatic source program generation method described above has the drawback that it is difficult to improve processing efficiency because the flowchart macro file is referenced each time a flowchart macro is called.
(課題を解決するための手段)
本発明による流れ図からの原始プログラム自動生成方式
は、流れ図内の共通的な部分を示す流れ図マクロを予め
登録しておく手段と、流れ図内から流れ図マクロが予め
登録されているか否かを示すマクロ情報を含む流れ図マ
クロ参照部を検出する流れ図マクロ検出手段と、この流
れ図検出手段により検出された流れ図マクロ参照部を参
照して流れ図マクロが流れ図マクロファイルに登録され
ていない場合には、流れ図マクロファイルを参照しない
で、原始プログラムを生成する原始プログラム生成手段
とを備える。(Means for Solving the Problems) The method for automatically generating a source program from a flowchart according to the present invention includes a means for pre-registering flowchart macros indicating common parts within a flowchart, and a means for pre-registering flowchart macros from within a flowchart. a flowchart macro detection means for detecting a flowchart macro reference part including macro information indicating whether or not the flowchart macro is registered in the flowchart macro file by referring to the flowchart macro reference part detected by the flowchart macro detection means; If there is no flowchart macro file, a source program generating means is provided for generating the source program without referring to the flowchart macro file.
(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.
第1図は本発明による流れ図からの原始プログラムの自
動生成方式の一実施例を示す構成図である。FIG. 1 is a block diagram showing an embodiment of a method for automatically generating a source program from a flowchart according to the present invention.
第1図において、流れ図マクロ検出手段1は、流れ図を
格納した流れ図フアイル3内の流れ図から流れ図マクロ
参照部を検出する。この検出した流れ図マクロ参照部に
基づいて原始プログラム生成手段2は流れ図マクロファ
イルを登録した流れ図マクロファイル4の情報を用いて
原始プログラムを生成し、こうして生成された原始プロ
グラムは原始プログラムファイル5に格納される0図に
おいて、→は制御の流れを示し中は情報の流れを示して
いる。In FIG. 1, a flowchart macro detection means 1 detects a flowchart macro reference portion from a flowchart in a flowchart file 3 that stores flowcharts. Based on the detected flowchart macro reference part, the source program generation means 2 generates a source program using the information of the flowchart macro file 4 in which the flowchart macro file is registered, and the source program thus generated is stored in the source program file 5. In the diagram, → indicates the flow of control, and the inside indicates the flow of information.
第2図には流れ図フアイル3内の流れ図マクロ参照部の
詳細が示されている。流れ図参照部を構成するマクロ情
報6は流れ図マクロ情報を表わし、流れ図を作成したと
きに流れ図マクロ7で示す流れ図マクロが流れ図マクロ
ファイルに登録されているか否かを設定する。マクロ情
報6が登録の状態を示しているときには、流れ図マクロ
名7は流れ図マクロを表わし、マクロ情報6が未登録の
状態を示しているときは、流れ図マクロ名は注釈として
原始プログラム上に反映される。FIG. 2 shows details of the flowchart macro reference section in the flowchart file 3. Macro information 6 constituting the flowchart reference section represents flowchart macro information, and sets whether or not the flowchart macro indicated by flowchart macro 7 is registered in the flowchart macro file when the flowchart is created. When the macro information 6 indicates a registered state, the flowchart macro name 7 represents the flowchart macro, and when the macro information 6 indicates an unregistered state, the flowchart macro name is reflected on the source program as a comment. Ru.
第3図には流れ図マクロ参照部検出手段の処理手順を示
すフローチャートが示されている。その処理は、流れ図
ファイル3から流れ図を入力した凌(ステップ8)、フ
ァイルの終端であるか否かの判断を行い(ステップ9)
、終端の場合は処理を終了する。一方、ファイルの終端
でない場合には、流れ図面を走査しながら流れ図マクロ
参照部の判断をしくステップ10)、流れ図マクロ参照
部の場合は、第2図で示した流れ図マクロ参照部情報6
に基づいて流れ図マクロ情報を設定しくステップ11)
、原始プログラム生成手段2の処理へ行く。流れ図マク
ロ参照部でない場合は、原始プログラム生成手段2の処
理へ行く(ステップ12)。FIG. 3 shows a flowchart showing the processing procedure of the flowchart macro reference portion detection means. The process consists of inputting the flowchart from flowchart file 3 (step 8), and determining whether it is the end of the file (step 9).
, if it is the end, the process ends. On the other hand, if it is not the end of the file, check the flowchart macro reference part while scanning the flowchart (Step 10); if it is a flowchart macro reference part, the flowchart macro reference part information 6 shown in FIG.
Step 11) Set the flowchart macro information based on
, go to the processing of the source program generation means 2. If it is not a flowchart macro reference part, the process goes to the source program generation means 2 (step 12).
第4図を参照しつつ原始プログラム生成手段2の処理手
順を説明する。流れ図マクロ参照の判断(ステップ13
)が偽とした(流れ図マクロ参照でない)場合には原始
プログラム生成を行い(ステップ17)、ステップ14
において流れ図参照部のマク■コ情報6が流れ図マクロ
が登録されているとなっている場合、流れ図マクロファ
イル4内を検索して、流れ図マクロ名7で示す流れ図マ
クロを検出しくステップ15)、流れ図マクロから情報
を得(ステップ16)、流れ図マクロ参照部を流れ図マ
クロ名7で示す流れ図マクロの本体で置換することによ
り原始プログラムの生成を行う。The processing procedure of the source program generation means 2 will be explained with reference to FIG. Determining flowchart macro reference (step 13)
) is false (not a flowchart macro reference), a source program is generated (step 17), and step 14
In step 15), if the macro information 6 in the flowchart reference section indicates that a flowchart macro is registered, the flowchart macro file 4 is searched to find the flowchart macro indicated by the flowchart macro name 7. Information is obtained from the macro (step 16), and a source program is generated by replacing the flowchart macro reference part with the main body of the flowchart macro indicated by flowchart macro name 7.
流れ図マクロ参照部の゛?マクロ情報の流れ図マクロが
未登録戸成っていた場合、流れ図マクロ参照部を流れ図
マクロ名を含む注釈で置換し原始プログラムを生成する
。゛? in the flowchart macro reference section? If the flowchart macro in the macro information is unregistered, the flowchart macro reference part is replaced with an annotation containing the flowchart macro name to generate a source program.
(発明の効果)
以上説明したように本発明は、流れ図マクロ参照部に流
れ図マクロが流れ図マクロファイルに登録されているか
否かの情報をもたせることにより、未登録と判断された
場合に流れ図マクロを検索しないようにしているので処
理の高速化を図ることができるという効果がある。(Effects of the Invention) As explained above, the present invention provides the flowchart macro reference section with information as to whether or not the flowchart macro is registered in the flowchart macro file. Since the search is not performed, the processing speed can be increased.
第1図は本発明による流れ図からの原始プログラム自動
生成方式の一実施例を示す構成図、第2図は流れ図マク
ロ参照部の詳41IIUf!I、第3図は流れ図マクロ
参照部検出手段の処理手順を示すフローチャート、第4
図は原始フ゛ログラム生成手段の処理手順を示すフロー
チャートである。
1・・・流れ図マクロ検出手段、2・・・原始プログラ
ム生成手段、3・・・流れ図ファイル、4・・・流れ図
マクロファイル、5・・・原始プログラムファイル。
第
図
第
図
第
図FIG. 1 is a block diagram showing an embodiment of the method for automatically generating a source program from a flowchart according to the present invention, and FIG. 2 is a detailed diagram of the flowchart macro reference section. I. Fig. 3 is a flowchart showing the processing procedure of the macro reference section detection means;
The figure is a flowchart showing the processing procedure of the primitive program generation means. DESCRIPTION OF SYMBOLS 1... Flowchart macro detection means, 2... Original program generation means, 3... Flowchart file, 4... Flowchart macro file, 5... Original program file. Figure Figure Figure Figure
Claims (1)
しておく手段と、流れ図内から流れ図マクロが予め登録
されているか否かを示すマクロ情報を含む流れ図マクロ
参照部を検出する流れ図マクロ検出手段と、この流れ図
検出手段により検出された流れ図マクロ参照部を参照し
て流れ図マクロが流れ図マクロファイルに登録されてい
ない場合には、流れ図マクロファイルを参照しないで、
原始プログラムを生成する原始プログラム生成手段とを
備えて成ることを特徴とする流れ図からの原始プログラ
ム自動生成方式。A means for pre-registering a flowchart macro indicating a common part within a flowchart, and a flowchart macro detection means for detecting a flowchart macro reference portion containing macro information indicating whether or not a flowchart macro has been registered in advance from within the flowchart. Then, by referring to the flowchart macro reference part detected by this flowchart detection means, if the flowchart macro is not registered in the flowchart macro file, do not refer to the flowchart macro file,
1. A method for automatically generating a source program from a flowchart, comprising: a source program generation means for generating a source program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31570988A JP3179076B2 (en) | 1988-12-14 | 1988-12-14 | Automatic source program generation from flowchart |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31570988A JP3179076B2 (en) | 1988-12-14 | 1988-12-14 | Automatic source program generation from flowchart |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH02161521A true JPH02161521A (en) | 1990-06-21 |
JP3179076B2 JP3179076B2 (en) | 2001-06-25 |
Family
ID=18068597
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP31570988A Expired - Fee Related JP3179076B2 (en) | 1988-12-14 | 1988-12-14 | Automatic source program generation from flowchart |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3179076B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63174128A (en) * | 1987-01-13 | 1988-07-18 | Nec Corp | Program generating device by graphic |
-
1988
- 1988-12-14 JP JP31570988A patent/JP3179076B2/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63174128A (en) * | 1987-01-13 | 1988-07-18 | Nec Corp | Program generating device by graphic |
Also Published As
Publication number | Publication date |
---|---|
JP3179076B2 (en) | 2001-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH02161521A (en) | Automatic formation method for source program from flow chart | |
TW201734848A (en) | Method and device for generating code assistance information | |
JPH09101880A (en) | Program analyzer | |
JPH05127885A (en) | Processing flow chart conversion system | |
JPH05233259A (en) | Error message merging application system | |
JPH05204699A (en) | Identifier searching system at debugging | |
JPH0695309B2 (en) | Reuse method of intermediate language text | |
JPH0216643A (en) | System for controlling output of debugging information | |
JP2655608B2 (en) | Program source copy processing method | |
JPH02195438A (en) | Recursive access detecting system in microdevelopment | |
JPH10133866A (en) | Method for shift conversion processing | |
JPH08137872A (en) | Method and device for document processing | |
JPH04312130A (en) | Language processing program | |
JPH0276035A (en) | Error detecting system for compiler option | |
JP3224386B2 (en) | Program creation device | |
JPH03235135A (en) | Automatic inspection system for program | |
JPH03222049A (en) | Null value storage system | |
JPH0743751B2 (en) | Spreadsheet automatic identification method | |
JPH0370036A (en) | Detector for diagnostic message level | |
JPH02205930A (en) | Interface check processing method | |
JPS63140306A (en) | Automatic programming device for numerical control | |
JPH04177534A (en) | Undefined name mark error processing system | |
JPH0415748A (en) | Parallel phase recognizing device | |
JPH096620A (en) | Rule generation support tool for expert system | |
JPH04373020A (en) | Function correspondence table preparing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |