JP2650803B2 - Full screen editor control processor - Google Patents

Full screen editor control processor

Info

Publication number
JP2650803B2
JP2650803B2 JP24162691A JP24162691A JP2650803B2 JP 2650803 B2 JP2650803 B2 JP 2650803B2 JP 24162691 A JP24162691 A JP 24162691A JP 24162691 A JP24162691 A JP 24162691A JP 2650803 B2 JP2650803 B2 JP 2650803B2
Authority
JP
Japan
Prior art keywords
processing
line
screen
line command
command
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 - Lifetime
Application number
JP24162691A
Other languages
Japanese (ja)
Other versions
JPH0581259A (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.)
PII EFU YUU KK
Original Assignee
PII EFU YUU KK
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 PII EFU YUU KK filed Critical PII EFU YUU KK
Priority to JP24162691A priority Critical patent/JP2650803B2/en
Publication of JPH0581259A publication Critical patent/JPH0581259A/en
Application granted granted Critical
Publication of JP2650803B2 publication Critical patent/JP2650803B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、フルスクリーンエディ
タ制御処理装置に関し、特に、テーブルを用いて処理を
単純化したフルスクリーンエディタ制御処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a full-screen editor control processing device , and more particularly to a full-screen editor control processing device using a table to simplify processing.

【0002】フルスクリーンエディタは、1行毎に行コ
マンドの読み込み、解釈画面編集をくり返すラインエデ
ィタと異なり、処理画面の全ての行コマンドを読み込ん
だ後に各行コマンドを解釈して画面編集を行う方式を採
る。
A full screen editor is different from a line editor in which line commands are read and interpreted on a line-by-line basis, and is different from a line editor in which all line commands on a processing screen are read and then each line command is interpreted to edit the screen. Take.

【0003】[0003]

【従来の技術】フルスクリーンエディタの処理対象であ
る画面データは、図7の如き構成を有する。即ち、各行
毎に、先頭から行コマンドCMD、添字(行番号)SE
Q及び記事(例えば「むかしむかし」)からなる。行コ
マンドは、例えば、図示の11種類が用意されている。
例えば、行コマンド“CC”は、“CC〜CC,A”又
図示は省略されているが例えば“CC〜CC,B”で
1組として働き、CCで囲まれた部分をA又はBに複写
する命令である。図示の場合、“002”行及び“00
3”行の記事が、“004”行の後に複写される。
2. Description of the Related Art Screen data to be processed by a full screen editor has a configuration as shown in FIG. That is, for each line, a line command CMD, a suffix (line number) SE from the beginning.
Q and an article (for example, “Once upon a time”). As the line commands, for example, 11 types shown are prepared.
For example, line command "CC" is, "CC~CC, A" replication or although not shown example "CC~CC, B" acts as a set in a portion surrounded by CC on A or B It is an instruction to do. In the illustrated case, the “002” line and the “00”
The article on line 3 is copied after line 004.

【0004】このような行コマンドの解釈実行は、図8
の如きフローチャートに従って行われる。図8から明ら
かにように、この処理は、行コマンドを先頭(IDX=
1)から順に参照してその種別をif文等で判断し、そ
の種別に応じた処理(即ちそのコマンド)を実行してか
ら主制御(図中左側のフロー)へ復帰することをくり返
すものである。例えば、行コマンド“CC”を認識した
時点で「CC処理(ルーチン)」(図中の右側のフロ
ー)に制御が渡され、“CC〜CC,A”等の1組の行
コマンドを実行してから制御が戻される。
The interpretation and execution of such a line command are described in FIG.
It is performed according to a flowchart as shown in FIG. As is clear from FIG. 8, this processing starts with the line command (IDX =
By repeatedly referring to the order from 1), determining the type by an if statement or the like, executing a process corresponding to the type (that is, the command), and then returning to the main control (the flow on the left side in the figure). It is. For example, when the line command “CC” is recognized, control is passed to “CC processing (routine)” (the flow on the right side in the figure), and a set of line commands such as “CC to CC, A” is executed. Then control is returned.

【0005】ところで、この行コマンドの解釈実行は、
図9に示す行コマンド解釈データ並び替え(実行)ルー
チンによって行われる。この行コマンド解釈実行ルーチ
ンは、図示の如く、各画面処理ルーチン毎に備えられ
る。これは、各画面ルーチンの画面処理データの内容、
行数が各々異なるため、各々の画面ルーチンに備えてお
く必要があるためである。
By the way, the interpretation and execution of this line command are as follows:
This is performed by a line command interpretation data rearrangement (execution) routine shown in FIG. This line command interpretation execution routine is provided for each screen processing routine as shown in the figure. This is the content of the screen processing data of each screen routine,
This is because it is necessary to prepare for each screen routine because the number of lines is different.

【0006】[0006]

