JPH04182841A - Compilation error correction system - Google Patents

Compilation error correction system

Info

Publication number
JPH04182841A
JPH04182841A JP2313256A JP31325690A JPH04182841A JP H04182841 A JPH04182841 A JP H04182841A JP 2313256 A JP2313256 A JP 2313256A JP 31325690 A JP31325690 A JP 31325690A JP H04182841 A JPH04182841 A JP H04182841A
Authority
JP
Japan
Prior art keywords
error message
error
source program
file
screen
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
JP2313256A
Other languages
Japanese (ja)
Inventor
Yasuhide Takechi
武知 保秀
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 JP2313256A priority Critical patent/JPH04182841A/en
Publication of JPH04182841A publication Critical patent/JPH04182841A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To eliminate the need to read and compile a source program by displaying the contents of an error message file on a screen editor and selecting an error message when the source program is corrected. CONSTITUTION:When a user starts the screen editor 5 to correct the source program file 6, the editor 5 displays the text of the source program on a screen and enables the text to be edited. The editor 5 checks whether or not there is an error message from the file name of the file 6, and displays a message informing the user and actuates an error detection place positioning means 2 when there is the error message. The means 2 reads the contents of the error message file 7 and makes preparations for listing error messages. When an error detection place positioning indication is made, the means 2 displays a list of error messages together with a cursor and when the error message is selected, the means 2 returns the line number 71 of the error message and the error message statement 72 to the editor 5, which displays them on the screen.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンパイルエラー修正方式に関し、特にソース
プログラムをコンパイルしたときに検出されたエラーを
画面エディタで修正するコンパイルエラー修正方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a compile error correction method, and more particularly to a compile error correction method for correcting errors detected when a source program is compiled using a screen editor.

〔従来の技術〕[Conventional technology]

従来、この種のコンパイルエラー修正方式では、画面エ
ディタからコンパイラを起動して画面エディタの編集バ
ッファのソースプログラムをコンパイルした場合にのみ
、画面エディタ上にコンパイラで検出されたエラーのエ
ラーメツセージが表示されるようになっていた。
Conventionally, in this type of compilation error correction method, error messages for errors detected by the compiler are displayed on the screen editor only when the compiler is started from the screen editor and the source program in the edit buffer of the screen editor is compiled. It was becoming like this.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のコンパイルエラー修正方式では、画面エ
ディタからコンパイラを起動して画面エディタの編集バ
ッファのソースプログラムをコンパイルした場合にのみ
、画面エディタ上にコンパイラで検出されたエラーのエ
ラーメツセージが表示されるようになっていたので、ソ
ースプログラムファイルに格納されているソースプログ
ラムをコンパイルする場合に、いちいち画面エディタの
編集バッファにソースプログラムを読み込んでコンパイ
ルを行い、検出されたエラーをその時点で全部修正して
しまわなければエラーメツセージが消えてしまうという
欠点がある。
In the conventional compilation error correction method described above, an error message for an error detected by the compiler is displayed on the screen editor only when the compiler is started from the screen editor and the source program in the edit buffer of the screen editor is compiled. Therefore, when compiling a source program stored in a source program file, you must read the source program into the edit buffer of the screen editor, compile it, and correct any errors detected at that time. The drawback is that the error message will disappear unless you do so.

また、−括処理によりコンパイルした場合には、コンパ
イルリストを参照しなければソースプログラムのエラー
の修正ができないという欠点がある。
Furthermore, when compiling by batch processing, there is a drawback that errors in the source program cannot be corrected without referring to the compilation list.

本発明の目的は、上述の点に鑑み、ソースプログラムフ
ァイルに格納されているソースプログラムをコンパイル
する場合に画面エディタの編集バッファにソースプログ
ラムを読み込んでコンパイルを行う必要がなく、検出さ
れたエラーのエラーメツセージがその場で消えてなくな
ってしまうこともないようにしたコンパイルエラー修正
方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to eliminate the need to read the source program into the edit buffer of a screen editor and compile it when compiling a source program stored in a source program file. The object of the present invention is to provide a compilation error correction method that prevents error messages from disappearing on the spot.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のコンパイルエラー修正方式は、画面にソースプ
ログラムの内容を表示してソースプログラムを修正する
画面エディタを持つ情報処理システムにおいて、ソース
プログラムのコンパイル時にコンパイラで検出されたエ
ラーのエラーメツセージをソースプログラムの行番号と
対応させてレコード化しソースプログラムファイルと関
連付けたファイル名でエラーメツセージファイルとして
作成するエラーメツセージファイル作成手段と、エラー
が検出されたソースプログラムを画面エディタで修正す
るときに画面エディタ上にエラーメツセージファイルの
内容を表示して表示したエラーメツセージを選択するこ
とでエラーが検出されたソースプログラムの行にカーソ
ルを位置付けるエラー検出箇所位置付は手段と、エラー
メツセージファイルの内容がソースプログラムと対応付
かなくなるか不要になるかした場合にエラーメツセージ
ファイルを削除するエラーメッセージファイル削除手段
とを有する。
The compile error correction method of the present invention is an information processing system having a screen editor that displays the contents of a source program on a screen and corrects the source program. A method for creating an error message file that is created as an error message file with a file name that is associated with the line number of the source program file and a file name that is associated with the line number of the source program file. By displaying the contents of the error message file and selecting the displayed error message, you can position the cursor at the line of the source program where the error has been detected. and an error message file deletion means for deleting the error message file when the error message file is no longer attached or becomes unnecessary.

