JPS62186339A - Compiling error display system in text editor - Google Patents

Compiling error display system in text editor

Info

Publication number
JPS62186339A
JPS62186339A JP61028309A JP2830986A JPS62186339A JP S62186339 A JPS62186339 A JP S62186339A JP 61028309 A JP61028309 A JP 61028309A JP 2830986 A JP2830986 A JP 2830986A JP S62186339 A JPS62186339 A JP S62186339A
Authority
JP
Japan
Prior art keywords
text
storage area
source program
message
error
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
JP61028309A
Other languages
Japanese (ja)
Inventor
Yoshihiro Okada
岡田 喜博
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP61028309A priority Critical patent/JPS62186339A/en
Publication of JPS62186339A publication Critical patent/JPS62186339A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To efficiently obtain a function by changing a text control means and adding a message annexing means and a message retrieving means without changing a text display means and a text editing means which are the main processing means of a text editor. CONSTITUTION:A text editor 10 is connected to a terminal 1, a source program file 2 and a compiler 11, and composed of a text display means 3, a text editing means 4, a text control means 5, a text memory area 6, a message retrieving means 7, a compiler starting means 8 and a message annexing means 9. When the user executes the editing designation to the screen of the terminal 1, information is executed from the text display means 3 to the text editing means 4, the text editing means 4 renews (step 25) the source program of the text memory area 6 through the text control means 5, and the text control means 5 renews the source program and simultaneously, deletes the accompanying error message.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はテキストエディタにおけるコンパイルエラー表
示方式に関し、特にコンパイルエラーのあるプログラム
を修正するときに有効なテキストエディタにおけるコン
パイルエラー表示方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a compile error display method in a text editor, and more particularly to a compile error display method in a text editor that is effective when correcting a program with a compile error.

〔従来の技術〕[Conventional technology]

ソースプログラムのコンパイルエラーを端末から修正す
る場合には、エラーメツセージをメモした後にテキスト
エディタでソースプログラムを修正するか、画面分割を
行いそれぞれの画面を交互に操作してエラーメツセージ
の検索と対応するソースプログラムの修正とを行う。
When correcting a source program compilation error from a terminal, write down the error message and then correct the source program using a text editor, or split the screen and operate each screen alternately to search for and respond to the error message. Modify the source program.

従来、このような操作を自動的に行うテキストエディタ
でもその処理方式は人による操作と同じであり、エラー
メッセージの登録された記憶域とソースプログラムの登
録された記憶域とを別々に持ち、実行時にそれぞれを検
索し対応させてソースプログラムとエラーメツセージと
を合成した画面を表示していた。
Conventionally, even text editors that automatically perform such operations have the same processing methods as those operated by humans, and have separate storage areas for error messages and source programs. At times, a screen was displayed that combined the source program and error message by searching for each and matching them.

このような従来のテキストエディタでは、コンパイラの
出力したエラーメツセージと編集対象となっているソー
スプログラムとが別々の記憶域に登録されているので、
それらのテキストの対応は行番号による方法しかない。
In such conventional text editors, error messages output by the compiler and the source program to be edited are registered in separate storage areas.
The only way to correspond to those texts is by using line numbers.

したがって、ソースプログラムの再行番号付は処理は、
ソースプログラム記憶域の更新だけでなくエラーメッセ
ージ記憶域の更新も必要であり、表示画面のレイアウト
処理においても両方の記憶域の同時参照をしなければな
らない。
Therefore, the process of renumbering the source program is
It is necessary to update not only the source program storage area but also the error message storage area, and both storage areas must be referenced simultaneously during display screen layout processing.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のテキストエディタにおけるコンパイルエ
ラー表示方式では、ソースプログラムの再行番号付は処
理はソースプログラム記憶域の更新だけでなくエラーメ
ツセージ記憶域の更新も必要であり、表示画面のレイア
ウト処理においても両方の記憶域の同時参照をしなけれ
ばならないので、処理時間が遅くなるだけでなく2つの
テキスト管理手段と専用のテキスト表示手段とが必要と
なり、テキストエディタの構造が複雑になるという欠点
がある。
In the compile error display method in the conventional text editor described above, renumbering a source program requires not only updating the source program storage area but also updating the error message storage area, and it is also necessary to update the error message storage area in the display screen layout process. Since both storage areas must be referenced at the same time, not only does processing time become slower, but also two text management means and a dedicated text display means are required, making the structure of the text editor complex. .