【発明が解決しようとする課題】前述の従来技術によれ
ば、処理が複雑になってしまうという問題があった。例
えば、行コマンドの種別を知るために、if文での判断
を多数回くり返さなければならない。また、行コマンド
“CC”の後に行コマンド“A”が在る場合とその逆の
場合とで、処理を別にしなければならず、各ルーチンが
複雑に(長く)なる。また、行コマンド“A”と組合わ
される行コマンドは“CC”,“MM”等多数あり、種
々の場合に対応できる処理ルーチンとしておく必要があ
るため、各ルーチンが複雑になる。一方、このように処
理が複雑化し、各ルーチンが長くなるため、解釈実行の
ために長い時間を必要とするという問題も生じていた。
According to the above-mentioned prior art, there is a problem that processing becomes complicated. For example, in order to know the type of the line command, it is necessary to repeat the judgment in the if statement many times. In addition, the processing must be separated depending on whether the line command "A" is present after the line command "CC" or vice versa, and each routine becomes complicated (long). Further, there are many line commands such as "CC" and "MM" which are combined with the line command "A", and it is necessary to provide a processing routine that can cope with various cases, so that each routine becomes complicated. On the other hand, since the processing becomes complicated and each routine becomes long, there has been a problem that a long time is required for executing the interpretation.

【0007】また、前述の従来技術によれば、図7の1
1種の行コマンドの指定(記述)が変更になったり、そ
の種別が増加したりした場合、図8に示す処理を行うた
めに、各処理ルーチン及び主制御ルーチンを修正しなけ
れば対応できないという問題があった。
Further, according to the above-mentioned prior art, FIG.
If the specification (description) of one type of line command is changed or the type of line command is increased, it cannot be handled unless each processing routine and main control routine are modified in order to perform the processing shown in FIG. There was a problem.

【0008】更に、各画面処理ルーチン毎に行コマンド
解釈実行ルーチンを備えなければならないため、画面処
理ルーチンが大きくなってしまうという問題があった。
本発明は、行コマンドの変更等に容易に対応できるフル
スクリーンエディタ制御処理装置を提供することを目的
とする。
Furthermore, since a line command interpretation and execution routine must be provided for each screen processing routine, there is a problem that the screen processing routine becomes large.
The present invention has a
To provide a screen editor control processor
And

【0009】[0009]

【0010】[0010]

【課題を解決するための手段】図1は、本発明の原理構
成図であり、本発明によるデータ処理装置を示す。図1
において、画面処理ルーチン3は、画面データ11を用
いて画面編集を行う。このために、画面処理ルーチン3
は、行コマンドテーブル5を行コマンド処理ルーチン7
に渡して行コマンドの解釈を依頼する。
FIG. 1 is a block diagram showing the principle of the present invention, and shows a data processing apparatus according to the present invention. FIG.
In, the screen processing routine 3 performs screen editing using the screen data 11. Therefore, the screen processing routine 3
Stores the row command table 5 in the row command processing routine 7
To request interpretation of the line command.

【0011】行コマンド処理ルーチン7は、画面データ
11の行コマンドを解釈する。即ち、行コマンドテーブ
ル5の行コマンドを解釈し、その結果を添字テーブル6
として画面処理ルーチン3に返す。この添字テーブル6
作成のために、行コマンド処理ルーチン7は、テーブル
8,9を用いて行コマンドに対応して行うべき処理を決
定する。このテーブル8,9は、行コマンドに対応して
行うべき処理を定めたものである。
The line command processing routine 7 interprets a line command of the screen data 11. That is, the line commands in the line command table 5 are interpreted, and the result is stored in the subscript table 6.
To the screen processing routine 3. This subscript table 6
For creation, the line command processing routine 7 uses the tables 8 and 9 to determine the processing to be performed in response to the line command. The tables 8 and 9 define processing to be performed in response to a line command.

【0012】画面処理ルーチン3は、解釈に基づいて行
コマンドを実行する。即ち、決定された処理を実行す
る。このために、画面処理ルーチン3に、画面データ1
1の記事の並び替えをして行コマンドを実行するデータ
並び替え部4を設ける。そして、このデータ並び替え部
4が、添字テーブル6に従って記事の並び替えをする。
The screen processing routine 3 executes a line command based on the interpretation. That is, the determined processing is executed. For this purpose, the screen data 1
A data rearranging unit 4 for rearranging one article and executing a line command is provided. Then, the data rearranging section 4 rearranges the articles according to the subscript table 6.

【0013】[0013]

【作用】本発明によれば、行コマンドの解釈は行コマン
ド処理ルーチン7が行うので、各画面処理ルーチン3は
行コマンドの実行部(即ちデータ並び替え部4)を備え
ればよく、この分各画面処理ルーチン3を小さくでき
る。また、複数の画面処理ルーチン3に対して1つの行
コマンド処理ルーチン7を設ければよいので、この分処
理を簡単にでき資源を節約できる。
According to the present invention, since the line command is interpreted by the line command processing routine 7, each screen processing routine 3 only needs to have a line command execution unit (that is, the data rearranging unit 4). Each screen processing routine 3 can be reduced. Also, since one line command processing routine 7 may be provided for a plurality of screen processing routines 3, the processing can be simplified and resources can be saved.