〔作用〕[Effect]

本発明のコンパイルエラー修正方式では、エラーメツセ
ージファイル作成手段がソースプログラムのコンパイル
時にコンパイラで検出されたエラーのエラーメツセージ
をソースプログラムの行番号と対応させてレコード化し
ソースプログラムファイルと関連付けたファイル名でエ
ラーメツセージファイルとして作成し、エラー検出箇所
位置付は手段がエラーが検出されたソースプログラムを
画面エディタで修正するときに画面エディタ上にエラー
メツセージファイルの内容を表示して表示したエラーメ
ツセージを選択することでエラーが検出されたソースプ
ログラムの行にカーソルを位置付け、エラーメツセージ
ファイル削除手段がエラーメツセージファイルの内容が
ソースプログラムと対応付かなくなるか不要になるかし
た場合にエラーメツセージファイルを削除する。
In the compile error correction method of the present invention, the error message file creation means records error messages of errors detected by the compiler during compilation of the source program by associating them with line numbers of the source program, and creates a record with a file name associated with the source program file. It is created as an error message file, and the error detection location is located by displaying the contents of the error message file on the screen editor and selecting the displayed error message when modifying the source program in which an error has been detected using the screen editor. This positions the cursor on the line of the source program where the error is detected, and the error message file deletion means deletes the error message file when the contents of the error message file no longer correspond to the source program or become unnecessary.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例に係るコンパイルエラー修
正方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a compile error correction method according to an embodiment of the present invention.

本実施例のコンパイルエラー修正方式は、エラーメッセ
ージファイル作成手段1と、エラー検出箇所位置付は手
段2と、エラーメツセージファイル削除手段3と、コン
パイラ4と、画面エディタ5と、ソースプログラムファ
イル6と、エラーメツセージファイル7とから構成され
ている。
The compile error correction method of this embodiment includes an error message file creation means 1, an error detection point positioning means 2, an error message file deletion means 3, a compiler 4, a screen editor 5, and a source program file 6. , an error message file 7.

第2図を参照すると、エラーメツセージファイル作成手
段1により作成されるエラーメツセージファイル7のレ
コード70は、コンパイラ4でエラーが検出されたソー
スプログラムの行番号71と、エラーメッセージ文72
とから構成されている。
Referring to FIG. 2, the record 70 of the error message file 7 created by the error message file creation means 1 includes the line number 71 of the source program where the error was detected by the compiler 4, and the error message text 72.
It is composed of.

次に、このように構成された本実施例のコンパイルエラ
ー修正方式の動作について説明する。
Next, the operation of the compile error correction method of this embodiment configured as described above will be explained.

利用者の指示によりコンパイラ4が起動されると、コン
パイラ4は、ソースプログラムファイル6からソースプ
ログラムを入力してコンパイルを行う。コンパイラ4は
、コンパイル中にソースプログラムのエラーを検出して
もコンパイラ4の内部に行番号71.エラーメッセージ
文72等のエラー情報を蓄えながらコンパイルを続行し
、終了時点でエラーメツセージファイル作成手段1にソ
ースプログラムファイル6のファイル名と蓄えられエラ
ー情報とを渡す。
When the compiler 4 is activated by a user's instruction, the compiler 4 inputs a source program from the source program file 6 and compiles it. Even if the compiler 4 detects an error in the source program during compilation, line number 71. Compiling is continued while storing error information such as an error message sentence 72, and at the end of the compilation, the file name of the source program file 6 and the stored error information are passed to the error message file creation means 1.

エラーメツセージファイル作成手段1は、受は取ったソ
ースプログラムファイル6のファイル名に関連付けたフ
ァイル名でエラーメツセージファイル7を生成し、受は
取ったエラー情報で行番号71およびエラーメッセージ
文72からなるレコード70を作成してエラーメッセー
ジファイル7に出力する。
The error message file creation means 1 generates an error message file 7 with a file name associated with the file name of the received source program file 6, and the error message file 7 is composed of a line number 71 and an error message text 72 based on the received error information. A record 70 is created and output to the error message file 7.