本発明の目的は、上述の点に鑑み、簡単なテキストエデ
ィタの構造でソースプログラムとエラーメッセージとの
両方を見ながら即時に修正を行うことができるテキスト
エディタにおけるコンパイルエラー表示方式を提供する
ことにある。
In view of the above-mentioned points, an object of the present invention is to provide a compilation error display method in a text editor that allows immediate correction while viewing both the source program and the error message using a simple text editor structure. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のテキストエディタにおけるコンパイルエラー表
示方式は、ソースプログラムとエラーメツセージとの2
つのテキストを同時に記憶するテキスト記憶域と、この
テキスト記憶域内のテキストを統一的に管理しソースプ
ログラムとエラーメッセージとの対応付けや編集された
ソース行に対応しているエラーメツセージの削除を行い
要求されたテキストに対する入出力を行うテキスト管理
手段と、コンパイラを起動し前記テキスト記憶域のソー
スプログラムを前記コンパイラに渡すコンパイラ起動手
段と、前記コンパイラの出力したエラーメツセージを前
記テキスト記憶域に出力するメツセージ併合手段と、前
記テキスト記憶域のテキストを端末の画面に表示するテ
キスト表示手段と、前記テキスト記憶域のエラーメツセ
ージを検索し前記テキスト表示手段に対して表示するテ
キスト位置を通知するメツセージ検索手段と、前記テキ
スト表示手段の情軸により前記テキスト記憶域のソース
プログラムの編集を行うテキスト編集手段とを含む。
The compile error display method in the text editor of the present invention consists of two types: a source program and an error message.
A text storage area that stores two texts at the same time, and a unified management of the text in this text storage area, which allows you to associate source programs with error messages and delete error messages that correspond to edited source lines. a text management means for inputting/outputting the text, a compiler starting means for starting a compiler and passing the source program in the text storage area to the compiler, and a message for outputting an error message output by the compiler to the text storage area. a merging means, a text display means for displaying the text in the text storage area on a screen of a terminal, and a message search means for searching the text storage area for an error message and notifying the text display means of the position of the text to be displayed. , text editing means for editing the source program in the text storage area according to the information of the text display means.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明のコンパイルエラー表示方
式の一実施例を採用するテキストエディタ10は、端末
l、ソースプログラムファイル2およびコンパイラ11
に接続されており、テキスト表示手段3、テキスト編集
手段4、テキスト管理手段5、テキスト記憶域6、メツ
セージ検索手段7、コンパイラ起動手段8およびメツセ
ージ併合手段9から構成されている。
Referring to FIG. 1, a text editor 10 employing an embodiment of the compile error display method of the present invention includes a terminal l, a source program file 2, and a compiler 11.
It is connected to a text display means 3, a text editing means 4, a text management means 5, a text storage area 6, a message retrieval means 7, a compiler starting means 8, and a message merging means 9.

第2図を参照すると、テキストエディタ10の起動から
終了までの処理は、ソースプログラム読込みステップ2
1と、エラーメツセージ検出ステップ22と、表示画面
決定ステップ23と、テキスト表示ステップ24と、テ
キスト更新ステップ25と、終了指示検出ステップ26
と、ソースプログラム書出しステップ27と、コンパイ
ル指示検出ステップ28と、コンパイラ起動ステップ2
9と、エラーメツセージ読込みステップ30とからなる
Referring to FIG. 2, the process from startup to termination of the text editor 10 includes the source program reading step 2.
1, an error message detection step 22, a display screen determination step 23, a text display step 24, a text update step 25, and an end instruction detection step 26
, a source program writing step 27, a compile instruction detection step 28, and a compiler starting step 2
9 and an error message reading step 30.

