JPS63204326A - Data processor - Google Patents

Data processor

Info

Publication number
JPS63204326A
JPS63204326A JP62036707A JP3670787A JPS63204326A JP S63204326 A JPS63204326 A JP S63204326A JP 62036707 A JP62036707 A JP 62036707A JP 3670787 A JP3670787 A JP 3670787A JP S63204326 A JPS63204326 A JP S63204326A
Authority
JP
Japan
Prior art keywords
buffer
layout
text
line
text data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62036707A
Other languages
Japanese (ja)
Inventor
Tomotoshi Satou
智利 佐藤
Nobuhisa Oshiba
大柴 信久
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP62036707A priority Critical patent/JPS63204326A/en
Publication of JPS63204326A publication Critical patent/JPS63204326A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily rexcognize whole structure when a program text is edited, by providing a means which analyzes the hierarchical structure of a programming language, and a means which displays the layout of the hierarchical structure, and scrolling a picture at every hierarchical unit. CONSTITUTION:A text data is read in a buffer 17 for the text data from an external memory device 13. Next, the content of the buffer 17 is read in by a structure analysis control part 20, and after the structure being analyzed, the bit of information of analysis is written on a buffer 19 for structure analysis. When a request to display the layout is inputted from a keyboard 16, the content of the buffer 19 for the structure analysis is read, and the structure of a text is layout-displayed, and the movement of a cursor is performed on layout display, then, the picture in which the text is displayed is scrolled. Thus, it is possible to recognize the whole structure easily by displaying the layout.

Description

【発明の詳細な説明】 技術分野 本発明は、テキストの編集機能を備えたデータ処理装置
に関し、特に、エディタの操作性、および、編集の効率
を向上することが可能なデータ処理装置に関する。
TECHNICAL FIELD The present invention relates to a data processing device with a text editing function, and more particularly to a data processing device that can improve the operability of an editor and the efficiency of editing.

従来技術 従来のデータ処理装置は、例えば、第10図のように、
CRTlll、表示制御部112、テキストデータ用バ
ッファ117、エディタ制御部114、外部記憶装置1
13、キーボード116、およびキーボード制御部11
5を備える。
Prior Art A conventional data processing device, for example, as shown in FIG.
CRTll, display control section 112, text data buffer 117, editor control section 114, external storage device 1
13, keyboard 116, and keyboard control unit 11
5.

このデータ処理装置の編集動作については、まず、ハー
ドディスク等の外部記憶装置113からテキストデータ
用バッファ117上にテキストのデータを読み込み、そ
のデータに対して文字の挿入、および削除等の変更を行
う。
Regarding the editing operation of this data processing device, first, text data is read from an external storage device 113 such as a hard disk onto the text data buffer 117, and changes such as insertion and deletion of characters are made to the data.

この場合、オペレータが変更できる部分は、第11図の
ように、テキストデータ用バッファ117上のテキスト
データの中、点線で示されたCRT表示部分のみであり
、その他の部分を変更する時には、CR7画面をスクロ
ールする必要がある。
In this case, the only part that the operator can change is the CRT display part indicated by the dotted line in the text data on the text data buffer 117, as shown in FIG. I need to scroll the screen.

つまり、CRT126の表示部分をテキストデータ上で
移動する必要がある。
In other words, it is necessary to move the display portion of the CRT 126 over the text data.

また、この場合、テキストエディタはプログラムの構造
について全く認識しない。
Also, in this case, the text editor has no knowledge of the structure of the program.

このプログラムの構造については、プログラムを書く場
合5条件文や操り返し文等があると、その条件によって
行う処理が異なるため、そのプログラムの流れは、いく
つかに分かれる。このため、その条件文の中での処理は
、それまでの構造とは別個のものと考えることができる
Regarding the structure of this program, when writing a program, if there are five conditional statements, return statements, etc., the processing to be performed differs depending on the conditions, so the flow of the program is divided into several parts. Therefore, the processing within the conditional statement can be considered to be separate from the previous structure.

また、第12図のように、ある条件文の中に、さらに別
の条件文がある場合、そのプログラムの構造は入れ子と
なって階層的になり、条件文が増すとそのプログラムの
構造の階層レベルは大きくなる。
Furthermore, as shown in Figure 12, if a conditional statement contains another conditional statement, the structure of the program becomes nested and hierarchical, and as the number of conditional statements increases, the structure of the program becomes hierarchical. The level gets bigger.

