JP3283055B2 - Program editing device - Google Patents

Program editing device

Info

Publication number
JP3283055B2
JP3283055B2 JP03240092A JP3240092A JP3283055B2 JP 3283055 B2 JP3283055 B2 JP 3283055B2 JP 03240092 A JP03240092 A JP 03240092A JP 3240092 A JP3240092 A JP 3240092A JP 3283055 B2 JP3283055 B2 JP 3283055B2
Authority
JP
Japan
Prior art keywords
level
instruction
program
control
control structure
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.)
Expired - Fee Related
Application number
JP03240092A
Other languages
Japanese (ja)
Other versions
JPH05233254A (en
Inventor
敏隆 永井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP03240092A priority Critical patent/JP3283055B2/en
Publication of JPH05233254A publication Critical patent/JPH05233254A/en
Application granted granted Critical
Publication of JP3283055B2 publication Critical patent/JP3283055B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラムの制御構造
を図記号で表現する図式表現中で命令の放棄レベルを自
動設定するプログラム編集装置に関するものである。プ
ログラム開発の生産性を向上させるために、命令を図記
号で表現し、プログラムの制御構造を明らかにし、プロ
グラムの制御構造の誤りを防ぐことが行われている。こ
の場合、制御を複数段に渡って放棄する命令について、
放棄するレベルを自動的に調整して表現することが望ま
れている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program editing apparatus for automatically setting an abandonment level of an instruction in a graphic representation in which a control structure of a program is represented by a graphic symbol. In order to improve the productivity of program development, it has been practiced to represent instructions with graphic symbols, clarify the control structure of the program, and prevent errors in the control structure of the program. In this case, for the instruction to give up control over multiple stages,
It is desired that the level to be abandoned is automatically adjusted and expressed.

【0002】[0002]

【従来の技術】従来、プログラムの構造を図記号で表現
した図式表現をディスプレイ上に表示し、この表示した
中で図式表現中の制御の複数段に渡って放棄する命令
(例えば脱出命令)について、放棄するレベルを利用者
がマウスを用いてどのレベルからいずれのレベルに放棄
するかを一々指定するようにしていた。
2. Description of the Related Art Conventionally, an instruction (for example, an escape instruction) for displaying on a display a graphic expression expressing the structure of a program by a graphic symbol and abandoning the control in the graphic expression in a plurality of stages in the display. The user specifies each level from which level to abandon using the mouse.

【0003】また、編集操作によって、放棄するレベル
が変化するときは、利用者がその都度、再設定するよう
にしていた。
[0003] In addition, when the level to be abandoned changes due to the editing operation, the user has to reset the level each time.

【0004】[0004]

【発明が解決しようとする課題】上述したように、従来
のプログラムの構造を図記号で表す図式表現中で例えば
脱出命令が放棄する放棄レベルについて、利用者が判断
してマウスを用いてその脱出先のレベル(放棄するレベ
ル)を指定し、設定するようにしていたため、利用者が
図形表現を判断してその放棄レベルを決めてマウスで入
力する必要があり、誤解によって間違った放棄レベルを
設定したプログラムを作成したりしてしまうという問題
があった。また、一度作成したプログラムの図式表現の
一部を変更して放棄レベルが変化した場合、利用者がそ
の変化に対応して脱出命令の放棄レベルを再設定する必
要があり、変更が面倒であり、時として忘れたり、間違
って設定したりするという問題があった。
As described above, the user determines the abandonment level that is abandoned by an escape instruction, for example, in a graphical representation of the structure of a conventional program with a graphical symbol, and uses the mouse to escape the abandonment level. Since the previous level (level to be abandoned) was specified and set, the user had to judge the graphic expression, decide the level of abandonment, and input it with the mouse, and set the wrong level of abandonment due to misunderstanding. There is a problem that such a program is created. Also, if the abandonment level changes by changing a part of the graphical representation of the program once created, the user must reset the abandonment level of the escape instruction in accordance with the change, and the change is troublesome. There was a problem that sometimes it was forgotten or incorrectly set.

【0005】本発明は、これらの問題を解決するため、
放棄するレベルを伴う命令を編集(作成、変更など)し
たときに図式表現の構造を辿り現在編集している命令に
関連する構造を見つけてこのレベルまで放棄し、脱出命
令などの放棄レベルを自動的に設定し、利用者の負担を
軽減すると共に間違いを無くすことを目的としている。
[0005] The present invention solves these problems,
When an instruction with the level to be abandoned is edited (created, changed, etc.), the structure related to the instruction currently being edited is found by tracing the structure of the graphical representation and abandoning to this level, and the abandonment level such as an escape instruction is automatically set. The purpose is to reduce the burden on the user and eliminate errors.

【0006】[0006]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、編集処理
3は、編集操作が制御を複数段、放棄する命令か否かを
判別するものである。
Means for solving the problem will be described with reference to FIG. In FIG. 1, the editing process 3 is for determining whether or not the editing operation is a command to abandon control in a plurality of stages.

【0007】レベル調整処理4は、編集処理3によって
制御を複数段、放棄する命令と判別されたときに、この
命令から上位に辿り、当該命令に係わる制御に到達する
までのレベルを求めるものである。
In the level adjusting process 4, when it is determined by the editing process 3 that the command is a command to give up control in a plurality of stages, the level is traversed from this command to a higher level, and the level until the control related to the command is reached is obtained. is there.

【0008】内部テーブル71は、図式表現上の記号に
対応づけて放棄レベルおよびテキストを設定するもので
ある。
[0008] The internal table 71 is for setting the abandonment level and the text in association with the symbol on the graphic expression.

【0009】[0009]

【作用】本発明は、図1に示すように、図式表現上で編
集操作を利用者が行ったことに対応して、編集処理3が
制御を複数段、放棄する命令と判別したとき、この命令
に係わる制御のレベルまでを放棄レベルと決定し、図式
表現上に表示するようにしている。
According to the present invention, as shown in FIG. 1, in response to a user performing an editing operation on a graphic representation, when the editing process 3 determines that the control is to be abandoned in a plurality of steps, The abandonment level is determined up to the level of control related to the instruction, and is displayed on a schematic representation.

【0010】また、図式表現上で編集操作を利用者が行
ったことに対応して、編集処理3が制御を複数段、放棄
する命令と判別したとき、レベル調整処理4がこの放棄
する命令から上位に辿り、当該命令に係わる制御に到達
するまでのレベルを求め、図式表現上に表示するように
している。
Further, when the editing process 3 determines that the control is to be abandoned in a plurality of stages in response to the user performing the editing operation on the graphic representation, the level adjustment process 4 performs The level up to the upper level until the control related to the instruction is reached is obtained and displayed on a schematic representation.

【0011】また、図式表現上で編集操作を利用者が行
ったことに対応して、編集処理3が制御を複数段、放棄
する命令と判別したとき、レベル調整処理4がこの放棄
する命令から上位に辿り、当該命令に係わる制御に到達
するまでのレベルを求めたときに、内部テーブル71の
該当する記号(例えば脱出命令など)の放棄レベルに当
該放棄レベルを設定して表示するようにしている。
In response to the user performing an editing operation on the graphic representation, when the editing process 3 determines that the control is to be abandoned in a plurality of stages, the level adjustment process 4 starts from the abandoned command. When the level up to the control up to the control related to the instruction is obtained, the abandonment level of the corresponding symbol (for example, the escape instruction) in the internal table 71 is set and displayed. I have.

【0012】従って、放棄するレベルを伴う命令を編集
(作成、変更など)したときに図式表現の構造を辿り現
在編集している命令に係わる構造(制御)を見つけてこ
のレベルまで放棄することにより、脱出命令などの放棄
レベルを自動的に設定し、利用者の負担を軽減すると共
に間違いを無くすことが可能となる。
Therefore, when an instruction with a level to be abandoned is edited (created, changed, etc.), the structure (control) relating to the instruction currently being edited is found by tracing the structure of the graphical expression and abandoning to this level. , The abandonment level such as an escape instruction is automatically set, thereby reducing the burden on the user and eliminating errors.

【0013】[0013]

【実施例】次に、図1から図6を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
Next, the structure and operation of an embodiment of the present invention will be sequentially described in detail with reference to FIGS.

【0014】図1は、本発明の1実施例構成図を示す。
図1において、プログラム編集装置1は、ディスプレイ
装置10上にプログラム構成を図記号で表現した図式表
現を表示し、キーボード入力装置8、マウス9などを用
い、プログラムを作成、編集する装置であって、ここで
は、図式表現上の脱出命令の放棄レベルを自動的に設定
するものであり、編集制御部2、入出力処理5、および
編集バッファメモリ6などから構成されるものである。
FIG. 1 is a block diagram showing one embodiment of the present invention.
In FIG. 1, a program editing device 1 is a device that displays a graphical representation of a program configuration on a display device 10 using graphic symbols, and creates and edits a program using a keyboard input device 8, a mouse 9, and the like. Here, the abandonment level of the escape instruction in the schematic representation is automatically set, and is composed of the edit control unit 2, the input / output processing 5, the edit buffer memory 6, and the like.

【0015】編集制御部2は、ディスプレイ装置10に
表示した図式表現上でプログラムの編集を行うものであ
って、編集処理3およびレベル調整処理4などから構成
されるものである。
The editing control unit 2 edits a program on the graphic representation displayed on the display device 10, and includes an editing process 3, a level adjustment process 4, and the like.

【0016】編集処理3は、利用者がディスプレイ装置
10の図式表現上で命令や制御を入力したり、変更した
りしたことに対応して、その指示を取り込み編集処理を
行うものであって、ここでは制御を複数段放棄する命令
(例えば脱出命令)を検出などするものである(図2参
照)。
The editing process 3 is to execute an editing process by taking in an instruction or control in response to a user inputting or changing a command or control on the graphic representation of the display device 10, Here, an instruction to abandon control in a plurality of stages (for example, an escape instruction) is detected (see FIG. 2).

【0017】レベル調整処理4は、編集処理3によって
制御を複数段、放棄する命令と判別されたときに、この
命令から上位に辿り、当該命令に係わる制御に到達する
までのレベルを求めるものである。
In the level adjusting process 4, when it is determined by the editing process 3 that the command is a command to give up control in a plurality of stages, the level is traced from this command to a higher level, and the level until the control related to the command is reached is determined. is there.

【0018】入出力処理5は、記憶装置7との入出力を
行ったり、キーボード入力装置8、マウス9からのデー
タを取り込んだり、ディスプレイ装置10に図式表現を
表示したりなどの入出力を行うものである。
The input / output processing 5 performs input / output with the storage device 7, fetches data from the keyboard input device 8 and the mouse 9, and displays graphical representations on the display device 10. Things.

【0019】編集バッファメモリ6は、各種編集を行う
ときに使用するメモリである。内部メモリ71は、ここ
に格納される。記憶装置7は、大容量の外部記憶装置で
あって、作成したプログラムなどを格納するものであ
る。
The edit buffer memory 6 is a memory used when performing various edits. The internal memory 71 is stored here. The storage device 7 is a large-capacity external storage device for storing created programs and the like.

【0020】内部テーブル71は、ディスプレイ装置1
0上に表示する図式表現の内部表現のデータを格納する
ものである(図5参照)。キーボード入力装置8は、デ
ィスプレイ装置10に表示する図式表現に命令や制御な
どを入力するものである。
The internal table 71 includes the display device 1
It stores the data of the internal representation of the graphic representation displayed on 0 (see FIG. 5). The keyboard input device 8 is for inputting commands, controls, and the like into a graphic expression displayed on the display device 10.

【0021】マウス9は、ディスプレイ装置10に表示
する図式表現上で複写や移動などするときの位置情報を
指示などするものである。ディスプレイ装置10は、図
記号で表す図式表現を表示し、利用者がこれを見てプロ
グラム編集を行うためのものである。
The mouse 9 is used for designating position information when copying or moving on a graphic representation displayed on the display device 10. The display device 10 displays a graphic expression represented by a graphic symbol, and allows a user to edit the program while viewing the graphic expression.

【0022】次に、図2のフローチャートに示す順序に
従い、図1の構成の動作を詳細に説明する。図2におい
て、S1は、編集操作を行う。これは、利用者がディス
プレイ装置10の図式表現である例えば図4の(a)の
図式表現上で ・始点(開始行) ・終点(終了行) ・移動先 ・実行 を操作する。
Next, the operation of the configuration of FIG. 1 will be described in detail according to the order shown in the flowchart of FIG. In FIG. 2, S1 performs an editing operation. In this case, the user operates a start point (start line), an end point (end line), a destination, and execution on a schematic representation of the display device 10, for example, a schematic representation of FIG.

【0023】S2は、制御を複数段放棄する命令か判別
する。これは、S1で利用者が編集処理した命令が制御
を複数段放棄する命令かを判別する。YESの場合、例
えば図4の(a)の図式表現上の[脱出]は脱出命令で
あって制御を複数段放棄する命令であるので、S21か
らS23のレベル調整を行う。一方、NOの場合、例え
ば図4の(a)の図式表現上の[判定]は制御であるの
で、S3で編集範囲の終わりか判別し、YESのときに
終了し、NOのときに次の命令、制御についてS2を繰
り返し行う。
In step S2, it is determined whether the command is a command for relinquishing the control in a plurality of stages. This is to determine whether the command edited by the user in S1 is a command to give up control in a plurality of stages. In the case of YES, for example, since [escape] in the schematic representation of FIG. 4A is an escape instruction and an instruction to abandon control in a plurality of stages, the level adjustment from S21 to S23 is performed. On the other hand, in the case of NO, for example, [determination] in the schematic representation of FIG. 4A is control, so it is determined whether or not the editing range ends at S3. S2 is repeatedly performed for command and control.

【0024】以上によって、利用者がディスプレイ装置
10の図式表現上で編集操作したことに対応して、編集
操作したものが命令であって、かつ当該命令が制御を複
数段放棄する命令の場合(例えば図4の(a)の脱出命
令の場合)には、次のレベル調整処理に進む。一方、そ
れ以外はレベル調整を行う必要がないので、次の制御、
命令について終わるまで繰り返す。
As described above, in response to the user performing an editing operation on the graphic representation of the display device 10, the editing operation is a command, and the command is a command for relinquishing a plurality of levels of control ( For example, in the case of the escape instruction in FIG. 4A, the process proceeds to the next level adjustment process. On the other hand, there is no need to adjust the level otherwise, so the following control,
Repeat until done for instruction.

【0025】図2のS21は、S2のYESで命令が制
御を複数段放棄する命令と判明したので、制御を辿る。
S22は、編集中の命令に係わる制御か判別する。YE
Sの場合には、S23で現在の制御段(レベル)を設定
して終了する。一方、NOの場合には、次の制御などに
ついてS21以降を繰り返し行う。
In S21 of FIG. 2, the control is traced because it is determined in S2 that the instruction is an instruction for relinquishing the control in a plurality of stages.
In step S22, it is determined whether the control is related to the command being edited. YE
In the case of S, the current control stage (level) is set in S23, and the process ends. On the other hand, in the case of NO, S21 and subsequent steps are repeated for the next control and the like.

【0026】これらS21からS23の処理を具体的に
説明すると、図4の(b)において、 (1) 脱出命令が制御を複数段放棄する命令であるの
で、当該脱出命令から1つ辿った[判定]を取り出す
が、これは制御であるが脱出命令に係わる制御でないの
で、S22のNOとなる。
The processing from S21 to S23 will be specifically described. (B) In FIG. 4B, (1) Since the escape instruction is an instruction for relinquishing a plurality of stages of control, one is traced from the escape instruction. Judgment] is taken out, but since this is a control but not a control relating to an escape instruction, NO in S22 is obtained.

【0027】(2) 更に1つ辿った[判定]を取り出
すが、これは制御であるが脱出命令に係わる制御でない
ので、S22のNOとなる。 (3) 更に1つ辿った[繰返し]を取り出す。これは
制御であって脱出命令に係わる制御であるので、S22
のYESとなり、S23で現在の制御段(ここではレベ
ル1)を、当該脱出命令の放棄レベルとして設定する。
この設定に対応して、図4の(b)の脱出命令から図示
のようにレベル1に向けて矢印(脱出を表す)を表示す
る。
(2) The [judgement] traced by one is taken out. This is a control but not a control relating to the escape instruction, so that the result in S22 is NO. (3) Take out one more [repeat]. Since this is control and control relating to the escape command, S22
Is YES, and the current control stage (here, level 1) is set as the abandonment level of the escape instruction in S23.
In response to this setting, an arrow (indicating escape) is displayed from the escape instruction of FIG. 4B toward level 1 as shown in the figure.

【0028】以上のように、編集操作した対象の命令
が、制御を複数段放棄する命令と判明したとき(図2の
S2のYES)、この命令(例えば図4の(b)の脱出
命令)から順次[判定]、更に[判定]、更に[繰返
し]と辿って当該命令に係わる制御に行き着いたので
(図2のS22のYES)、このレベルを脱出する命令
の放棄レベレとして設定する。これにより、図4の
(b)のの矢印(3つ分のレベルの矢印)が自動的に
表示されることとなる。
As described above, when it is determined that the instruction to be edited is an instruction to abandon control in a plurality of stages (YES in S2 of FIG. 2), this instruction (for example, the escape instruction of FIG. 4B) From this point on, the control relating to the instruction has been reached by sequentially tracing [judgment], [judgment], and [repetition] (YES in S22 of FIG. 2), and this level is set as the abandonment level of the instruction to escape. As a result, the arrow shown in FIG. 4B (three levels of arrows) is automatically displayed.

【0029】次に、図3を用いて入力操作例を説明す
る。図3の(a)は、脱出命令の入力前の状態を示す。
これは、ディスプレイ装置10に図記号でプログラム構
造を表示した図式表現である。ここで、[繰返し]、
[判定]が制御(制御構造)である。
Next, an example of an input operation will be described with reference to FIG. FIG. 3A shows a state before an escape instruction is input.
This is a graphical representation of the program structure displayed on the display device 10 with graphic symbols. Where [repeat],
[Judgment] is control (control structure).

【0030】[呼出し]は命令である。縦の線は、制御
のレベルを表し、左から、0、1、2、3というように
付与する。
[Call] is an instruction. The vertical line indicates the level of control, and is given as 0, 1, 2, 3 from the left.

【0031】この状態で、矢印のの位置に脱出命令を
キーボードから入力する。図3の(b)は、脱出命令入
力後の状態を示す。これは、図3の(a)の状態で脱出
命令を、の位置にキーボードから入力し、一連の編集
処理を終了した後の状態を示す。以下説明する。
In this state, an escape command is input from the keyboard at the position indicated by the arrow. FIG. 3B shows a state after the escape instruction is input. This shows a state after an escape instruction is input from the keyboard at the position of in the state of FIG. 3A and a series of editing processes is completed. This will be described below.

【0032】(1) 利用者が図3の(a)のの位置
に脱出命令を入力する(図2のS1)。 (2) (1)で入力された脱出命令は制御を複数段放
棄する命令であるので(図2のS2のYES)、当該脱
出命令の位置から1つ辿った[判定]を取り出す。この
[判定]は、制御であるが脱出命令に係わる制御でない
ので、次に進む。
(1) The user inputs an escape command at the position shown in FIG. 3A (S1 in FIG. 2). (2) Since the escape command input in (1) is a command for relinquishing the control in a plurality of stages (YES in S2 of FIG. 2), one [determination] traced from the position of the escape command is taken out. This [judgment] is a control, but not a control relating to the escape instruction, and therefore proceeds to the next step.

【0033】(3) 更に1つ辿った[呼出し]を取り
出す。この[呼出し]は命令であるので、脱出命令に係
わる制御でないので、次に進む。 (4) 更に1つ辿った[繰返し]を取り出す。この
[繰返し]は制御であって、脱出命令に係わる制御であ
るので、このときのレベル1を取り出す。これにより、
脱出命令のレベル3からレベル1までのレベルを2つ放
棄すると内部テーブル71に設定する(後述する)。こ
の設定に対応して、ディスプレイ装置10の図式表現上
で図3の(b)のに示すように、矢印がレベル3から
レベル1までの2つ放棄するように表示する。
(3) Take out one more [call]. Since this [call] is an instruction, it is not the control relating to the escape instruction, so the process proceeds to the next step. (4) Take out one more [repeat]. Since this [repetition] is control and control relating to the escape instruction, the level 1 at this time is extracted. This allows
When two levels from the level 3 to level 1 of the escape instruction are abandoned, they are set in the internal table 71 (described later). In response to this setting, as shown in FIG. 3B on the schematic representation of the display device 10, two arrows from level 3 to level 1 are displayed so as to be abandoned.

【0034】以上のように、脱出命令などの制御を複数
段放棄する命令を入力した場合、この命令から順次辿っ
て当該命令に係わる制御を見つけてそのときのレベルま
で放棄するように、内部テーブル71に設定すると共に
ディスプレイ装置10の図式表現上での矢印のように
自動的に表示することが可能となる。
As described above, when an instruction for relinquishing control such as an escape instruction for a plurality of stages is input, the internal table is searched so as to find control related to the instruction by sequentially following this instruction and abandon it to the level at that time. When the number is set to 71, it can be automatically displayed like an arrow on the schematic representation of the display device 10.

【0035】次に、図4を用いて移動操作例を説明す
る。図4の(a)は、脱出命令の移動前の状態を示す。
これは、ディスプレイ装置10に図記号でプログラム構
造を表示した図式表現である。ここで、移動操作とし
て、 ・始点(開始行) ・終点(終了行) をマウスなどで指示して移動範囲を指定する。そして、
移動先として、の位置に判定が移動するように指示す
る。
Next, an example of a moving operation will be described with reference to FIG. FIG. 4A shows a state before the escape instruction is moved.
This is a schematic representation of the program structure displayed on the display device 10 with graphic symbols. Here, as the movement operation, a start point (start line) and an end point (end line) are designated with a mouse or the like to specify a movement range. And
Instructs the determination to move to the position as the destination.

【0036】図4の(b)は、脱出命令移動後の状態を
示す。以下説明する。 (1) 利用者が図4の(a)の矩形の範囲をの位置
に移動させる指示を行う(図2のS1)。
FIG. 4B shows the state after the escape instruction is moved. This will be described below. (1) The user issues an instruction to move the rectangular range in FIG. 4A to the position (S1 in FIG. 2).

【0037】(2) (1)の指示に対応して、図4の
(b)に示すように、図記号を移動する。 (3) 次に、(2)で移動させた命令の中に制御を複
数段放棄する命令として、ここでは脱出命令が見つかっ
たので(図2のS2のYES)、この脱出命令の位置か
ら1つ辿った[判定]を取り出す。この[判定]は、制
御であるが脱出命令に係わる制御でないので、次に進
む。
(2) In response to the instruction of (1), the symbol is moved as shown in FIG. (3) Next, since an escape instruction has been found here as an instruction to give up control in a plurality of stages among the instructions moved in (2) (YES in S2 of FIG. 2), the position of the escape instruction is 1 Take out the [judgment] that has been traced. This [judgment] is a control, but not a control relating to the escape instruction, and therefore proceeds to the next step.

【0038】(4) 更に1つ辿った[判定]を取り出
す。この[判定]は、制御であるが脱出命令に係わる制
御でないので、次に進む。 (5) 更に1つ辿った[繰返し]を取り出す。この
[繰返し]は制御であって、脱出命令に係わる制御であ
るので、このときのレベル1を取り出す。これにより、
脱出命令のレベル4からレベル1までのレベルを3つ放
棄すると内部テーブル71に設定する。この設定に対応
して、ディスプレイ装置10の図式表現上で図4の
(b)のに示すように、矢印がレベル4からレベル1
までの3つ放棄するように表示する。
(4) The [judgment] traced by one is taken out. This [judgment] is a control, but not a control relating to the escape instruction, and therefore proceeds to the next step. (5) Take out one more [repeat]. Since this [repetition] is control and control relating to the escape instruction, the level 1 at this time is extracted. This allows
When three levels from the level 4 to level 1 of the escape instruction are abandoned, the level is set in the internal table 71. In response to this setting, on the schematic representation of the display device 10, as shown in FIG.
It is displayed to abandon three.

【0039】以上のように、脱出命令などの制御を複数
段放棄する命令を移動した場合、この命令から順次辿っ
て当該命令に係わる制御を見つけてそのときのレベルま
で放棄するように、内部テーブル71に設定すると共に
ディスプレイ装置10の図式表現上での矢印のように
自動的に表示することが可能となる。
As described above, when an instruction to relinquish control such as an escape instruction in a plurality of stages is moved, the internal table is searched so as to find control related to the instruction by sequentially following this instruction and abandon it to the level at that time. When the number is set to 71, it can be automatically displayed like an arrow on the schematic representation of the display device 10.

【0040】図5は、本発明の内部テーブル例を示す。
これは、図3や図4のディスプレイ装置10に表示する
図式表現の元となる、システム内部で持つデータであっ
て、図3の(b)の内部テーブル71である。ここで、 ・表示レベルは、図3の(b)のいずれのレベルに表示
するかの情報である。
FIG. 5 shows an example of an internal table according to the present invention.
This is the internal data of the system, which is the source of the graphical representation displayed on the display device 10 of FIGS. 3 and 4, and is the internal table 71 of FIG. Here, the display level is information on which level in FIG. 3B is to be displayed.

【0041】 ・記号は、表示レベルの位置に表示する記号である。 ・放棄レベルは、脱出命令などの制御を複数段放棄す
る命令が放棄するレベル数を表す。ここで2は、レベル
を2つ放棄する旨を表す。
Symbols are symbols displayed at display level positions. The number of abandonment levels indicates the number of levels at which an instruction such as an escape instruction that abandons control in a plurality of stages abandons. Here, 2 represents that two levels are abandoned.

【0042】・テキストは、記号の内容(テキスト)を
表す。 従って、既述した図3の(a)から図3の(b)のよう
に、の位置に脱出を入力したとき、に示すように、
当該脱出命令がレベル3からレベル1までの2つのレベ
ルを放棄するので、図5のに示すように、放棄レベル
を2と設定する。この放棄レベルを2と設定することに
より、ディスプレイ装置10の図式表現上で2つのレベ
ル、即ちレベル3からレベル1に向けたの矢印を表示
する。
The text indicates the contents (text) of the symbol. Therefore, when the escape is input at the position of as shown in FIG. 3 (a) to FIG. 3 (b), as shown in FIG.
Since the escape instruction abandons two levels from level 3 to level 1, the abandonment level is set to 2 as shown in FIG. By setting the abandonment level to 2, two arrows, ie, an arrow from level 3 to level 1, are displayed on the schematic representation of the display device 10.

【0043】図6は、本発明の他の図式表現例を示す。
これは、CAPE言語の場合のものである。ここでは、
以下の2つの制御を複数段放棄する命令であって、 ・再入力は今の項目群をもう一度入力するように、途中
反復する。
FIG. 6 shows another example of a schematic representation of the present invention.
This is for the CAPE language. here,
This is a command for relinquishing the following two controls in a plurality of stages: Re-entry is repeated in the middle so as to input the current item group again.

【0044】・次入力は今の項目群は終わって次の項目
群を入力するように、途中反復する。これらをまとめる
と、 ・脱出は、C言語(break)、CAPE(脱出、処
理終了) ・途中反復は、C言語(continue)、CAPE
(再入力、次入力など)がある。これらについても、制
御を複数段放棄する命令であるので、同様に、編集操作
(入力、移動、複写、部品展開、メモ展開など)のとき
に自動的に放棄するレベルを検出し、この検出した放棄
レベルを内部テーブル71に設定および図式表現上に表
示することが可能となる。
The next input is repeated halfway so that the current item group ends and the next item group is input. In summary, ・ Escape is C language (break), CAPE (Escape, end of processing) ・ Repeat is C language (continue), CAPE
(Re-input, next input, etc.). In these cases, since the instruction is to abandon the control in a plurality of stages, similarly, the level at which the control is automatically abandoned during the editing operation (input, move, copy, part development, memo development, etc.) is detected, and the detected level is detected. The abandonment level can be set in the internal table 71 and displayed on a schematic representation.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
放棄するレベルを伴う命令を編集(作成、変更など)し
たときに図式表現の構造を辿り現在編集している命令に
係わる構造(制御)を見つけてこのレベルまで放棄する
構成を採用しているため、脱出命令などの放棄レベルを
自動的に設定および図式表現上に矢印として表示するこ
とができる。これにより、脱出命令などの編集操作(入
力、移動、複写、部品展開、メモ展開など)のときに、
間違いなく当該脱出命令などの放棄レベルを表す矢印な
どを表示し、利用者の負担を軽減するができると共に、
利用者の誤解により誤ったプログラムを作成する可能性
を無くし、プログラム開発の生産性を向上させることが
できる。
As described above, according to the present invention,
When an instruction with a level to be abandoned is edited (created, changed, etc.), the structure (control) relating to the instruction currently being edited is found by tracing the structure of the graphical representation, and a configuration is adopted in which the level is abandoned up to this level. , Abandonment levels such as escape instructions can be automatically set and displayed as arrows on the graphical representation. By this, at the time of editing operation such as escape instruction (input, move, copy, parts development, memo development, etc.),
An arrow or the like indicating the abandonment level of the escape instruction etc. is definitely displayed, and the burden on the user can be reduced.
The possibility of creating an erroneous program due to a user's misunderstanding is eliminated, and the productivity of program development can be improved.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of one embodiment of the present invention.

【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart illustrating the operation of the present invention.

【図3】本発明の入力操作例である。FIG. 3 is an example of an input operation of the present invention.

【図4】本発明の移動操作例である。FIG. 4 is an example of a moving operation according to the present invention.

【図5】本発明の内部テーブル例である。FIG. 5 is an example of an internal table according to the present invention.

【図6】本発明の他の図式表現例である。FIG. 6 is another schematic representation example of the present invention.

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

1:プログラム編集装置 2:編集制御部 3:編集処理 4:レベル調整処理 5:入出力処理 6:編集バッファメモリ 7:記憶装置 71:内部テーブル 8:キーボード入力装置 9:マウス 10:ディスプレイ装置 1: Program editing device 2: Editing control unit 3: Editing process 4: Level adjustment process 5: Input / output process 6: Editing buffer memory 7: Storage device 71: Internal table 8: Keyboard input device 9: Mouse 10: Display device

フロントページの続き (56)参考文献 特開 昭63−109578(JP,A) 林・野沢,“パソコンにおけるYAC ▲II▼エディタ”,「第33回(昭和61 年後期)全国大会論文集(▲I▼),情 報処理学会,昭和61年10月1日〜3日, p.773−774 村上・宮城,“プログラム生成のため のYAC▲II▼表記法のあり方”,第 31回(昭和60年後期)全国大会講演論文 集(▲I▼),情報処理学会,昭和60年 9月9日〜12日,p.481−482 (58)調査した分野(Int.Cl.7,DB名) G06F 9/06 Continuation of the front page (56) References JP-A-63-109578 (JP, A) Hayashi and Nozawa, “YAC on PC II Editor”, “The 33rd (late 1986) National Conference Papers (▲ I ▼), Information Processing Society of Japan, October 1-3, 1986, p.773-774 Murakami / Miyagi, “YAC ▲ II ▼ Notation for Program Generation”, 31st (Showa Late 60s) National Conference Lecture Papers (I), Information Processing Society of Japan, September 9-12, 1985, pp. 481-482 (58) Fields surveyed (Int. Cl. 7 , DB name) ) G06F 9/06

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラムの制御構造を図記号で表現する
図式表現中で命令の放棄レベルを自動設定するプログラ
ム編集装置であって入力装置からデータを取り込み、ディスプレイ装置にデ
ータを出力して図式表現をさせる入出力処理とディスプレイ装置に表示されたプログラムの制御構造の
図式表現に対して利用者が入力装置を用いて行う編集操
に対応して、前記編集操作に係わる命令前記プログ
ラムの制御構造のレベルを複数段にわたって放棄する命
令か否かを判別する編集処理と、前記 編集処理によってプログラムの制御構造のレベル
複数段にわたって放棄する命令と判別されたときに、
命令のプログラム制御構造のレベルからプログラム制
御構造の上位のレベルを辿り、前記命令に係わる制御に
到達するまでのレベルを求めるレベル調整処理とを備
え、前記編集処理が前記命令がプログラムの制御構造のレベ
ルを複数段にわたって放棄する命令と判別し、前記 レベ
ル調整処理が前記プログラム制御構造の上位のレベルを
辿ることで求めた前記命令に係わる制御のレベルを放棄
レベルと決定し、前記入出力処理が前記命令と前記放棄レベルの間にある
レベルを放棄するレベルとして前記ディスプレイ装置の
図式表現上に表示させるように構成したことを特徴とす
るプログラム編集装置。
1. A program editing apparatus for automatically setting a waiver level instructions in diagrammatic representation expressed by graphical symbols a control structure of a program, takes data from the input device, de a display device
Input / output processing to output data and create a graphical representation, and the control structure of the program displayed on the display device.
Editing operations performed by a user using an input device on a graphical representation
In response to the work, the instruction is the programming relating to the editing operation
An editing process for determining whether the instruction or not to give up over multiple stages the level of the control structure of the ram, when it is determined that the instruction to give the level of control structure of a program across multiple stages by the editing process, before
Program system from the level of the serial instruction of program control structure
It follows the level of the upper control structure, and a level adjusting process of obtaining the level required to reach the control relating to the command, the editing process of the control structure of the instruction program level
Is determined to be an instruction to abandon the program over a plurality of stages, and the level adjustment processing determines a higher level of the program control structure.
The level of control related to the instruction determined by tracing is determined as an abandonment level, and the input / output processing is between the instruction and the abandonment level.
Program editing apparatus characterized by being configured to so that as a level to give a level is displayed on the graphical representation of the display device.
【請求項2】プログラムの制御構造を図記号で表現する
図式表現中で命令の放棄レベルを自動設定するプログラ
ム編集装置であって入力装置からデータを取り込み、ディスプレイ装置にデ
ータを出力して図式表現をさせる入出力処理とディスプレイ装置に表示されたプログラムの制御構造の
図式表現に対して利用者が入力装置を用いて行う編集操
に対応して、前記編集操作に係わる命令前記プログ
ラムの制御構造のレベルを複数段にわたって放棄する命
令か否かを判別する編集処理と、前記編集処理によって
プログラムの制御構造のレベルを複数段にわたって放棄
する命令と判別されたときに、前記命令のプログラム制
御構造のレベルからプログラム制御構造の上位のレベル
辿り、前記命令に係わる制御に到達するまでのレベル
を求めるレベル調整処理と、命令または制御を表す前記表示装置に表示するための記
に対応づけて前記命令が放棄する放棄レベル数および
前記記号の内容を表すテキストを設定する内部テーブ
ルとを備え、前記編集処理が前記命令がプログラムの制御構造のレベ
ルを複数段にわたって放棄する命令と判別し、前記 レベ
ル調整処理が前記プログラム制御構造の上位のレベルを
辿ることで求めた前記命令に係わる制御のレベル放棄
レベルと決定したときに、前記内部テーブルの前記命令
該当する記号に対応する放棄レベル数として前記命令
と前記放棄レベルの間にあるレベル数を設定し、前記入出力処理が前記内部テーブルをもとに、前記命令
と前記放棄レベルの間にあるレベルを放棄するレベルと
して前記ディスプレイ装置の 図式表現上に表示させるよ
うに構成したことを特徴とするプログラム編集装置。
2. A program editing apparatus for automatically setting a waiver level instructions in diagrammatic representation expressed by graphical symbols a control structure of a program, takes data from the input device, de a display device
Input / output processing to output data and create a graphical representation, and the control structure of the program displayed on the display device.
Editing operations performed by a user using an input device on a graphical representation
In response to the work, the instruction is the programming relating to the editing operation
An editing process for determining whether or not the instruction is to abandon the level of the control structure of the ram over a plurality of stages; and
If it is determined an instruction to relinquish level of the control structure of a program over multiple stages, the program system of instructions
Level from the level of the control structure of the higher-level program control structure
The traversal, a level adjusting process for obtaining the level required to reach the control relating to the command, the serial to be displayed on said display device indicating a command or control
Number of abandonment levels abandoned by said order in relation to
And an internal table for setting the text representing the contents of the symbol, level control structures of the editing process the instruction program
Is determined to be an instruction to abandon the program over a plurality of stages, and the level adjustment processing determines a higher level of the program control structure.
When determining the level of control related to the instruction obtained by tracing as the abandonment level, the instruction in the internal table is determined.
As the number of abandonment levels corresponding to the symbols corresponding to
And the number of levels between the abandonment level and the input / output processing based on the internal table.
And a level to abandon a level between the abandonment level and
Program editing apparatus characterized by being configured to so that is displayed on the graphical representation of the display device by.
JP03240092A 1992-02-20 1992-02-20 Program editing device Expired - Fee Related JP3283055B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03240092A JP3283055B2 (en) 1992-02-20 1992-02-20 Program editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03240092A JP3283055B2 (en) 1992-02-20 1992-02-20 Program editing device