第3図(a)、 (blは、テキストエディタlOから
コンパイラ11を起動してコンパイルエラーが発見され
た場合の画面の移り変わりの前後を概念的に示している
FIGS. 3(a) and 3(bl) conceptually show before and after the screen changes when the compiler 11 is activated from the text editor IO and a compilation error is discovered.

次に、このように構成された本実施例のテキストエディ
タにおけるコンパイルエラー表示方式の動作について説
明する。
Next, the operation of the compile error display method in the text editor of this embodiment configured as described above will be explained.

利用者により端末lからテキストエディタ10の起動指
示があると、まずソースプログラムファイル2からソー
スプログラムがテキスト記憶域6に読み込まれる(ステ
ップ21)。この時点では、テキスト記憶域6にはエラ
ーメッセージが含まれていないので、エラーメツセージ
の検出(ステップ22)はなしとなり、テキスト表示手
段3がテキスト管理手段5に表示テキストの要求を行い
、第3図(alに示すように渡されたソースプログラム
のみを端末1に表示する(ステップ24)。
When a user issues an instruction to start the text editor 10 from the terminal 1, a source program is first read from the source program file 2 into the text storage area 6 (step 21). At this point, the text storage area 6 does not contain an error message, so no error message is detected (step 22), and the text display means 3 requests the text management means 5 for display text, as shown in FIG. (As shown in al, only the passed source program is displayed on the terminal 1 (step 24).

利用者が端末1の画面にvA集指定を行うと、テキスト
表示手段3からテキスト編集手段4に通知され、テキス
ト編集手段4はテキスト管理手段5を介してテキスト記
憶域6のソースプログラムを更新する(ステップ25)
。ここまでは、従来のテキストエディタの動作と同様で
ある。
When the user specifies a vA collection on the screen of the terminal 1, the text display means 3 notifies the text editing means 4, and the text editing means 4 updates the source program in the text storage area 6 via the text management means 5. (Step 25)
. Up to this point, the operation is similar to that of a conventional text editor.

端末lからコンパイラ11の起動指示を行う(ステツ1
28)と、コンパイラ起動手段8がコンパイラ11を起
動して(ステップ29)、テキスト記憶域6のソースプ
ログラムを渡す。コンパイラ11がソースプログラムの
エラーを発見すると、メツセージ併合手段9がエラーメ
ッセージを読み込み(ステップ30)整形して、テキス
ト記憶域6への登録をテキスト管理手段5に要求する。
Instruct the compiler 11 to start from the terminal l (step 1
28), the compiler starting means 8 starts the compiler 11 (step 29) and passes the source program in the text storage area 6. When the compiler 11 discovers an error in the source program, the message merging means 9 reads the error message (step 30), formats it, and requests the text management means 5 to register it in the text storage area 6.

テキスト管理手段5は、テキスト記憶域6の対応するソ
ースプログラム行を検索し、その後にエラーメッセージ
を併合する。これにより、テキスト記憶域6にはソース
プログラムとエラーメツセージとの両方が表示イメージ
と同じ順序で記憶された状態になる。
The text management means 5 retrieves the corresponding source program lines in the text storage area 6 and then merges the error messages. As a result, both the source program and the error message are stored in the text storage area 6 in the same order as the display image.

この後、テキスト記憶域6にエラーメツセージが含まれ
ているかどうかが再び判定され(ステップ22)、この
時点では含まれているのでメツセージ検索手段7に制御
が移り、テキスト管理手段5から渡されるエラーメツセ
ージを検索してその位置をテキスト表示手段3に通知す
る(ステップ23)。
After this, it is determined again whether or not the text storage area 6 contains an error message (step 22), and since it is included at this point, control is transferred to the message retrieval means 7, and the error message passed from the text management means 5 is determined again. The message is searched and its position is notified to the text display means 3 (step 23).

テキスト表示手段3は、テキスト管理手段5に位置を指
定して表示テキストの要求を行うが、ソースプログラム
とエラーメッセージとからなるテキストを渡されるため
、端末1には第3図(blに示すようにエラーメツセー
ジとその前後のソースプログラムとが同時に表示される
(ステップ24)。
The text display means 3 specifies a position to the text management means 5 and requests display text, but since the text consisting of the source program and error message is passed to the terminal 1, as shown in FIG. The error message and the source program before and after it are displayed simultaneously (step 24).

利用者が端末1の画面に編集指定を行うと、テキスト表
示手段3からテキス)[集手段4に通知され、テキス)
I集子段4はテキスト管理手段5を介してテキスト記憶
域6のソースプログラムを更新する(ステップ25)が
、テキスト管理手段5はソースプログラムを更新すると
同時に付随するエラーメツセージの削除も行う。
When the user specifies editing on the screen of the terminal 1, the text display means 3 sends a text) [The collection means 4 is notified and the text]
The I collection stage 4 updates the source program in the text storage area 6 via the text management means 5 (step 25), but the text management means 5 also deletes the accompanying error message at the same time as updating the source program.

ソースプログラムとエラーメッセージとは同じ形式のテ
キストとしてテキスト記憶域6に記憶されるが、各行に
テキスl別用のフラグを付加することでソースプログラ
ムかエラーメツセージかを区別する。テキスト記憶域6
を統一的に管理するテキスト管理手段5は、このフラグ
により不要なテキストを読み飛ばすだけで任意のソース
プログラムまたはエラーメツセージあるいはその両方を
テキストを要求した手段に渡すことができる。
A source program and an error message are stored in the text storage area 6 as text in the same format, but a flag for each text is added to each line to distinguish whether it is a source program or an error message. text storage area 6
The text management means 5, which manages the text in a unified manner, can pass any source program and/or error message to the means that requested the text by simply skipping unnecessary text using this flag.

テキストエディタ10は、利用者の終了指示(ステップ
26)に基づいてテキスト記憶域6のソースプログラム
をソースプログラムファイル2に書き出す(ステップ2
7)ことにより更新して処理を終了する。
The text editor 10 writes the source program in the text storage area 6 to the source program file 2 (step 2) based on the user's termination instruction (step 26).
7) Update and end the process.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、サブコマンドとしてコン
パイラを起動する指示を行うだけで、編集中のソースプ
ログラムにコンパイルエラーが発見されるとエラーメツ
セージとソースプログラムとを対応させエラーのある部
分に端末の画面を自動的に位置付け、その位置のソース
プログラムとエラーメツセージとの両方を見ながら即時
に修正を行い再度コンパイルを行って結果を確認できる
テキストエディタを、既存のテキストエディタの主な処
理手段であるテキスト表示手段とテキスト編集手段とを
変更することなく、テキスト管理手段の変更とメッセー
ジ併合手段およびメッセージ検索手段を追加するだけで
機能を効率的に実現できる効果がある。
As explained above, in the present invention, by simply issuing an instruction to start the compiler as a subcommand, when a compile error is found in the source program being edited, the error message is associated with the source program, and the error message is displayed on the terminal. The main processing method of existing text editors is a text editor that automatically positions the screen of There is an effect that the function can be efficiently realized by simply changing the text management means and adding message merging means and message retrieval means without changing certain text display means and text editing means.

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

第1図は本発明のテキストエディタにおけるコンパイル
エラー表示方式の一実施例を示すブロック図、 第2図は第1図中に示したテキストエディタにおける処
理を示す流れ図、 第3図+a)、 fblは、端末の画面表示の移り変わ
りの前後を示す概念図である。 図において、 1・・・端末、 2・・・ソースプログラムファイル、 3・・・テキスト表示手段、 4・・・テキスト編集手段、 5・・・テキスト管理手段、 6・・・テキスト記憶域、 7・・・メッセージ検索手段、 8・・・コンパイラ起動手段、 9・・・メツセージ併合手段、 10・・・テキストエディタ、 11・・・コンパイラである。
Fig. 1 is a block diagram showing an embodiment of the compilation error display method in the text editor of the present invention, Fig. 2 is a flow chart showing the processing in the text editor shown in Fig. 1, Fig. 3 +a), fbl is , is a conceptual diagram showing before and after changes in screen display of a terminal. In the figure, 1... terminal, 2... source program file, 3... text display means, 4... text editing means, 5... text management means, 6... text storage area, 7 . . . Message search means, 8. Compiler activation means, 9. Message merging means, 10. Text editor, 11. Compiler.