なお、この場合の階層別の動作については、第13図の
ように、階層レベル1の動作により、変数の宣言を行い
(1301)、いままで出てきた最大行数(max)を
0として(1302)、最長行を探しく1303)、そ
の最長行を表示する(1304)。
In addition, regarding the operation by hierarchy in this case, as shown in Figure 13, variables are declared (1301) by the operation at hierarchy level 1, and the maximum number of lines (max) that has appeared so far is set to 0 ( 1302), find the longest line 1303), and display the longest line (1304).

この階層レベル1の動作において、最長行を探す場合(
1303)の条件については、階層レベル2に示され、
現在行(l a n)に行の長さをセットしく1305
)、次の行をセットして(1306)。
In this hierarchy level 1 operation, when searching for the longest line (
1303) is shown at hierarchy level 2,
Set the line length to the current line (l a n) 1305
) and set the next line (1306).

len>Oか否かを判定する(1307)、この判定の
結果、len>Oならば、最大行を更新する(1308
)。
Determine whether len>O or not (1307). If the result of this determination is len>O, update the maximum row (1308)
).

また、階層レベル1の動作において、最長行を表示する
場合(1304)の条件についても、階層レベル2に示
され、max>Oであれば(1309)、その最大行を
表示する(1310)。
Further, in the operation at hierarchy level 1, the conditions for displaying the longest line (1304) are also shown at hierarchy level 2, and if max>O (1309), the maximum line is displayed (1310).

さらに、階層レベル2において、最大行を更新する場合
(1308)の条件については、階層レベル3に示され
、lan)maxならば(1311)。
Furthermore, at hierarchy level 2, the condition for updating the maximum row (1308) is shown at hierarchy level 3: if lan)max (1311).

max:lenと認識して(1312)、表示用バッフ
ァに現在行をコピーする(1313)。
It recognizes max:len (1312) and copies the current line to the display buffer (1313).

このように、従来のデータ処理装置によりプログラムの
テキストを編集する場合、表示画面が限られているため
、大きなプログラムテキストを編集する際、全体の流れ
と現在の位置とを把握し難いという問題があった。
In this way, when editing program text using conventional data processing devices, the display screen is limited, so when editing large program text, it is difficult to grasp the overall flow and current position. there were.

また1階層構造のプログラムを編集する場合、   ・
現在、どの階層にいるかを把握することが廻しかった・ さらに、テキストの移動については、行、桁、あるいは
画面単位で行われ、プログラムの階層単位の移動ができ
ないため、目的とする位置に移動するまでの時間が長く
、編集効率が悪いという問題があった。
Also, when editing a program with a one-layer structure, ・
It was difficult to figure out which level you were currently in. Furthermore, text movement is done by line, column, or screen, and it is not possible to move by program level, so you can move text to the desired position. There was a problem that it took a long time to complete the editing process and the editing efficiency was poor.

目     的 本発明の目的は、このような問題点を改善し、プログラ
ムテキストを編集する場合、全体の構造を容易に把握す
ることができ、また、作業効率を向上することが可能な
データ処理装置を提供することにある。
An object of the present invention is to provide a data processing device that can improve the above-mentioned problems, easily understand the overall structure when editing program text, and improve work efficiency. Our goal is to provide the following.

構  成 上記目的を達成するため1本発明のデータ処理装置は、
プログラムテキストを編集する場合、プログラミング言
語の階層構造を自動的に解析する手段(キーワード登録
部、構造解析用バッファ。
Configuration In order to achieve the above object, the data processing device of the present invention comprises:
When editing program text, there is a means to automatically analyze the hierarchical structure of the programming language (keyword registration section, structure analysis buffer).

構造解析制御部)、および、階層構造のレイアウトを表
示する手段(レイアウト表示制御部)を備え、階層単位
で画面をスクロールすることに特徴がある。
It is characterized by comprising a structure analysis control section) and means for displaying a hierarchical layout (layout display control section), and scrolling the screen in hierarchical units.

以下、本発明の一実施例を図面により説明する。An embodiment of the present invention will be described below with reference to the drawings.

第1図は1本発明の一実施例におけるデータ処理装置の
構成図である。
FIG. 1 is a block diagram of a data processing device in one embodiment of the present invention.