利用者がソースプログラムファイル6を修正しようとし
て画面エディタ5を起動すると、画面エディタ5は、ソ
ースプログラムファイル6のソースプログラムのテキス
トを画面に表示し7て編集可能とする。それとともに、
画面エディタ5は、ソースプログラム、ファイル6のフ
ァイル名に関連付けたファイル名でエラーメツセージフ
ァイル7が存在するかどうかを調べ、存在すればエラー
メッセージが存在する旨を利用者に知らせるメツセージ
を画面に表示し、エラー検出箇所位置付は手段2を起動
する。
When the user starts the screen editor 5 to modify the source program file 6, the screen editor 5 displays the text of the source program of the source program file 6 on the screen and makes it editable. Along with that,
The screen editor 5 checks whether an error message file 7 exists with a file name associated with the file name of the source program and file 6, and if it exists, displays a message on the screen informing the user that an error message exists. However, for locating the error detection location, means 2 is activated.

エラー検出箇所位置付は手段2は、エラーメッセージフ
ァイル7の内容を読み込み、エラーメ/セージ−覧の画
面表示の準備をする。利用者から画面エディタ5を通し
てエラー検出箇所位置付は指示がくると、エラー検出箇
所位置付は手段2は、工°ラーメソセージー覧をカーソ
ルとともに表示し、カーソル移動キーとリターンキーと
によるエラーメツセージの選択を可能とする。エラーメ
ツセージが選択されると、エラー検出箇所位置付は手段
2は、画面エディタ5に選択されたエラーメツセージの
行番号71とエラーメッセージ文72とを返却する。
The error detection point positioning means 2 reads the contents of the error message file 7 and prepares to display the error message list on the screen. When an instruction for locating the error detection location is received from the user through the screen editor 5, the error detection location locating means 2 displays a list of engineering systems with a cursor and sends an error message using the cursor movement key and return key. allows for selection. When an error message is selected, the error detection location location means 2 returns the line number 71 and error message text 72 of the selected error message to the screen editor 5.

画面エディタ5は、返却された行番号71でソースプロ
グラムのテキストにカーソルを位置付け、返却されたエ
ラーメッセージ文72と一緒に画面に表示する。
The screen editor 5 positions the cursor on the text of the source program at the returned line number 71 and displays it on the screen together with the returned error message text 72.

利用者が画面エディタ5にテキストの再行番号付は指示
およびエラーメツセージファイル7の削除指示を行った
場合は、エラーメツセージファイル削除手段3が起動さ
れ、エラーメツセージファイル削除手段3は、エラーメ
ツセージファイル7の削除を行う。
When the user instructs the screen editor 5 to renumber the lines of text and to delete the error message file 7, the error message file deletion means 3 is activated, and the error message file deletion means 3 deletes the error message file. Delete 7.

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

以上説明したように本発明は、コンパイラでエラーが検
出されたときにコンパイルするソースプログラムが格納
されているソースプログラムファイルのファイル名と関
連付けたファイル名のエラーメツセージファイルにエラ
ーが検出された行番号と対応してエラーメツセージを格
納しておき、画面エディタを使用してソースプログラム
を修正するときにソースプログラムファイルのファイル
名からエラーメツセージファイルを捜し、エラーメツセ
ージファイルが存在すれば画面エディタの機能としてエ
ラーメツセージ−覧の表示とエラーメツセージの選択に
よるエラー検出箇所−1のカーソルの位置付けとができ
、またエラーメツセージファイルの内容がソースプログ
ラムと対応付かなくなるかエラーメッセージファイルが
不要になるかした時点でエラーメツセージファイルを削
除できるようにしたことにより、ソースプログラムファ
イルに格納されているソースプログラムをコンパイルす
る場合に、いちいち画面エディタの編集バンファにソー
スプログラムラ読み込んでコンパイルを行う必要がなく
、コンパイラで検出されたエラーのエラーメッセージが
その場で消えてしまうこともないので時間をおいて修正
することもできるという効果がある。
As explained above, in the present invention, when an error is detected by the compiler, the error message file with the file name associated with the file name of the source program file in which the source program to be compiled is stored contains the line number where the error was detected. When modifying a source program using the screen editor, the error message file is searched from the file name of the source program file, and if the error message file exists, it is used as a function of the screen editor. You can display a list of error messages and position the cursor at error detection location 1 by selecting an error message, and when the contents of the error message file no longer correspond to the source program or the error message file is no longer needed, By making it possible to delete error message files, when compiling a source program stored in a source program file, there is no need to load the source program into the edit buffer of the screen editor and compile it, and the compiler can detect it. This has the effect that the error message of the error that occurred does not disappear immediately, so it can be corrected after some time.