【0014】一方、行コマンド処理ルーチン7は、行コ
マンドの解釈をテーブル8,9を用いて行うので、その
処理が複雑化し、また、解釈のために長時間を必要とす
ることがない。即ち、if文での判断を多数回くり返す
ことなく、少数回のテーブル8,9の参照で済む。ま
た、行コマンドの種々の組合わせ及びこれに対応する処
理はテーブル8,9において考慮されるので、行コマン
ド処理ルーチン7が複雑化し、長大化することはない。
On the other hand, since the line command processing routine 7 interprets the line commands using the tables 8 and 9, the processing is complicated and the interpretation does not require a long time. That is, it is sufficient to refer to the tables 8 and 9 a few times without repeating the judgment in the if sentence many times. Further, since various combinations of line commands and processes corresponding thereto are considered in the tables 8 and 9, the line command processing routine 7 is not complicated and does not become long.

【0015】更に、テーブル8,9を用いることによ
り、行コマンドの変更等の場合でも、行コマンド処理ル
ーチン7を修正する必要はなく、テーブル8,9を修正
するのみで済むので、修正に容易に対処できる。
Further, by using the tables 8 and 9, even when the line command is changed, it is not necessary to modify the line command processing routine 7, and only the tables 8 and 9 need to be modified. Can deal with.

【0016】[0016]

【実施例】図1において、フルスクリーンエディタ2
は、中央処理装置(CPU)と主記憶装置(MMU)と
からなる処理装置1に設けられ、データバッファ10に
格納された画面データ11に基づき画面編集等の処理を
行い、編集した画面を表示装置12の表示画面に表示す
る。オペレータは、端末(図示せず)からフルスクリー
ンエディタ2を使用して、画面データ11に基づく画面
を得る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In FIG.
Is provided in a processing unit 1 including a central processing unit (CPU) and a main storage unit (MMU), performs processing such as screen editing based on screen data 11 stored in a data buffer 10, and displays the edited screen. It is displayed on the display screen of the device 12. The operator obtains a screen based on the screen data 11 using the full screen editor 2 from a terminal (not shown).

【0017】画面データ11は、例えば、図2に示す如
きものであり、「○○○処理<更新>」の画面データ1
1−1、「△△△処理<更新>」の画面データ11−2
等、複数存在する。画面データ11−1は、1画面あた
り10行のデータが10画面(100行)集まって構成
されている。画面データ11−2は、1画面、8行のデ
ータで構成されている。なお、以下の説明では、画面デ
ータ11−1が適宜参照される。
The screen data 11 is, for example, as shown in FIG. 2, and includes the screen data 1 of "XXX processing <update>".
1-1, screen data 11-2 of “△△△ process <update>”
And so on. The screen data 11-1 is configured by collecting 10 screens (100 rows) of data of 10 lines per screen. The screen data 11-2 is composed of eight lines of data for one screen. In the following description, the screen data 11-1 is appropriately referred to.

【0018】画面データ11は、各行毎に、先頭から、
行コマンドCMD、添字(行番号)SEQ及び記事(例
えば「むかしむかし」)から構成される。行コマンドの
種類と命令の意味は、図7に示したものと同様である。
行コマンドが空白の行も存在する。添字は、先頭行から
順に付され、各行の行番号を表す。記事は、実際のデー
タであり、画面に表示される内容である。従って、表示
装置12に得られる画面は、例えば、画面データ11−
1において、各行の行コマンド及び添字を省略したもの
に等しい。
The screen data 11 includes, for each line,
It is composed of a line command CMD, a subscript (line number) SEQ, and an article (for example, “Once upon a time”). The type of the line command and the meaning of the command are the same as those shown in FIG.
Some lines have blank line commands. Subscripts are added in order from the first line, and represent the line number of each line. The article is actual data and is the content displayed on the screen. Therefore, the screen obtained on the display device 12 is, for example, screen data 11-
1 is equivalent to omitting the line command and subscript of each line.

【0019】画面処理ルーチン3は、フルスクリーンエ
ディタ2により生成される。この生成は、読み込まれた
画面データ11−1,11−2毎に行われる。例えば、
画面データ11−1を指定してエンターキーが押下げら
れると、画面データ11−1の全ての行(100行)即
ち全ての画面(フルスクリーン)分が読み込まれ、解釈
実行される。従って、図2に示す如く、複数の画面処理
ルーチン3−1及び3−2が生成されて存在し、エンタ
ーされた画面データ11−1及び11−2に対応する。
The screen processing routine 3 is generated by the full screen editor 2. This generation is performed for each of the read screen data 11-1 and 11-2. For example,
When the screen data 11-1 is designated and the enter key is pressed, all lines (100 lines) of the screen data 11-1, that is, all screens (full screen) are read and interpreted. Therefore, as shown in FIG. 2, a plurality of screen processing routines 3-1 and 3-2 are generated and exist, and correspond to the entered screen data 11-1 and 11-2.