Claims (1)

【特許請求の範囲】 ソースプログラムとエラーメッセージとの2つのテキス
トを同時に記憶するテキスト記憶域と、このテキスト記
憶域内のテキストを統一的に管理しソースプログラムと
エラーメッセージとの対応付けや編集されたソース行に
対応しているエラーメッセージの削除を行い要求された
テキストに対する入出力を行うテキスト管理手段と、 コンパイラを起動し前記テキスト記憶域のソースプログ
ラムを前記コンパイラに渡すコンパイラ起動手段と、 前記コンパイラの出力したエラーメッセージを前記テキ
スト記憶域に出力するメッセージ併合手段と、 前記テキスト記憶域のテキストを端末の画面に表示する
テキスト表示手段と、 前記テキスト記憶域のエラーメッセージを検索し前記テ
キスト表示手段に対して表示するテキスト位置を通知す
るメッセージ検索手段と、 前記テキスト表示手段の情報により前記テキスト記憶域
のソースプログラムの編集を行うテキスト編集手段と、 を含むことを特徴とするテキストエディタにおけるコン
パイルエラー表示方式。
[Claims] A text storage area that simultaneously stores two texts, a source program and an error message, and a system that uniformly manages the text in this text storage area and associates the source program with the error message and edits the text. a text management means for deleting an error message corresponding to a source line and inputting/outputting the requested text; a compiler starting means for starting a compiler and passing the source program in the text storage area to the compiler; Message merging means for outputting error messages output from the text storage area to the text storage area; text displaying means for displaying the text in the text storage area on a screen of a terminal; and text displaying means for searching for error messages in the text storage area. A compile error in a text editor, comprising: a message search means for notifying a text position to be displayed on a text editor; and a text editing means for editing a source program in the text storage area based on information from the text display means. Display method.
JP61028309A 1986-02-12 1986-02-12 Compiling error display system in text editor Pending JPS62186339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61028309A JPS62186339A (en) 1986-02-12 1986-02-12 Compiling error display system in text editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61028309A JPS62186339A (en) 1986-02-12 1986-02-12 Compiling error display system in text editor