本実施例のデータ処理装置は、CRTII1表示制御部
12、外部記憶装置13、エディタ制御部14.キーボ
ード制御部15、キーボード16゜テキストデータ用バ
ッファ17、キーワード登録部18、構造解析用バッフ
ァ19.構造解析制御部20、およびレイアウト表示制
御部21を備える。
The data processing device of this embodiment includes a CRTII1 display control section 12, an external storage device 13, an editor control section 14. Keyboard control unit 15, keyboard 16° text data buffer 17, keyword registration unit 18, structure analysis buffer 19. It includes a structural analysis control section 20 and a layout display control section 21.

本実施例のデータ処理装置が起動されると、まず、外部
記憶装置13からテキストデータがテキストデータ用バ
ッファ17に読み込まれる。なお、新たにデータを作成
する時は読み込まれない。
When the data processing device of this embodiment is started, first, text data is read from the external storage device 13 into the text data buffer 17. Note that it is not loaded when creating new data.

次に、テキストデータ用バッファ17の内容を構造解析
制御部20が読み込み、構造解析後、その情報を構造解
析用バッファ19に書き込む。
Next, the structure analysis control unit 20 reads the contents of the text data buffer 17 and writes the information into the structure analysis buffer 19 after analyzing the structure.

また、キーボード16からレイアウト表示の要求が入力
されると、構造解析用バッファ19の内容を読み取り、
そのテキストの構造をレイアウト表示し、レイアウト表
示上でカーソル移動を行うことにより、テキスト表示画
面をスクロールさせる。
Also, when a request for layout display is input from the keyboard 16, the contents of the structure analysis buffer 19 are read,
The text structure is displayed in a layout, and the text display screen is scrolled by moving the cursor on the layout display.

第3図は、本発明の一実施例におけるキーワード登録の
説明図である。
FIG. 3 is an explanatory diagram of keyword registration in one embodiment of the present invention.

第1図のように、キーワード登録部18は、構造解析の
対象となるプログラミング言語において。
As shown in FIG. 1, the keyword registration unit 18 uses a programming language to be subjected to structural analysis.

階層構造をとるキーワードを登録する。Register keywords that have a hierarchical structure.

例えば、C言語の解析を行う場合、第3図(a)のよう
に、C言語で階層構造をとるキーワードとなる語を登録
する。
For example, when analyzing the C language, words that are keywords that have a hierarchical structure in the C language are registered as shown in FIG. 3(a).

なお、このキーワードとなる語は、if 、 for。Note that the keywords are if and for.

while、 do、 (、)の6語であり、これらの
キーワードの終わりにはφが入る。また、1番目のキー
ワード、およびφの前のキーワードは、それぞれ、複文
の始まり、および終わりを示す。
There are six words: while, do, (,), and φ is placed at the end of these keywords. Further, the first keyword and the keyword before φ indicate the beginning and end of a complex sentence, respectively.

その登録手順については、オペレータがキーワード登録
プログラムを呼び出すと、第3図(b)のように、画面
が表示されてキー人力待ちとなる。
Regarding the registration procedure, when the operator calls up the keyword registration program, a screen as shown in FIG. 3(b) is displayed and the key waits for human input.

なお、操作2はキーワード登録の終了を示し、BTAB
は前項目へ戻ることを示し、操作1は次項口へ進むこと
を示す。
Note that operation 2 indicates the end of keyword registration, and BTAB
indicates returning to the previous item, and operation 1 indicates proceeding to the next item.

オペレータはカーソルを移動して、最初に階層の開始、
および終了を示すキーワードを入力し、次に、レイアウ
ト表示により、階層単位で高速検索する時に用いる他の
キーワードを登録する。
The operator moves the cursor to first select the start of the hierarchy,
and a keyword indicating the end, and then register other keywords to be used when performing a high-speed search in hierarchical units using the layout display.

さらに、必要なキーワードが登録されたことを確認して
終了キー(操作2キー)を入力すると、(a)のように
、それらのキーワードはキーワード登録部18に格納さ
れる。
Furthermore, when the end key (operation 2 key) is input after confirming that the necessary keywords have been registered, those keywords are stored in the keyword registration section 18 as shown in (a).

第4図は、本発明の一実施例における構造解析用バッフ
ァの説明図である。
FIG. 4 is an explanatory diagram of a structure analysis buffer in one embodiment of the present invention.

本実施例における構造解析用バッファ19は、複数のバ
ッファ1〜nを備え、各バッファには。
The structure analysis buffer 19 in this embodiment includes a plurality of buffers 1 to n, and each buffer has a.