【0020】この生成の際、各画面処理ルーチン3−1
及び3−2には、各々、フルスクリーンエディタ2によ
り、データ並び替え部(行コマンド実行ルーチン)4の
みが組み込まれ、行コマンド処理(解釈)ルーチンは組
込まれない。
At the time of this generation, each screen processing routine 3-1
And 3-2, only the data rearranging unit (line command execution routine) 4 is incorporated by the full screen editor 2, and the line command processing (interpretation) routine is not incorporated.

【0021】一方、このようにエンターの都度生成され
複数存在する画面処理ルーチン3に対応して、行コマン
ド処理ルーチン7が、予め1つだけ設けられ、行コマン
ド決定テーブル8及び処理決定テーブル9を持つ。行コ
マンド処理ルーチン7は、複数の画面処理ルーチン3−
1及び3−2からの依頼を受けて、行コマンドの解釈を
行い、その結果を依頼元へと返す。
On the other hand, only one line command processing routine 7 is provided in advance corresponding to a plurality of screen processing routines 3 generated each time the enter operation is performed, and the line command determination table 8 and the processing determination table 9 are provided. Have. The line command processing routine 7 includes a plurality of screen processing routines 3-
In response to requests from 1 and 3-2, the line command is interpreted and the result is returned to the requester.

【0022】画面処理ルーチン3と行コマンド処理ルー
チン7との間のインタフェースは、図2に示す通りであ
る。例えば、画面処理ルーチン3−1から行コマンド処
理ルーチン7への依頼の際は、行コマンドテーブル5−
1及び全体行数(100行)である。一方、この応答の
際は、添字テーブル6−1及び処理行数(処理の結果何
行になったか)である。画面処理ルーチン3−2につい
ても、同様に、図示の如きインタフェースによる。
The interface between the screen processing routine 3 and the line command processing routine 7 is as shown in FIG. For example, when the screen processing routine 3-1 requests the line command processing routine 7, the line command table 5-
1 and the total number of rows (100 rows). On the other hand, in the case of this response, the subscript table 6-1 and the number of processed lines (how many lines have been processed). Similarly, the screen processing routine 3-2 uses an interface as shown in the figure.

【0023】画面処理ルーチン3−1と行コマンド処理
ルーチン7との間のインタフェース、特に、行コマンド
テーブル5−1及び添字テーブル6−1について、その
詳細を図3に示す。行コマンドテーブル5−1は、画面
データ11−1の行コマンドCMDの部分のみを取り出
して各行に対応するように並べたものである。このと
き、行コマンドが空白の行については、そのまま空白と
してある。従って、実際は、「1,5,10,100」
等の添字は行コマンドテーブル5−1に付する必要はな
い(図では、説明のため、添字を付している)。一方、
添字テーブル6−1は、行コマンドの解釈の結果を添字
(行番号)のみで表したものである。
FIG. 3 shows details of the interface between the screen processing routine 3-1 and the line command processing routine 7, particularly the line command table 5-1 and the subscript table 6-1. The row command table 5-1 is obtained by taking out only the row command CMD portion of the screen data 11-1 and arranging it so as to correspond to each row. At this time, a line with a blank line command is left blank. Therefore, in practice, "1, 5, 10, 100"
It is not necessary to add subscripts such as to the line command table 5-1 (in the figure, subscripts are added for explanation). on the other hand,
The subscript table 6-1 shows the result of interpretation of a line command using only subscripts (line numbers).

