JPH0581259A - Full screen editor control processing system - Google Patents

Full screen editor control processing system

Info

Publication number
JPH0581259A
JPH0581259A JP24162691A JP24162691A JPH0581259A JP H0581259 A JPH0581259 A JP H0581259A JP 24162691 A JP24162691 A JP 24162691A JP 24162691 A JP24162691 A JP 24162691A JP H0581259 A JPH0581259 A JP H0581259A
Authority
JP
Japan
Prior art keywords
line command
screen
line
processing
processing routine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP24162691A
Other languages
Japanese (ja)
Other versions
JP2650803B2 (en
Inventor
Norie Murota
紀恵 室田
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
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

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To simplify processing so as to facilitate a counter measure to line command change or the like by providing a line command processing routine, a line command determining table and a processing determining table, and interpreting a line command by using the tables. CONSTITUTION:A screen processing routine 3 executes screen edition by using screen data 11 and transfers a line command table 5 to a line command processing routine 7 to request the interpretation of the line command. The routine 7 interpretes the line command of the screen data 11. Namely the routing interpretes the line command of the table 5 and returns the interpreted result to the routine 3 as a subscript table 6. In order to form the table 6, the routine 7 determines processing to be executed correspondingly to the line command by using a line command determining table 8 and a processing determining table 9. The tables 8, 9 determine processing to be executed correspondingly to the line command. The routine 3 executes the line command based upon the interpretation.

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 method, and more particularly to a full-screen editor control processing method in which processing is simplified by using a table.

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

【0003】[0003]

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

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

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

【0006】[0006]

【発明が解決しようとする課題】前述の従来技術によれ
ば、処理が複雑になってしまうという問題があった。例
えば、行コマンドの種別を知るために、if文での判断
を多数回くり返さなければならない。また、行コマンド
“CC”の後に行コマンド“A”が在る場合とその逆の
場合とで、処理を別にしなければならず、各ルーチンが
複雑に(長く)なる。また、行コマンド“A”と組合わ
される行コマンドは“CC”,“MM”等多数あり、種
々の場合に対応できる処理ルーチンとしておく必要があ
るため、各ルーチンが複雑になる。一方、このように処
理が複雑化し、各ルーチンが長くなるため、解釈実行の
ために長い時間を必要とするという問題も生じていた。
According to the above-mentioned conventional technique, there is a problem that the processing becomes complicated. For example, in order to know the type of line command, the judgment in the if statement must be repeated many times. Further, the processing must be different depending on whether the line command "CC" is followed by the line command "A" or vice versa, which makes each routine 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 prepare 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 in this way, there is a problem that a long time is required to execute the interpretation.

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

【0008】更に、各画面処理ルーチン毎に行コマンド
解釈実行ルーチンを備えなければならないため、画面処
理ルーチンが大きくなってしまうという問題があった。
本発明は、処理を単純化したフルスクリーンエディタ制
御処理方式を提供することを目的とする。
Furthermore, since each screen processing routine must be provided with a line command interpretation execution routine, there is a problem that the screen processing routine becomes large.
It is an object of the present invention to provide a full screen editor control processing method that simplifies the processing.

【0009】また、本発明は、行コマンドの変更等に容
易に対応できるフルスクリーンエディタ制御処理方式を
提供することを目的とする。また、本発明は、画面処理
ルーチンを簡単な構成としたフルスクリーンエディタ制
御処理方式を提供することを目的とする。
It is another object of the present invention to provide a full-screen editor control processing method that can easily cope with changes in line commands. Another object of the present invention is to provide a full-screen editor control processing method having a simple screen processing routine.

【0010】[0010]

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

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

【0012】画面処理ルーチン3は、解釈に基づいて行
コマンドを実行する。即ち、決定された処理を実行す
る。このために、画面処理ルーチン3に、画面データ1
1の記事の並び替えをして行コマンドを実行するデータ
並び替え部4を設ける。そして、このデータ並び替え部
4が、添字テーブル6に従って記事の並び替えをする。
The screen processing routine 3 executes the line command based on the interpretation. That is, the determined process is executed. For this purpose, the screen processing routine 3
A data rearrangement unit 4 for rearranging one article and executing a row command is provided. Then, the data rearrangement unit 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 processing routine 7 interprets the line command, each screen processing routine 3 may be provided with a line command executing section (that is, a data rearranging section 4). Each screen processing routine 3 can be reduced in size. Further, 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 command using the tables 8 and 9, the process is complicated and the interpretation does not require a long time. That is, it is possible to refer to the tables 8 and 9 a few times without repeating the determination in the if sentence a large number of times. Further, since various combinations of line commands and the processes corresponding thereto are taken into consideration in the tables 8 and 9, the line command processing routine 7 is not complicated and lengthened.

【0015】更に、テーブル8,9を用いることによ
り、行コマンドの変更等の場合でも、行コマンド処理ル
ーチン7を修正する必要はなく、テーブル8,9を修正
するのみで済むので、修正に容易に対処できる。
Further, by using the tables 8 and 9, it is not necessary to modify the line command processing routine 7 even when the line command is changed, 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に基づく画面
を得る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT In FIG. 1, a full screen editor 2
Is provided in the processing unit 1 including a central processing unit (CPU) and a main storage unit (MMU), performs processing such as screen editing based on the screen data 11 stored in the data buffer 10, and displays the edited screen. It is displayed on the display screen of the device 12. The operator uses the full screen editor 2 from a terminal (not shown) to obtain a screen based on the screen data 11.

【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 the screen data 1 of "○○○ processing <update>".
1-1, screen data 11-2 of "△△△ processing <update>"
And so on. The screen data 11-1 is composed of 10 screens (100 lines) of 10 lines per screen. The screen data 11-2 is composed of one screen and eight lines of data. In addition, 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 is line by line from the beginning,
It is composed of a line command CMD, a subscript (line number) SEQ, and an article (for example, "Once upon a time"). The types of line commands and the meanings of instructions are the same as those shown in FIG.
Some lines have blank line commands. The subscripts are added in order from the first line and represent the line number of each line. The article is the actual data and the content displayed on the screen. Therefore, the screen obtained on the display device 12 is, for example, the screen data 11-
1, the line command and subscript of each line are omitted.

【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 the lines (100 lines) of the screen data 11-1, that is, all the screens (full screens) 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 generation, each screen processing routine 3-1
2 and 3-2, only the data rearranging unit (line command execution routine) 4 is incorporated by the full-screen editor 2, and no line command processing (interpretation) routine is 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 the plurality of screen processing routines 3 which are generated each time an enter is performed, and a line command determination table 8 and a processing determination table 9 are provided. To have. The line command processing routine 7 includes a plurality of screen processing routines 3-
In response to the requests from 1 and 3-2, the line command is interpreted and the result is returned to the request source.

【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 making a request from the screen processing routine 3-1 to the line command processing routine 7, the line command table 5-
1 and the total number of lines (100 lines). On the other hand, at the time of this response, it is the subscript table 6-1 and the number of processing lines (how many lines have been obtained as a result of the processing). The screen processing routine 3-2 also uses the interface 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 the 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 a table in which only the row command CMD portion of the screen data 11-1 is extracted and arranged so as to correspond to each row. At this time, the line for which the line command is blank is left as it is. Therefore, in reality, "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 the interpretation of the line command only by the subscript (line number).

【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 line command table 5-1, there are "CC to CC" on the second and fourth lines and "A" on the sixth line. The 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 and does not exist in the subscript table 6-1. In addition, “I” on the 9th line of the line command table 5-1
5 "is interpreted as" insert 5 blanks before the 9th line. "Therefore, in the subscript table 6-1," 0, 0, 0 "representing 5 blanks before" 9 "is displayed. , 0, 0 ”is inserted. The line command processing routine 7 performs the above interpretation and creation of the subscript table 6-1. Incidentally, when the tenth line of the line command table 5-1 is processed, the corresponding number of processed lines of 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 has received the subscript table 6-1, the data rearrangement unit 4 thereof.
(4-1) rearranges the articles according to the subscript table 6-1. That is, in the screen data 11-1, the articles on the first to sixth rows are left unchanged, the articles on the second to fourth rows are inserted again after the articles on the sixth row, and the articles on the eighth row are deleted. Then, insert 5 blank lines before the 9th line. As a result, a new edit 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”
により行コマンド決定テーブル8を参照してその添字
“10”を求め、この添字“10”により処理決定テー
ブル9の“現在”(図では“現”と表しており、また、
図中、縦方向である)の添字における“10”の欄を参
照する。
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 process determination table 9 shown in FIG.
The line command determination table 8 is configured to indicate a predetermined position of a process determination table 9 described later for each type of line command. That is, in FIG. 4, the line command determination table 8
Is the process decision table 9 for all the line commands shown in FIG. 7 and “blank” representing an empty line with no line command.
Stores the subscript (number) of. Line command processing routine 7
Is the line command currently being interpreted, eg "CC"
By referring to the line command determination table 8, the subscript “10” is obtained, and the subscript “10” indicates “present” (in the figure, “present” in the process determination table 9;
Refer to the column of "10" in the subscript of (in the figure, which is the vertical direction).

【0027】処理決定テーブル9は、現在の解釈の対象
である行コマンドとこれに先行する行コマンドとの関係
で当該解釈の対象である行コマンドに対応して行うべき
処理を定める。図中、先行するコマンドは、“前”と表
しており、横方向に添字に対応して示されている。行コ
マンド処理ルーチン7は、解釈の対象である行コマンド
により行コマンド決定テーブル8を参照し、この結果に
より処理決定テーブル9を参照し、対応して行うべき処
理を決定する。例えば、現在の行コマンド“CC”の添
字“10”により処理決定テーブル9を参照すると、前
の行コマンドが添字“15”(即ち“空白”)であるな
らば当該“CC”は“前CC”であり、前の行コマンド
が添字“3”(即ち“前CC”)であるならば当該“C
C”は“後CC”であることを知る。これにより、複写
処理を行うべきこと及びその先頭行又は最後の行が定ま
る。
The process decision table 9 defines the process to be performed corresponding to the line command to be interpreted in relation to the line command to be currently interpreted and the line command preceding it. In the figure, the preceding command is expressed as “previous” and is shown in the horizontal direction corresponding to the subscripts. The line command processing routine 7 refers to the line command determination table 8 according to the line command to be interpreted, and refers to the process determination table 9 based on the result, and determines the process to be performed correspondingly. For example, referring to the process determination table 9 by the subscript “10” of the current line command “CC”, if the previous line command is the subscript “15” (that is, “blank”), the “CC” is “previous CC”. ", And the previous line command is the subscript" 3 "(that is," previous CC "), the relevant" C "
It is known that "C" is "after CC", which determines the copy process and the first line or the last line.

【0028】行コマンドを変更等する場合は、行コマン
ド決定テーブル8及び処理決定テーブル9を変更すれば
よい。例えば、行コマンドの数を増やす場合は、行コマ
ンド決定テーブル8において当該行コマンドを追加して
ユニークな添字を対応させる。そして、処理決定テーブ
ル9において、考えられる(使用を許される)他の行コ
マンドとの組合わせの部分に処理のための記述(例えば
“前CC”の如き)をする。これにより、行コマンド処
理ルーチン7の変更なしで修正に対応できる。
When the line command is changed, the line command decision table 8 and the process decision table 9 may be changed. For example, when the number of line commands is increased, the line command is added to the line command determination table 8 so that unique subscripts are associated. Then, in the processing decision table 9, a description (for example, "previous CC") for processing is described in a portion in combination with other possible (permitted to use) line commands. As a result, the correction can be handled 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. Figure 6
In the initial command, the line command processing routine 7 sets "1" to IDX (index register) as a subscript in the row command table 5-1 of the current line command (processing), and BEF-IDX (before index register). ) Is set to "15" (processing). The subscript “15” is the subscript of the preceding command of the process determination table 9 and represents “blank”.

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

【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 NOW-IDX (now index register), refers to the processing determination table 9 using NOW-IDX and BEF-IDX, and determines the processing. (Process), and the process is performed (Process). The results of this interpretation are collectively executed later by the screen processing routine 3-1. After this, the line command processing routine 7 executes the IDX
Is incremented by 1, the required value is set in BEF-IDX (processing), and the processing and the following 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.
If the process 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, 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 line of the line command table 5-1, NOW-IDX is "10" and BEF-IDX is "1".
5 ". As a result, 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 line, NOW-IDX is "10" and BE is selected.
F-IDX is “3”, “after CC” is selected, and BEF-
IDX is set to "9". In addition, regarding the 6th 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 8th and 9th lines, BEF
-"D" and "I" are selected regardless of the value of IDX. When the above selected process is executed (processed), "C
C-CC, A ", subscripts" 1, 2, 3, 4, 5,
“2,3,4” is added after “6”, 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 decision table, and a process decision table in the full-screen editor control process, the line command can be interpreted by a simple process using the table, and the interpretation time can be shortened. Further, it is possible to easily deal with the change of 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 made small.

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

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

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

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

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

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

【図6】行コマンド処理フローである。FIG. 6 is a line command processing flow.

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

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

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

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

1 処理装置(CPU/MMU) 2 フルスクリーンエディタ 3 画面処理ルーチン 4 データ並び替え部 5 行コマンドテーブル 6 添字テーブル 7 行コマンド処理ルーチン 8 行コマンド決定テーブル 9 処理決定テーブル 10 データバッファ 11 画面データ 12 表示装置 1 Processing Unit (CPU / MMU) 2 Full Screen Editor 3 Screen Processing Routine 4 Data Sorting Section 5 Line Command Table 6 Subscript Table 7 Line Command Processing Routine 8 Line Command Decision Table 9 Processing Decision Table 10 Data Buffer 11 Screen Data 12 Display apparatus

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画面データ(11)を用いて画面編集を
行う画面処理ルーチン(3)と、 前記画面データ(11)の行コマンドを解釈する行コマ
ンド処理ルーチン(7)とを設け、 前記画面処理ルーチン(3)が、行コマンドテーブル
(5)を前記行コマンド処理ルーチン(7)に渡して前
記行コマンドの解釈を依頼し、 前記行コマンド処理ルーチン(7)が、前記行コマンド
テーブル(5)の行コマンドを解釈し、その結果を添字
テーブル(6)として前記画面処理ルーチン(3)に返
すことを特徴とするフルスクリーンエディタ制御処理方
式。
1. A screen processing routine (3) for editing a screen using the screen data (11) and a line command processing routine (7) for interpreting a line command of the screen data (11) are provided. The processing routine (3) passes the line command table (5) to the line command processing routine (7) to request interpretation of the line command, and the line command processing routine (7) outputs the line command table (5). ) Line command is interpreted and the result is returned to the screen processing routine (3) as a subscript table (6).
【請求項2】 前記画面処理ルーチン(3)に前記画面
データ(11)の記事の並び替えをして前記行コマンド
を実行するデータ並び替え部(4)を設け、 前記データ並び替え部(4)が、前記添字テーブル
(6)に従って前記記事の並び替えをすることを特徴と
する請求項1に記載のフルスクリーンエディタ制御処理
方式。
2. A data rearrangement unit (4) for rearranging articles of the screen data (11) and executing the line command is provided in the screen processing routine (3), and the data rearrangement unit (4). ) Rearranges the articles according to the subscript table (6), the full-screen editor control processing method according to claim 1.
【請求項3】 画面データ(11)を用いて画面編集を
行う画面処理ルーチン(3)と、 前記画面データ(11)の行コマンドを解釈する行コマ
ンド処理ルーチン(7)と、 前記行コマンドに対応して行うべき処理を定めたテーブ
ル(8,9)とを設け、 前記行コマンド処理ルーチン(7)が、前記テーブル
(8,9)を用いて前記行コマンドに対応して行うべき
処理を決定し、 前記画面処理ルーチン(3)が、当該決定された処理を
実行することを特徴とするフルスクリーンエディタ制御
処理方式。
3. A screen processing routine (3) for editing a screen using the screen data (11), a line command processing routine (7) for interpreting a line command of the screen data (11), and a line command for the line command. Tables (8, 9) that define processing to be performed correspondingly are provided, and the line command processing routine (7) uses the tables (8, 9) to perform processing to be performed corresponding to the row commands. A full screen editor control processing method, characterized in that the screen processing routine (3) determines and executes the determined processing.
【請求項4】 前記行コマンド毎に処理決定テーブル
(9)の所定の位置を示すようにされた行コマンド決定
テーブル(8)と、 解釈の対象である行コマンドとこれに先行する行コマン
ドとの関係で当該解釈の対象である行コマンドに対応し
て行うべき処理を定めた処理決定テーブル(9)とを前
記テーブル(8,9)として設け、 前記行コマンド処理ルーチン(7)が、前記解釈の対象
である行コマンドにより前記行コマンド決定テーブル
(8)を参照し、この結果により前記処理決定テーブル
(9)を参照し、前記対応して行うべき処理を決定する
ことを特徴とする請求項3に記載のフルスクリーンエデ
ィタ制御処理方式。
4. A line command determination table (8) adapted to indicate a predetermined position of a processing determination table (9) for each line command, a line command to be interpreted and a line command preceding this line command. And a process determination table (9) that defines the process to be performed corresponding to the line command that is the target of the interpretation, is provided as the table (8, 9), and the line command processing routine (7) The line command determination table (8) is referred to according to a line command to be interpreted, and the process determination table (9) is referred to based on the result, and the process to be performed correspondingly is determined. 4. A full-screen editor control processing method according to item 3.
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 true JPH0581259A (en) 1993-04-02
JP2650803B2 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)