その階層レベル、キーワード、階層の開始行、および終
了行が格納される。
Its hierarchy level, keyword, starting line of the hierarchy, and ending line are stored.

また、構造解析用バッファ19には、外部記憶装置13
からテキストデータが読み込まれ、さらに、キーワード
登録部18にキーワードの登録が終了すると、構造解析
制御部20により、テキストデータ用バッファ17が更
新される度に、格納している情報を更新される。
The structure analysis buffer 19 also includes an external storage device 13.
When the text data is read from , and furthermore, the keyword registration in the keyword registration section 18 is completed, the stored information is updated by the structure analysis control section 20 every time the text data buffer 17 is updated.

第2図は、本発明の一実施例における構造解析制御部の
構成図である。
FIG. 2 is a configuration diagram of a structural analysis control section in one embodiment of the present invention.

本実施例における構造解析制御部20は、比較部22、
行番号カウンタ23.バッファ番号カウンタ24、およ
び階層レベルカウンタ25を備え、キーワード登録部1
8、構造解析用バッファ19、およびテキストデータ用
バッファ17に接続されて、CPUの指示により動作す
る。
The structural analysis control unit 20 in this embodiment includes a comparison unit 22,
Line number counter 23. The keyword registration unit 1 includes a buffer number counter 24 and a hierarchy level counter 25.
8, is connected to the structure analysis buffer 19 and the text data buffer 17, and operates according to instructions from the CPU.

この構造解析制御部20は、テキストデータ用バッファ
17に読み込まれたテキストデータを読み込み、キーワ
ードの登録が終了すると、構造解析を行い、構造解析後
の情報を構造解析用バッファ19に書き込む、さらに、
テキストデータ用バッファ17が更新される度に、構造
解析用バッファ19内の情報を更新する。
The structural analysis control unit 20 reads the text data read into the text data buffer 17, performs structural analysis when the keyword registration is completed, and writes the information after the structural analysis into the structural analysis buffer 19.
Every time the text data buffer 17 is updated, the information in the structure analysis buffer 19 is updated.

第8図は1本発明の一実施例におけるデータ処理装置の
構造解析フローチャートである。
FIG. 8 is a structural analysis flowchart of a data processing device in one embodiment of the present invention.

本実施例のデータ処理装置において1例えば、C言語の
解析を行う場合、構造解析制御部20は、CPUからの
開始指示により、まず、構造解析用バッファ19を全て
初期化し、階層レベル(DEPTH)、行番号(LIN
E)を初期設定す!(801〜804)。
In the data processing apparatus of this embodiment, for example, when analyzing the C language, the structure analysis control unit 20 first initializes all the structure analysis buffers 19 in response to a start instruction from the CPU, and , line number (LIN
Initialize E)! (801-804).

次に、テキストデータ用バッファ17から1行を比較部
22に取り込み、その行が階層の終わりが否かを判定し
く805)、終わりでなければ、さらに、その行番号が
関数の始まりであるか否かを判定する(807)。
Next, one line is fetched from the text data buffer 17 into the comparison unit 22, and it is determined whether that line is the end of the hierarchy (805), and if it is not the end, it is further determined whether the line number is the beginning of the function. It is determined whether or not (807).

その行が関数の始まりならば、階層レベルをOとしく8
08)、その行にキーワード、あるいは関数名があるか
否かを判定する(809)。
If that line is the start of a function, set the hierarchy level to 8.
08), it is determined whether there is a keyword or function name in that line (809).

キーワード、あるいは関数名が無ければ、行番号カウン
タ23を1カウントアツプして(806)、再び、テキ
ストデータ用バッファ17から次の1行を取り込む(8
05)。
If there is no keyword or function name, the line number counter 23 is incremented by one (806), and the next line is fetched from the text data buffer 17 again (806).
05).

キーワード、あるいは関数名があれば、さらに。More keywords or function names, if any.

その行の中に階層の終わりを示すキーワード1)′があ
るか否かを判定する(810)。
It is determined whether the keyword 1)' indicating the end of the hierarchy is present in the line (810).