【0024】図示の場合、行コマンドテーブル5−1に
おいて、2行目と4行目に“CC〜CC”があり、6行
目に“A”がある。この“CC〜CC,A”の組合わせ
は、“6行目の次に2行目乃至4行目を複写”と解釈さ
れる。そこで、添字テーブル6−1において、添字
「1,2,3,4,5,6」の後に「2,3,4」が付
加される。また、行コマンドテーブル5−1の8行目の
“D”は、“8行目を削除”と解釈される。そこで、添
字テーブル6−1においては、「8」が削除され存在し
ない。また、行コマンドテーブル5−1の9行目の“I
5”は、“9行目の前に空白を5行挿入”と解釈され
る。そこで、添字テーブル6−1においては、「9」の
前に5行の空白を表す「0,0,0,0,0」が挿入さ
れる。以上の解釈及び添字テーブル6−1の作成は、行
コマンド処理ルーチン7が行う。なお、行コマンドテー
ブル5−1の10行目までを処理した時点で、添字テー
ブル6−1の対応する処理行数は図示の如く17行とな
っている。
In the illustrated case, in the row command table 5-1, "CC-CC" is in the second and fourth rows, and "A" is in the sixth row. This combination of “CC to CC, A” is interpreted as “copy the second to fourth lines after the sixth line”. Therefore, in the subscript table 6-1, “2, 3, 4” is added after the subscript “1, 2, 3, 4, 5, 6”. Further, “D” on the eighth line of the line command table 5-1 is interpreted as “delete the eighth line”. Therefore, “8” is deleted from the subscript table 6-1 and does not exist. Also, “I” in the ninth line of the line command table 5-1
"5" is interpreted as "insert five blank spaces before the ninth line." Therefore, in the subscript table 6-1, "0, 0, 0" representing the blank space of five lines before "9". , 0,0 "is inserted. The line command processing routine 7 performs the above interpretation and the creation of the subscript table 6-1. When the processing up to the tenth line of the line command table 5-1 has been processed, the corresponding number of processed lines in the subscript table 6-1 is 17 as shown in the figure.

【0025】添字テーブル6−1を受け取った画面処理
ルーチン3−1においては、そのデータ並び替え部4
(4−1)が、添字テーブル6−1に従って記事の並び
替えをする。即ち、画面データ11−1において、1行
目から6行目の記事はそのままとし、6行目の記事の後
に再び2行目乃至4行目の記事を挿入し、8行目の記事
を削除し、9行目の前に5行の空行を挿入する。これに
より、新しい編集画面が得られる。この画面は、表示装
置12の表示画面に表示される。
In the screen processing routine 3-1 which receives the subscript table 6-1, the data rearranging section 4
(4-1) sorts articles according to the subscript table 6-1. That is, in the screen data 11-1, the articles on the first to sixth lines are left as they are, the articles on the second to fourth lines are inserted again after the article on the sixth line, and the articles on the eighth line are deleted. Then, five blank lines are inserted before the ninth line. Thereby, a new editing screen is obtained. This screen is displayed on the display screen of the display device 12.

【0026】行コマンド処理ルーチン7における行コマ
ンドの解釈は、図4に示す行コマンド決定テーブル8及
び図5に示す処理決定テーブル9を参照して行われる。
行コマンド決定テーブル8は、行コマンドの種類毎に
後述の処理決定テーブル9上での所定の位置を示すよう
添字が対応づけられて格納される。即ち、図4におい
て、行コマンド決定テーブル8は、図7に示した全ての
行コマンドと、行コマンドの無い空行を表す“空白”と
について、処理決定テーブル9上での添字(番号)を格
納する。行コマンド処理ルーチン7は、現在の解釈対象
である行コマンド、例えば“CC”の場合、当該“C
C”について行コマンド決定テーブル8を参照してその
添字“10”を求め、この添字“10”にもとづいて
理決定テーブル9の“現在”(図では“現”と表してお
り、また、図中、縦方向である)の添字における“1
0”の欄を参照する。
The interpretation of the line command in the line command processing routine 7 is performed with reference to the line command determination table 8 shown in FIG. 4 and the processing determination table 9 shown in FIG.
In the row command determination table 8, subscripts are stored so as to indicate a predetermined position on a processing determination table 9 described later for each type of row command. That is, in FIG. 4, the line command determination table 8 indicates the subscripts (numbers) on the processing determination table 9 for all the line commands shown in FIG. 7 and “blank” representing a blank line without a line command. Store. In the case of a line command to be interpreted at present, for example, “CC” , the line command processing routine 7
The subscript “10” is obtained for the “ C” by referring to the row command determination table 8, and based on the subscript “10”, the “current” (represented as “current” in the figure) of the processing determination table 9. And the vertical direction in the figure).
Refer to the column "0".