Publications (2)

Publication Number Publication Date
JPH05233254A JPH05233254A (en) 1993-09-10
JP3283055B2 true JP3283055B2 (en) 2002-05-20

Family

ID=12357908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03240092A Expired - Fee Related JP3283055B2 (en) 1992-02-20 1992-02-20 Program editing device

Country Status (1)

Country Link
JP (1) JP3283055B2 (en)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
村上・宮城,"プログラム生成のためのYAC▲II▼表記法のあり方",第31回(昭和60年後期)全国大会講演論文集(▲I▼),情報処理学会,昭和60年9月9日〜12日,p.481−482
林・野沢,"パソコンにおけるYAC▲II▼エディタ",「第33回(昭和61年後期)全国大会論文集(▲I▼),情報処理学会,昭和61年10月1日〜3日,p.773−774

Also Published As

Publication number Publication date
JPH05233254A (en) 1993-09-10

Similar Documents

Publication Publication Date Title
JP4390093B2 (en) Automatic programming and simulation equipment
JP4329248B2 (en) NC machining simulation equipment
JPH0863346A (en) Program editing method and device therefor
JP3283055B2 (en) Program editing device
JPS63172330A (en) Halftone application system for document processor
JPH02151908A (en) Numerical controller with simulation function
JPH0221320A (en) Information processor having help function including editing function
JP2875135B2 (en) Program device for programmable controller
JPS58163036A (en) Automatic numbering device
JPH0747209B2 (en) Welding condition automatic setting device
JP3083552B2 (en) Hierarchy editing processor
JPH0230457A (en) Control device for work machine
JPH0954688A (en) Gui design supporting method
JP2540940B2 (en) Multi-window editing management method
JPH0433010A (en) Retrieving system for machining program
JP2518157B2 (en) Method and device for generating revision history of program
JP2797439B2 (en) Text editing support device
JP2928858B2 (en) Multi-window display control apparatus and method
JPS63255707A (en) Nc automatic programming device
JPH0314562B2 (en)
JPH01191269A (en) Image controller
JPH0358202A (en) Numerical controller with simulation function
JPS59194214A (en) Display device for teaching information
JP2618982B2 (en) Information processing apparatus and information processing method
JPH1177485A (en) Numerical control device provided with logical expression interpreting function and control method thereof

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000307

LAPS Cancellation because of no payment of annual fees