階層の終わりを示すキーワードがある場合、既にバッフ
ァ番号カウンタ24が1カウント先のバッファ1〜nを
指しているため、行番号カウンタ23の値を1ダウンし
く811)、行番号カウンタ23゛が指しているバッフ
ァ1〜nに、行番号カウンタ23の値をセットして(8
12)、階層レベルカウンタ25の値を1ダウンする(
813)。
If there is a keyword indicating the end of the hierarchy, the buffer number counter 24 is already pointing to buffers 1 to n that are one count ahead, so the value of the line number counter 23 is decreased by 1 (811), and the line number counter 23' is pointing to the next buffer. Set the value of the line number counter 23 in buffers 1 to n (8
12) Decrease the value of the hierarchy level counter 25 by 1 (
813).

こうして、構造解析用バッファ19の1個のバッファに
1階層レベル、キーワード、開始行番号、および終了行
番号がセットされる。
In this way, one hierarchical level, a keyword, a starting line number, and an ending line number are set in one buffer of the structure analysis buffer 19.

また、取り込んだ行の中に階層の終わりを示すキーワー
ド以外のキーワードがある場合、階層レベルカウンタ2
5を1アツプしく814)、引き続きバッファ番号カウ
ンタ24の値に一致するバッファ1〜nに1行番号カウ
ンタ23、および階層レベルカウンタ25の値をセット
し1次に、一致したキーワードそのものをセットする(
815)。
Also, if there is a keyword other than the keyword indicating the end of the hierarchy in the imported line, the hierarchy level counter 2
5 by 1 (814), then set the values of the line number counter 23 and hierarchy level counter 25 in buffers 1 to n that match the value of the buffer number counter 24, and then set the matched keyword itself. (
815).

さらに、次のバッファ1〜nを選択するため。Furthermore, to select the next buffer 1-n.

バッファ番号カウンタ24を1カウントアツプする(8
16)。
Increment the buffer number counter 24 by 1 (8
16).

これらの動作が終了すると、行番号カウンタ23が1カ
ウントアツプされ(806)、再び、テキストデータ用
バッファ17から、次の1行が取り込まれる。
When these operations are completed, the line number counter 23 is incremented by one (806), and the next line is taken in from the text data buffer 17 again.

こうして、テキストデータ用バッファ17が空になるま
で、以上の動作が操り返される。
In this way, the above operations are repeated until the text data buffer 17 becomes empty.

さらに、テキストデータ用バッファ17が空になると、
構造解析制御部20はCPUに対してその旨を通知し、
CPUからの指示待ちとなる。
Furthermore, when the text data buffer 17 becomes empty,
The structural analysis control unit 20 notifies the CPU of this,
It waits for instructions from the CPU.

なお、本実施例では、構造解析処理を簡略化して高速に
行うため、プログラムテキストの文法に下記の規則を設
ける。
In this embodiment, in order to simplify the structure analysis process and perform it at high speed, the following rules are provided in the grammar of the program text.

(i)階層構造を取るキーワードの後は複文とし、また
、複文の始めと終わりとを示す゛(″および1 )′は
同一ライン上に書かない。
(i) A compound sentence follows a keyword that has a hierarchical structure, and ``('' and 1)'' indicating the beginning and end of a compound sentence are not written on the same line.

(it)関数の始まりでは、関数名と′(′ とを1行
ずつに分ける。
(it) At the beginning of a function, separate the function name and '(' on each line.

従って、その行が関数の始まりか否かを調べる場合、ま
ず、行の文字列を調べて、その文字列の中に′(′ と
′)′ とが含まれ、かつ、その行の終わりにセミコロ
ンに)が存在しなければ、その行を関数の始まりと認識
する。
Therefore, when checking whether a line is the beginning of a function, first check the string of the line, and check if the string contains ′(′ and ′)′, and if it is at the end of the line. ) in the semicolon, the line is recognized as the beginning of a function.

第5図は、本発明の一実施例におけるレイアウト表示例
図である。
FIG. 5 is a layout display example diagram in one embodiment of the present invention.