Publications (1)

Publication Number Publication Date
JPS62186339A true JPS62186339A (en) 1987-08-14

Family

ID=12245017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61028309A Pending JPS62186339A (en) 1986-02-12 1986-02-12 Compiling error display system in text editor

Country Status (1)

Country Link
JP (1) JPS62186339A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173135A (en) * 1987-12-26 1989-07-07 Fujitsu Ltd Conversion processing system applying source converter
JPH01175036A (en) * 1987-12-29 1989-07-11 Fujitsu Ltd Source selection type conversion system for source converter
JPH0485622A (en) * 1990-07-30 1992-03-18 Nec Software Ltd Program preparing and translating system
JPH06259235A (en) * 1993-03-08 1994-09-16 Nec Corp Jcl preparing/updating system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01173135A (en) * 1987-12-26 1989-07-07 Fujitsu Ltd Conversion processing system applying source converter
JPH01175036A (en) * 1987-12-29 1989-07-11 Fujitsu Ltd Source selection type conversion system for source converter
JPH0485622A (en) * 1990-07-30 1992-03-18 Nec Software Ltd Program preparing and translating system
JPH06259235A (en) * 1993-03-08 1994-09-16 Nec Corp Jcl preparing/updating system

Similar Documents

Publication Publication Date Title
JPH01180062A (en) Document shaping device
JPS62186339A (en) Compiling error display system in text editor
CN116384347A (en) Rich text editing method
JP3299259B2 (en) Program structure diagram editing processing method
JPS60134282A (en) System screen display system
JP3178001B2 (en) Data processing device
JP3545190B2 (en) CAD system and recording medium
JP2728056B2 (en) File editing device
JP3143909B2 (en) File processing device
JPS62217320A (en) List compilation processing system
JPH0358225A (en) File editing system
JP2723241B2 (en) Document management system
JP3536670B2 (en) Multimedia data presentation method and system, and storage medium storing multimedia data presentation program
JPH02289065A (en) Document generation supporting system
JPH04127264A (en) Automatic correction system for document data
JPH02249034A (en) Information processor
JPH09282129A (en) Clickable map setting data generating method and its execution device
JPH04195582A (en) Method for processing document
JPH0449421A (en) File editing system
JP2000222252A (en) Memory content display system and memory content editing system
JPH08194706A (en) Structural sentence generation device
JPH01231125A (en) Updated history managing system in text editor
JPH0535455A (en) Scroll display system for program
JPH04195529A (en) Comment sentence adding system
JPH02156327A (en) Character picture simulator