【0027】処理決定テーブル9は、現在の解釈の対象
である行コマンドとこれに先行する行コマンドとの関係
で当該解釈の対象である行コマンドに対応して行うべき
処理を定める。図中、先行するコマンドは、“前”と表
しており、横方向に添字に対応して示されている。行コ
マンド処理ルーチン7は、解釈の対象である行コマンド
により行コマンド決定テーブル8を参照し、この結果に
より処理決定テーブル9を参照し、対応して行うべき処
理を決定する。例えば、現在の行コマンド“CC”の添
字“10”により処理決定テーブル9を参照するが図2
の例でのSEQ「002」の位置の“CC”であった場
合には、前の行コマンドが“空白”であり添字“15”
であることから、座標(10,15)の内容をみて当該
“CC”は“前CC”であることが判る。SEQ「00
4」の位置の“CC”の場合には、前の行コマンドが
“前CC”であっことから添字“3”であり、座標(1
0,3)の内容をみて当該“CC”は“後CC”である
ことを知る。これにより、複写処理を行うべきこと及び
その先頭行又は最後の行が定まる。
The processing decision table 9 defines the processing to be performed in accordance with the line command to be interpreted in relation to the current line command to be interpreted and the line command preceding the current line command. In the figure, the preceding command is expressed as "previous", and is indicated in the horizontal direction corresponding to the subscript. The line command processing routine 7 refers to the line command determination table 8 based on the line command to be interpreted, and refers to the processing determination table 9 based on the result, and determines the processing to be performed correspondingly. For example, the processing determination table 9 is referred to by the subscript “10” of the current line command “CC” .
If "CC" at the position of SEQ "002" in the example of
If the previous line command is “blank” and the subscript “15”
From the coordinates (10, 15),
It can be seen that “CC” is “previous CC”. SEQ "00
In the case of "CC" at position "4", the previous line command
Since it is “previous CC”, the subscript is “3” and the coordinates (1
It is known from the contents of (0, 3) that the "CC" is the "post-CC". As a result, what should be copied and the first or last line thereof are determined.

【0028】行コマンドを変更等する場合は、行コマン
ド決定テーブル8及び処理決定テーブル9を変更すれば
よい。例えば、行コマンドの数を増やす場合は、行コマ
ンド決定テーブル8において当該行コマンドを追加して
ユニークな添字を対応させる。そして、処理決定テーブ
ル9において、考えられる(使用を許される)他の行コ
マンドとの組合わせの部分に処理のための記述(例えば
“前CC”の如き)をする。これにより、行コマンド処
理ルーチン7の変更なしで修正に対応できる。
When the line command is to be changed, the line command determination table 8 and the processing determination table 9 may be changed. For example, when increasing the number of line commands, the line commands are added to the line command determination table 8 to correspond to unique subscripts. Then, in the processing determination table 9, a description for processing (for example, “previous CC”) is made in a part of a combination with another conceivable (permitted to use) line command. Thereby, it is possible to cope with the modification without changing the line command processing routine 7.

【0029】図6は行コマンド処理フローを示す。図6
において、行コマンド処理ルーチン7は、初期処理とし
て、現在の行コマンドの行コマンドテーブル5−1で添
字としてIDX(インデクスレジスタ)に“1”をセッ
トし(処理)、BEF−IDX(ビフォアインデクス
レジスタ)に“15”をセットする(処理)。添字
“15”は、処理決定テーブル9の前行コマンドの添字
であり、“空白”を表す。
FIG. 6 shows a line command processing flow. FIG.
In the row command processing routine 7, as initial processing, IDX (index register) is set to “1” as a subscript in the row command table 5-1 of the current row command (processing), and BEF-IDX (before index register) is set. Is set to "15" (process). The suffix “15” is a suffix of the previous line command of the processing determination table 9 and represents “blank”.

【0030】次に、行コマンド処理ルーチン7は、ID
Xの値が全体行数(画面処理ルーチン3−1から受け取
った値)以上か否かを調べ(処理)、全体行数以上で
ある場合には処理を終了する。全体行数より小さい場合
には、当該行の行コマンドを用いて行コマンド決定テー
ブル8を参照し、その種別、即ち、対応する添字を求め
る(処理)。種別が判断できない場合、即ち、行コマ
ンド又は対応する添字が無い場合、エラーとして(処理
)、処理を終了する。
Next, the row command processing routine 7
It is checked whether or not the value of X is equal to or greater than the total number of lines (the value received from the screen processing routine 3-1) (processing). If the value of X is equal to or greater than the total number of lines, the process ends. If it is smaller than the total number of lines, the type of the line command, ie, the corresponding subscript, is obtained by referring to the line command determination table 8 using the line command of the line (process). If the type cannot be determined, that is, if there is no line command or the corresponding subscript, an error is detected (processing), and the processing is terminated.

【0031】次に、行コマンド処理ルーチン7は、求め
た添字をNOW−IDX(ナウインデクスレジスタ)に
セットし、NOW−IDX及びBEF−IDXを用いて
処理決定テーブル9を参照し、処理を決定し(処理
)、当該処理を行う(処理)。なお、この解釈の結
果は、後にまとめて画面処理ルーチン3−1により実行
される。この後、行コマンド処理ルーチン7は、IDX
の値を+1カウントアップし、BEF−IDXに必要の
値をセットし(処理)、処理以下をくり返す。
Next, the line command processing routine 7 sets the obtained subscript in the NOW-IDX (now index register), determines the processing by referring to the processing determination table 9 using NOW-IDX and BEF-IDX. (Process), and then performs the process (process). The result of this interpretation is collectively executed later by the screen processing routine 3-1. Thereafter, the line command processing routine 7 executes IDX processing.
Is incremented by +1 and the necessary value is set in BEF-IDX (processing), and the processing and subsequent steps are repeated.

【0032】今、図3に示した行コマンドテーブル5−
1について図6に示す処理を行うとすると、以下のよう
になる。行コマンドテーブル5−1の1行目について、
NOW−IDXは“12”、BEF−IDXは“15”
となる。そこで、処理決定テーブル9から処理“S”が
決定される。処理“S”が実行されると、対応する行コ
マンドテーブル5−1の1行目は、そのまま残される。
処理“S”を選択した場合、BEF−IDXは更新しな
い。
Now, the line command table 5 shown in FIG.
Assuming that the processing shown in FIG. Regarding the first line of the line command table 5-1
NOW-IDX is “12”, BEF-IDX is “15”
Becomes Therefore, the process “S” is determined from the process determination table 9. When the process “S” is executed, the first line of the corresponding line command table 5-1 is left as it is.
When the process “S” is selected, the BEF-IDX is not updated.

【0033】行コマンドテーブル5−1の2行目につい
て、NOW−IDXは“10”、BEF−IDXは“1
5”である。これにより、“前CC”が選択される。B
EF−IDXは、“前CC”に対応する“3”とされ
る。
Regarding the second row of the row command table 5-1, NOW-IDX is "10" and BEF-IDX is "1".
5 ", whereby the" previous CC "is selected.
EF-IDX is set to “3” corresponding to “previous CC”.

【0034】同様に、3行目について、NOW−IDX
は“12”でBEF−IDXは“3”で“S”が選択さ
れ、4行目について、NOW−IDXは“10”でBE
F−IDXは“3”で“後CC”が選択され、BEF−
IDXが“9”とされる。また、6行目について、NO
W−IDXは“6”でBEF−IDXは“9”で“A−
CA”が選択される。即ち、“CC〜CC,A”の処理
が選択される。
Similarly, for the third line, NOW-IDX
Is "12", BEF-IDX is "3" and "S" is selected. For the fourth row, NOW-IDX is "10" and BE
As for F-IDX, “3” is selected and “after CC” is selected.
IDX is set to “9”. For the sixth line, NO
W-IDX is “6”, BEF-IDX is “9” and “A-
CA ”is selected, that is, the processing of“ CC to CC, A ”is selected.

【0035】また、8行目及び9行目について、BEF
−IDXの値に関係なく、“D”及び“I”が選択され
る。以上の選択した処理を実行(処理)すると、“C
C〜CC,A”により、添字「1,2,3,4,5,
6」の後に「2,3,4」が付加され、添字「8」が削
除され、添字「9」の前に添字「0,0,0,0,0」
が挿入される。
For the eighth and ninth lines, the BEF
-"D" and "I" are selected regardless of the value of IDX. When the above selected processing is executed (processed), “C
C to CC, A ", the subscripts" 1, 2, 3, 4, 5,
After "6", "2,3,4" is added, subscript "8" is deleted, and subscript "0,0,0,0,0" is added before subscript "9".
Is inserted.

【0036】[0036]

【発明の効果】以上説明したように、本発明によれば、
フルスクリーンエディタ制御処理において、行コマンド
処理ルーチン、行コマンド決定テーブル及び処理決定テ
ーブルを備えることにより、行コマンドの解釈をテーブ
ルを用いた単純な処理で行うことができるので、解釈の
時間を短縮でき、また、行コマンドの変更等にもテーブ
ルの変更で容易に対応でき、一方、画面処理ルーチン毎
に行コマンド解釈の手段を備える必要がないので、画面
処理ルーチンを小さくできる。
As described above, according to the present invention,
By providing a line command processing routine, a line command determination table, and a processing determination table in the full screen editor control processing, line commands can be interpreted by simple processing using a table, so that the time required for interpretation can be reduced. In addition, it is possible to easily cope with a change in the line command by changing the table. On the other hand, since it is not necessary to provide a means for interpreting the line command for each screen processing routine, the screen processing routine can be reduced in size.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】インタフェース説明図である。FIG. 2 is an explanatory diagram of an interface.

【図3】インタフェースの具体例を示す図である。FIG. 3 is a diagram showing a specific example of an interface.

【図4】行コマンド決定テーブル構成図である。FIG. 4 is a configuration diagram of a row command determination table.

【図5】処理決定テーブル構成図である。FIG. 5 is a configuration diagram of a process determination table.

【図6】行コマンド処理フローである。FIG. 6 is a flowchart of a row command process.

【図7】画面データの説明図である。FIG. 7 is an explanatory diagram of screen data.

【図8】従来技術説明図である。FIG. 8 is an explanatory diagram of a conventional technique.

【図9】従来技術説明図である。FIG. 9 is an explanatory diagram of a conventional technique.

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

1 処理装置(CPU/MMU) 2 フルスクリーンエディタ 3 画面処理ルーチン 4 データ並び替え部 5 行コマンドテーブル 6 添字テーブル 7 行コマンド処理ルーチン 8 行コマンド決定テーブル 9 処理決定テーブル 10 データバッファ 11 画面データ 12 表示装置 DESCRIPTION OF SYMBOLS 1 Processing unit (CPU / MMU) 2 Full screen editor 3 Screen processing routine 4 Data rearranging unit 5 Line command table 6 Subscript table 7 Line command processing routine 8 Line command determination table 9 Processing determination table 10 Data buffer 11 Screen data 12 Display apparatus

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画面データ(11)を用いて画面編集を
行う画面処理手段(3)と、 前記画面データ(11)の行コマンドを解釈する行コマ
ンド処理手段(7)と、 前記行コマンド毎に処理決定テーブル(9)の所定の位
置を示すようにされた行コマンド決定テーブル(8)
と、 解釈の対象である行コマンドとこれに先行する行コマン
ドとの関係で当該解釈の対象である行コマンドに対応し
て行うべき処理を定めた処理決定テーブル(9)とを設
け、 前記行コマンド処理手段(7)は、前記解釈の対象であ
る行コマンドにより前記行コマンド決定テーブル(8)
を参照し、この結果とこれに先行する行コマンドとによ
り前記処理決定テーブル(9)を参照し、前記対応して
行うべき処理を決定するよう構成され、 前記画面処理手段(3)は、当該決定された処理を実行
するよう構成されてなることを特徴とするフルスクリー
ンエディタ制御処理装置。
1. A screen processing means (3) for editing a screen using screen data (11); a line command processing means (7) for interpreting a line command of the screen data (11); A row command determination table (8), which indicates a predetermined position of the processing determination table (9).
And a processing decision table (9) that defines processing to be performed in response to the line command to be interpreted in relation to the line command to be interpreted and the line command preceding the line command. The command processing means (7) is configured to execute the line command determination table (8) according to the line command to be interpreted.
It refers to the, this result and with reference to this previous row commands and the I <br/> Ri said processing determining table (9), is configured to determine the to be performed corresponding to the processing, the screen processing unit (3) A full-screen editor control processing device configured to execute the determined processing.
【請求項2】 前記画面処理手段(3)に前記画面デー
タ(11)の記事の並び替えをして前記行コマンドを実
行するデータ並び替え部(4)を設け、 前記データ並
び替え部(4)が、前記添字テーブル(6)に従って前
記記事の並び替えをすることを特徴とする請求項1に記
載のフルスクリーンエディタ制御処理装置。
2. A data rearranging unit (4) for rearranging articles of the screen data (11) and executing the line command is provided in the screen processing unit (3). 2) sorts the articles according to the subscript table (6).
JP24162691A 1991-09-20 1991-09-20 Full screen editor control processor Expired - Lifetime JP2650803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24162691A JP2650803B2 (en) 1991-09-20 1991-09-20 Full screen editor control processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24162691A JP2650803B2 (en) 1991-09-20 1991-09-20 Full screen editor control processor