本実施例におけるレイアウト表示制御部21は、構造解
析用バッファ19から情報を取り出し、表示制御部12
を介してCRT画面のメイン画面上に1階層構造を表示
する。また、キーボード16上のファンクションキー(
図示省略)が押されると。
The layout display control unit 21 in this embodiment takes out information from the structure analysis buffer 19 and displays it in the display control unit 12.
A one-layer structure is displayed on the main screen of the CRT screen via the CRT screen. In addition, the function keys on the keyboard 16 (
(not shown) is pressed.

レイアウト画面を表示するとともに、レイアウト画面上
にカーソルの制御が移る。
The layout screen is displayed and control of the cursor is transferred to the layout screen.

レイアウト画面には、各階層のキーワードを表示し、さ
らに、コロン(:)の次には階層レベルを表示する。こ
の階層レベルに応じて1行の先頭がシフトされる。
The layout screen displays keywords for each hierarchy, and also displays the hierarchy level after a colon (:). The beginning of one line is shifted according to this hierarchy level.

また、レイアウト画面上にはカーソルBが表示され、メ
イン画面上のカーソルAの位置に対応する階層位置を示
し、該当行はブリンクする。
Further, a cursor B is displayed on the layout screen, indicating the hierarchical position corresponding to the position of the cursor A on the main screen, and the corresponding line blinks.

さらに、カーソルBは現在の階層での上下の動き、およ
び、階層を移動するための左右の動きを行うことができ
る。
Furthermore, cursor B can perform up and down movements in the current hierarchy and left and right movements to move through the hierarchy.

例えば、レイアウト画面上で1番左にある1の階層では
、カーソルBを上方に動かすと、m ain()関数の
始めの′(′まで直ちに移動し、下方に動かすと、ma
in()関数の終わりの゛ )′まで直ちに移動する。
For example, if you move cursor B upwards on level 1, which is the farthest left on the layout screen, it will immediately move to '(' at the beginning of the main() function, and if you move it downwards, it will immediately move to '(') at the beginning of the main() function.
Immediately move to ゛ )′ at the end of the in() function.

また、カーソルBを2の階層に移動し、上方に動かすと
、メイン画面のfor文に移動し、下方に動かすと、メ
イン画面のfor文の次のif文の先頭に移動する。
Furthermore, when the cursor B is moved to the second level and moved upward, it is moved to the for statement on the main screen, and when it is moved downward, it is moved to the beginning of the if statement next to the for statement on the main screen.

なお、レイアウト画面はキーボード16上のファンクシ
ョンキー(図示省略)を押すことにより表示され、カー
ソルA、Bはレイアウト画面上を移動し、リターンキー
(図示省略)を押すと、その階層までスクロールして終
了する。
The layout screen is displayed by pressing a function key (not shown) on the keyboard 16, and when cursors A and B move on the layout screen and the return key (not shown) is pressed, the screen scrolls to that level. finish.

第6図は1本発明の一実施例におけるテキストデータ例
図、第7図は本発明の一実施例におけるCRT画面例図
、第9図は本発明の一実施例におけるレイアウト表示制
御部の動作フローチャートである。
FIG. 6 is an example of text data in one embodiment of the present invention, FIG. 7 is an example of a CRT screen in one embodiment of the present invention, and FIG. 9 is an operation of the layout display control section in one embodiment of the present invention. It is a flowchart.

本実施例におけるレイアウト表示については、第9図の
ように、キーボード16上のファンクションキーにより
レイアウト表示が指定されると、レイアウト表示制御部
21の制御により、第7図のように、CRT画面上にテ
キスト画面、およびレイアウト画面が表示される。
Regarding the layout display in this embodiment, when the layout display is specified by the function key on the keyboard 16 as shown in FIG. The text screen and layout screen are displayed.

この場合、第6図のようなテキストデータ用バッファ1
7のテキストデータから、現在カーソルBがある階層に
対応するテキストデータを探し、現在の階層から最大1
0階層を表示する(901)。
In this case, the text data buffer 1 as shown in Figure 6
7, search for text data corresponding to the layer where cursor B is currently located, and select up to 1 layer from the current layer.
Display the 0th layer (901).

また、カーソルBをその階層にセットしく902)、階
層レベルカウンタ25に現在の階層レベルをセットする
(903)。
Further, the cursor B is set to that layer (902), and the current layer level is set to the layer level counter 25 (903).

さらに、キーボード16上のカーソル移動キー(図示省
略)が押されると(904)、移動する方向に階層が存
在するか否か確め(905)、次に。
Further, when a cursor movement key (not shown) on the keyboard 16 is pressed (904), it is checked whether a hierarchy exists in the direction of movement (905), and then.

左右(階層レベル)方向の移動か否かを確める(906
)。
Check whether the movement is in the left/right (hierarchy level) direction (906
).