また、−括処理によるコンパイルでも画面エディタでエ
ラーメツセージを参照しながら修正することができるの
で、ソースプログラムのコンパイルエラーを効率よく修
正することができるという効果がある。
Further, even when compiling by batch processing, corrections can be made while referring to error messages on the screen editor, so there is an effect that compilation errors in source programs can be corrected efficiently.

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

第1図は本発明の一実施例に係るコンパイルエラー修正
方式の構成を示すブロック図、第2図は第[図中のエラ
ーメツセージファイル作成手段により作成されるエラー
メツセージファイルのレコードの構成を示す図である。 図において、 1・・・エラーメツセージファイル作成手段、2・・・
エラー検出箇所位置付は手段、3・・・エラーメツセー
ジファイル削除手段、4・・・コンパイラ、 5・・・画面エディタ、 6・・・ソースプログラムファイル、 7・・・エラーメツセージファイル、 70・・レコード、 71・・行番号、 72・・エラーメンセージ文である。
FIG. 1 is a block diagram showing the configuration of a compile error correction method according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the configuration of records of an error message file created by the error message file creation means in FIG. It is a diagram. In the figure, 1... error message file creation means, 2...
Error detection point location means, 3... error message file deletion means, 4... compiler, 5... screen editor, 6... source program file, 7... error message file, 70... Record, 71... line number, 72... error message statement.

Claims (1)

【特許請求の範囲】 画面にソースプログラムの内容を表示してソースプログ
ラムを修正する画面エディタを持つ情報処理システムに
おいて、 ソースプログラムのコンパイル時にコンパイラで検出さ
れたエラーのエラーメッセージをソースプログラムの行
番号と対応させてレコード化しソースプログラムファイ
ルと関連付けたファイル名でエラーメッセージファイル
として作成するエラーメッセージファイル作成手段と、 エラーが検出されたソースプログラムを画面エディタで
修正するときに画面エディタ上にエラーメッセージファ
イルの内容を表示して表示したエラーメッセージを選択
することでエラーが検出されたソースプログラムの行に
カーソルを位置付けるエラー検出箇所位置付け手段と、 エラーメッセージファイルの内容がソースプログラムと
対応付かなくなるか不要になるかした場合にエラーメッ
セージファイルを削除するエラーメッセージファイル削
除手段と を有することを特徴とするコンパイルエラー修正方式。
[Claims] In an information processing system having a screen editor that displays the contents of a source program on a screen and corrects the source program, an error message of an error detected by a compiler when compiling a source program is displayed by the line number of the source program. A method for creating an error message file that creates a record with a file name associated with the source program file, and an error message file that is created on the screen editor when a source program in which an error has been detected is corrected using the screen editor. Error detection location positioning means for displaying the contents of the error message file and selecting the displayed error message to position the cursor on the line of the source program where the error was detected; and an error message file deletion means for deleting an error message file if something goes wrong.
JP2313256A 1990-11-19 1990-11-19 Compilation error correction system Pending JPH04182841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2313256A JPH04182841A (en) 1990-11-19 1990-11-19 Compilation error correction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2313256A JPH04182841A (en) 1990-11-19 1990-11-19 Compilation error correction system

Publications (1)

Publication Number Publication Date
JPH04182841A true JPH04182841A (en) 1992-06-30

Family

ID=18039012

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2313256A Pending JPH04182841A (en) 1990-11-19 1990-11-19 Compilation error correction system

Country Status (1)

Country Link
JP (1) JPH04182841A (en)

Similar Documents

Publication Publication Date Title
US5673390A (en) Method and system for displaying error messages
US5845120A (en) Method and apparatus for linking compiler error messages to relevant information
JPH02299064A (en) Deletion of marked point
JPH04182841A (en) Compilation error correction system
JPH07120285B2 (en) How to use the syntax checker and text editor
JP4484148B2 (en) SI target file and SI related file management system
JPH0388011A (en) Device for examination of working procedure
JPH06274371A (en) Source program correcting method
JPH05173844A (en) Coding error correcting system
JP3058050B2 (en) Source program modification support device
JPH0128974B2 (en)
JPH07101383B2 (en) Schematic program editor error display method
JP2639349B2 (en) Error correction line search device
JP3130884B2 (en) Debug device and debugging method
JPH0612542B2 (en) How to copy the mark part of structured document
JP3004709B2 (en) Error correction support system for knowledge editor
JPH02249034A (en) Information processor
JPH06332684A (en) Program correction supporting device
JPH0589103A (en) Document editing processor
JPH05197561A (en) Compilation system
JPH04324528A (en) Program editing device and compiling device
JP2001134462A (en) Program debug device
JPH05313878A (en) Program coding back-up system
JPH11296406A (en) Program correction supporting system
JPH05181919A (en) System design supporting device