Publications (2)

Publication Number Publication Date
JPH0581259A JPH0581259A (en) 1993-04-02
JP2650803B2 true JP2650803B2 (en) 1997-09-10

Family

ID=17077123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24162691A Expired - Lifetime JP2650803B2 (en) 1991-09-20 1991-09-20 Full screen editor control processor

Country Status (1)

Country Link
JP (1) JP2650803B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6325731A (en) * 1986-07-18 1988-02-03 Mitsubishi Electric Corp Data processor
JPH01251264A (en) * 1988-03-31 1989-10-06 Nec Corp Command adding and deleting system for time sharing system

Also Published As

Publication number Publication date
JPH0581259A (en) 1993-04-02

Similar Documents

Publication Publication Date Title
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
JP2002007951A (en) Slip input method, its execution device, and storage medium recording its process program
JP2650803B2 (en) Full screen editor control processor
JP2875135B2 (en) Program device for programmable controller
JPH11250037A (en) Content editing device and recording medium
JP2975981B2 (en) Image search method
JP3083552B2 (en) Hierarchy editing processor
JPH0511990A (en) Package software processing method
JPH05197590A (en) Display processing system for software test item
JP2507399B2 (en) Database equipment
JP2745500B2 (en) String search device
JP2638195B2 (en) Input method by dynamic control
JPH0628134A (en) Method for selecting plural data and device therefor
JPH05274203A (en) Data processor
JPH04287095A (en) Window reduction device
JPH04115332A (en) File managing device
JPH06118914A (en) Automatic demonstration device
JPH06342430A (en) Automatic page divided display editing device
JPH03291723A (en) Data control method
JPH05257955A (en) Method for editing table
JPH05210661A (en) Word processor and method therefor
JPH0648436B2 (en) Data processing device
JPH0785089A (en) Character processing device
JPH05159038A (en) Correction system for graphic in stroke input
JP2000112945A (en) Processor and record medium