Citations (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

Patent Citations (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
JP2650803B2 (en) 1997-09-10

Similar Documents

Publication Publication Date Title
US4905185A (en) Apparatus for transferring block data in original form and editing the block data
JPH0525342B2 (en)
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
JPH0581259A (en) Full screen editor control processing system
US5155848A (en) Method of searching and displaying selected data and for updating displayed data in a text editing system
JPH05189529A (en) Graphic editing system
JPH0750480B2 (en) Text data editing device
JP2638195B2 (en) Input method by dynamic control
JPH0589103A (en) Document editing processor
JPH01162922A (en) System for managing display window
JPH0194483A (en) Layout design supporting device
JPH02143325A (en) Window displaying system
JPH0511990A (en) Package software processing method
JPH04316138A (en) Debug processor
JPH07200859A (en) Graphic moving device
JPH07296179A (en) Device and method for processing display data
JPH0490026A (en) Processing flow chart editing device
JPS63142429A (en) Processing system for development of application program
JPH0916689A (en) Table calculating method and device therefor
JPS59218527A (en) Command checking system
JPS62231346A (en) Data storage system
JPH0469911B2 (en)
JPH03251937A (en) Data base retrieving system
JPH0798729A (en) Estimate data processor
JPS63180130A (en) Conversation sequence editing device