左右(階層レベル)方向の移動ならば、カーソルBをそ
の階層位置にセットしく907)、階層レベルカウンタ
25にその階層レベルをセットする(908)。
If the movement is in the left/right (hierarchy level) direction, the cursor B is set at that hierarchy position (907), and the hierarchy level is set in the hierarchy level counter 25 (908).

左右(階層レベル)方向の移動でなければ、指定された
方向で一番近く、階層レベルが等しい構造解析用バッフ
ァ19内のバッファ1〜nを探しく909)、カーソル
Bを見つけた階層位置まで移動して(910)、リター
ンキー(図示省略)が押されたか否かを確める(911
)。
If the movement is not in the left/right (hierarchy level) direction, search for buffers 1 to n in the structure analysis buffer 19 that are closest in the specified direction and have the same hierarchy level (909), to the hierarchy position where cursor B is found. (910) and check whether a return key (not shown) has been pressed (911).
).

リターンキーが押されると、見つけた階層のバッファ1
〜nの開始行まで、テキスト画面をスクロールする(9
12)。
When the return key is pressed, buffer 1 of the level found
Scroll the text screen to the starting line of ~n (9
12).

例えば、第7図のように、カーソルBをレイアウト画面
上の第2行目の′(′に移動し、リターンキーを押すと
、第6図のテキストデータ上の階層位置61から階層位
置63までスクロールし、レイアウト表示は終了する。
For example, as shown in Figure 7, if you move cursor B to '(' on the second line on the layout screen and press the return key, you can move from layer position 61 to layer position 63 on the text data in Figure 6. It scrolls and the layout display ends.

また、同様に、カーソルBをレイアウト画面上の第5行
目のg x fI に移動して、リターンキーを押すと
、テキストデータ上の階層位置62にスクロールする。
Similarly, when the cursor B is moved to the fifth line g x fI on the layout screen and the return key is pressed, the cursor B is scrolled to the hierarchical position 62 on the text data.

このように、レイアウト画面上のカーソルBを移動する
ことにより、その移動先の階層の先頭まで画面をスクロ
ールするように、エディタ制御部14に対して情報が送
られる。
In this way, by moving the cursor B on the layout screen, information is sent to the editor control unit 14 to scroll the screen to the top of the hierarchy to which the cursor B is moved.

効   果 本発明によれば、大量のプログラムテキストの編集を行
う場合、レイアウトを表示することにより、全体の構造
を容易に把握することができる。
Effects According to the present invention, when editing a large amount of program text, the overall structure can be easily grasped by displaying the layout.

また、レイアウト表示上で、構造単位、および階層レベ
ルを認識でき、目的の構造、および階層へレイアウト画
面上のカーソルを動かすことにより簡便に移動すること
ができるため、編集の能率を向上することが可能である
Additionally, structural units and hierarchical levels can be recognized on the layout display, and editing efficiency can be improved because the desired structure and hierarchy can be easily moved by moving the cursor on the layout screen. It is possible.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例におけるデータ処理装置の構
成図、第2図は本発明の一実施例における構造解析制御
部の構成図、第3図は本発明の一実施例におけるキーワ
ード登録の説明図、第4図は本発明の一実施例における
構造解析用バッファの説明図、第5図は本発明の一実施
例におけるレイアウト表示例図、第6図は本発明の一実
施例におけるテキストデータ例図、第7図は本発明の一
実施例におけるCRT画面例図、第8図は本発明の一実
施例におけるデータ処理装置の構造解析フローチャート
、第9図は本発明の一実施例におけるレイアウト表示制
御部の動作フローチャート、第10図は従来のデータ処
理装置の構成図、第11図は従来のデータ処理装置にお
けるCRT画面上の表示部分の説明図、第12図はプロ
グラムの階層レベルの説明図、第13図は階層構造を持
つプログラムの動作説明図である。 1〜n:バッファti 1,111 : CRT、12
゜112=表示制御部、13,113:外部記憶装置。 14.114:エディタ制御部、15,115:キーボ
ード制御部、16,116:キーボード。 17.117 :テキストデータ用バッファ、18:キ
ーワード登録部’、19:構造解析用バッファ。 20:構造解析制御部、21ニレイアウド表示制御部、
22:比較部、23:行番号カウンタ、24:バッファ
番号カウンタ、25:階層レベルカウンタ、61〜63
:階層位置、A、B:カーソル。 第   3   図 (IL) 第   4  図 ヘ ε八 第6図 第   7  図 第  l O図
Fig. 1 is a block diagram of a data processing device in an embodiment of the present invention, Fig. 2 is a block diagram of a structural analysis control unit in an embodiment of the present invention, and Fig. 3 is a keyword registration diagram in an embodiment of the present invention. FIG. 4 is an explanatory diagram of a structure analysis buffer in an embodiment of the present invention, FIG. 5 is an illustration of a layout display example in an embodiment of the present invention, and FIG. Figure 7 is a diagram showing an example of text data, Figure 7 is a diagram showing an example of a CRT screen in an embodiment of the present invention, Figure 8 is a structural analysis flowchart of a data processing device in an embodiment of the present invention, and Figure 9 is an example of an embodiment of the present invention. 10 is a block diagram of a conventional data processing device, FIG. 11 is an explanatory diagram of the display part on a CRT screen in a conventional data processing device, and FIG. 12 is a program hierarchy level. FIG. 13 is an explanatory diagram of the operation of a program having a hierarchical structure. 1 to n: Buffer ti 1, 111: CRT, 12
゜112=display control unit, 13,113: external storage device. 14, 114: Editor control section, 15, 115: Keyboard control section, 16, 116: Keyboard. 17.117: Text data buffer, 18: Keyword registration section', 19: Structure analysis buffer. 20: Structural analysis control section, 21 Nilayaud display control section,
22: Comparison unit, 23: Line number counter, 24: Buffer number counter, 25: Hierarchical level counter, 61 to 63
: Hierarchy position, A, B: Cursor. Figure 3 (IL) Figure 4 ε8 Figure 6 Figure 7 l O Figure

Claims (1)

【特許請求の範囲】[Claims] (1)入力装置、および表示装置を備え、テキストデー
タの編集機能を有するデータ処理装置において、プログ
ラムテキストを編集する場合、プログラミング言語の階
層構造を自動的に解析する手段、および、該階層構造の
レイアウトを表示する手段を備え、階層単位で画面をス
クロールすることを特徴とするデータ処理装置。
(1) In a data processing device that is equipped with an input device and a display device and has a text data editing function, when editing program text, a means for automatically analyzing the hierarchical structure of a programming language, and a means for automatically analyzing the hierarchical structure of the programming language are provided. A data processing device comprising means for displaying a layout and scrolling the screen in hierarchical units.
JP62036707A 1987-02-19 1987-02-19 Data processor Pending JPS63204326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62036707A JPS63204326A (en) 1987-02-19 1987-02-19 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62036707A JPS63204326A (en) 1987-02-19 1987-02-19 Data processor

Publications (1)

Publication Number Publication Date
JPS63204326A true JPS63204326A (en) 1988-08-24

Family

ID=12477241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62036707A Pending JPS63204326A (en) 1987-02-19 1987-02-19 Data processor

Country Status (1)

Country Link
JP (1) JPS63204326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02214904A (en) * 1989-02-16 1990-08-27 Fuji Electric Co Ltd Working state monitor device for programmable controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02214904A (en) * 1989-02-16 1990-08-27 Fuji Electric Co Ltd Working state monitor device for programmable controller

Similar Documents

Publication Publication Date Title
CA2266457C (en) System and method for search and retrieval of digital information
JP2732552B2 (en) How to generate and display search queries and search results
US7552400B1 (en) System and method for navigating within a graphical user interface without using a pointing device
JP2959069B2 (en) Slip input processor
JPH04281566A (en) Document retrieving device
JPH0576067B2 (en)
JPS63204326A (en) Data processor
JP2939841B2 (en) Database search device
JPH0612543B2 (en) Character string specification method
JPS63288357A (en) Data editing system
JP2003263437A (en) Dictionary retrieval device and dictionary retrieval program
JPH04148370A (en) Document processor
JPH0326422B2 (en)
JP2637227B2 (en) Input processing method
JPH0630105B2 (en) Homophone display method
JP4584370B2 (en) Computer, comment display method thereof, and recording medium
JP2613226B2 (en) How to edit formula input
JP2967317B2 (en) Hypertext document editing method and apparatus
JP2666289B2 (en) Dictionary editing device
JPH0351958A (en) Electronic dictionary
JPH103474A (en) Kanji retrieval device
JPH03237492A (en) Scroll system
JPH07160692A (en) Document display device
JPS6325765A (en) Document editing device
JPH01287723A (en) Key input information display device