JPH0370033A - Compiler/editor interlocking system - Google Patents

Compiler/editor interlocking system

Info

Publication number
JPH0370033A
JPH0370033A JP20620689A JP20620689A JPH0370033A JP H0370033 A JPH0370033 A JP H0370033A JP 20620689 A JP20620689 A JP 20620689A JP 20620689 A JP20620689 A JP 20620689A JP H0370033 A JPH0370033 A JP H0370033A
Authority
JP
Japan
Prior art keywords
error
source program
compilation
program
display
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
JP20620689A
Other languages
Japanese (ja)
Inventor
Keizo Matsunaga
松永 敬三
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 Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 NEC Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP20620689A priority Critical patent/JPH0370033A/en
Publication of JPH0370033A publication Critical patent/JPH0370033A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To immediately correct a source program and to remarkably simplify the compilation and the corrective work of the program by automatically starting up an editor when an error occurs in performing the compilation, and displaying a faulty part in the source program and the cause of the error. CONSTITUTION:A compilation error judging means 4 which judges the error by referring to an error message file outputted from a compiler, a retrieval means 8 which retrieves the faulty part in the source program 1, and error display means 9, 10 which display retrieved error part and cause of the error in the compilation are provided, and when the error is detected when the compilation is completed, a source program display picture used by the editor and an error part/error cause display area used by the error display means are displayed simultaneously with a picture division means 9, and the correction of the source program is performed on a picture on one side while observing the display of the error on the picture on the other side, and the compiler is restarted up by performing the automatic start-up of the program successively. In such a way, an operation can be easily performed and efficiency can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム開発システムにおいてプログラムを
作成する装置に関し、特にソースプログラムを作成する
エディタとソースプログラムを翻訳するコンパイラを連
動させて利用する方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a device for creating a program in a program development system, and particularly relates to a method of using an editor for creating a source program and a compiler for translating the source program in conjunction with each other. .

〔従来の技術〕[Conventional technology]

従来、プログラム開発システムにおいてソースプログラ
ムの翻訳・修正を行なう場合、第2図に示すように、ソ
ースプログラム21を翻訳するコンパイラ22を起動し
翻訳を実行した後、翻訳エラーがあればエラー箇所とエ
ラー原因をエラーリスト23に出力する。その後ソース
プログラムの修正手段であるエディタ24を起動し画面
25にソースプログラムを表示させ、コンパイラ22が
出力したエラー箇所とエラー原因のエラーリスト23を
見ながら、エディタの画面25によりソースプログラム
の誤り箇所を修正する。上記の修正完了後エディタ24
を終了させ、再びコンパイラ22を起動し再コンパイル
を行なっていた。
Conventionally, when translating and modifying a source program in a program development system, as shown in FIG. The cause is output to the error list 23. After that, start the editor 24 which is a source program correction means, display the source program on the screen 25, and while looking at the error list 23 of the error locations and error causes output by the compiler 22, check the error locations of the source program on the editor screen 25. Correct. Editor 24 after completing the above corrections
was terminated, the compiler 22 was restarted, and recompilation was performed.

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

上述した従来の方式では、コンパイルでエラーが発生し
た場合、コンパイラがら出力されるソースプログラムの
エラー箇所とエラー原因をリスト出力装置によってリス
トに出力した後にエディタを立上げ、前記のリストを参
照しながらソースプログラムのエラー箇所を捜し出し修
正を完了させ、再びコンパイラを立ち上げソースプログ
ラムを再コンパイルしなければならない。したがってコ
ンパイルでエラーが発生するたびに同じ操作を繰り返す
ことになり、1つのプログラムをコンパイル完了させる
までの過程では、何度かコンパイルを繰り返す必要があ
るので、従来の方式では操作が煩られしく効率が悪くな
るという欠点がある。
In the conventional method described above, when an error occurs during compilation, the compiler outputs the error location and cause of the error in the source program to a list using the list output device, then starts an editor, and while referring to the list, It is necessary to find the error location in the source program, complete the correction, restart the compiler, and recompile the source program. Therefore, the same operation must be repeated every time an error occurs during compilation, and it is necessary to repeat compilation several times in the process of compiling one program, making the operation cumbersome and inefficient. The disadvantage is that it worsens.

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

本発明のコンパイラエディタ連動方式は、コンパイラが
出力したエラーメツセージファイルを参照しエラーを判
断するコンパイルエラー判断手段と、前記エラーメツセ
ージファイルをもとにソースプログラムの誤り箇所を検
索する検索手段と、前記検索手段で検索したコンパイル
時のエラー箇所とエラー原因を表示するエラー表示手段
とを有し、コンパイル終了時に前記コンパイルエラー判
断手段によりエラーを検出したとき、プログラム起動手
段によりソースプログラムの誤り箇所検索手段とコンパ
イル時のエラー表示手段とソースプログラムの修正手段
であるエディタとを起動し、エディタの用いるソースプ
ログラム表示画面とエラー表示手段の用いるエラー箇所
・エラー原因表示画面とを画面分割手段により同時に表
示し、方の画面でエラー表示を見ながら他方の画面でソ
ースプログラムの修正を行ない、継続してプログラム自
動起動によりコンパイラを再起動しソースプログラムを
再コンパイルするようにして実現される。
The compiler-editor interlocking method of the present invention includes: a compile error determining means for determining an error by referring to an error message file output by a compiler; a search means for searching for an error location in a source program based on the error message file; Error display means for displaying the error location and error cause during compilation searched by the search means, and when an error is detected by the compilation error determination means at the end of compilation, the error location search means for the source program is performed by the program startup means. and an editor, which is a compiling error display means and a source program correction means, are started, and the source program display screen used by the editor and the error location/error cause display screen used by the error display means are simultaneously displayed by the screen splitting means. This is achieved by correcting the source program on the other screen while viewing the error display on one screen, and then restarting the compiler and recompiling the source program through automatic program startup.

〔実施例〕〔Example〕

以下、本発明について図面を参照して説明する。 Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明のコンパイラエディタ連動方式の一実施
例のブロック図である。第1図において1はプログラム
を格納するファイル装置、2はソースプログラムを翻訳
しコンパイルユニットを作成するコンパイラ、3はコン
パイルユニットを格納するファイル装置、4はソースプ
ログラムのコンパイル後にコンパイラが出力するエラー
メツセージファイル6を検索しコンパイルエラーがあっ
たかどうかを判断するコンパイルエラー判断手段。
FIG. 1 is a block diagram of an embodiment of the compiler-editor interlocking system of the present invention. In Figure 1, 1 is a file device that stores the program, 2 is a compiler that translates the source program and creates a compilation unit, 3 is a file device that stores the compilation unit, and 4 is an error message output by the compiler after compiling the source program. Compile error determining means for searching file 6 and determining whether there is a compile error.

5はエディタやエラー検索手段を自動起動させるプログ
ラム自動起動手段、6はコンパイラ2がら出力されるエ
ラー箇所とエラー原因を格納するエラーメツセージファ
イル、7はソースプログラムの作成・修正を行なうエデ
ィタ、8はエラーメツセージファイルの情報をもとにソ
ースプログラムのエラー箇所を検索するエラー検索手段
、9はエディタから出力されるソースプログラムの画面
とエラー検索手段から出力されるエラー箇所とエラー原
因の画面を同時に画面分割により一画面上に出力する画
面分割表示手段、10は画面分割表示手段から出力され
る画面情報を画面上に映し出すデイスプレィ装置と打鍵
情報の入力機能をもつキーボードを備えた端末装置であ
る。
5 is a program automatic starting means for automatically starting an editor and an error search means; 6 is an error message file that stores the error location and error cause output from the compiler 2; 7 is an editor for creating and modifying a source program; 8 is a Error search means for searching for error locations in a source program based on information in an error message file; 9 displays simultaneously the source program screen output from the editor and the error location and error cause screen output from the error search means; A screen split display means outputs the screen information on one screen by dividing the screen, and 10 is a terminal device equipped with a display device that displays screen information outputted from the screen split display means on the screen and a keyboard having a function of inputting keystroke information.

ソースプログラムのコンパイルが終了すると、コンパイ
ラ2によって出力されたエラーメツセージファイル6を
コンパイルエラー判断手段4が検索し、エラーがあれば
プログラム自動起動手段5がエディタ7とエラー検索手
段8を立ち上げる。
When the compilation of the source program is completed, the compile error determining means 4 searches the error message file 6 output by the compiler 2, and if an error is found, the program automatic starting means 5 starts up the editor 7 and the error searching means 8.

エラー検索手段8はエラーメツセージファイル6に格納
されているエラー箇所をもとにソースプログラム1を検
索し、検索箇所とエラー原因を画面情報として画面分割
表示手段9へ受は渡す。また、エディタ7はソースプロ
グラムを画面情報として画面分割表示手段9へ受は渡す
。画面分割表示手段9は受は取った前記2つの画面情報
を端末装置10のデイスプレィ上に同時に表示し、画面
からエディタ7を通してソースプログラム1の修正を行
なう。
The error search means 8 searches the source program 1 based on the error location stored in the error message file 6, and passes the search location and error cause to the screen split display means 9 as screen information. Further, the editor 7 passes the source program as screen information to the screen split display means 9. The screen split display means 9 displays the received two screen information simultaneously on the display of the terminal device 10, and the source program 1 is modified through the editor 7 from the screen.

ソースプログラムの修正が完了するとプログラム自動起
動手段5によりコンパイラ2を立ち上げソースプログラ
ム1の再コンパイル処理に入ることができる。
When the modification of the source program is completed, the program automatic starting means 5 starts up the compiler 2, and recompilation processing of the source program 1 can be started.

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

以上説明したように、本発明はコンパイル時にエラーが
あった場合に自動的にエディタを立ち上げソースプログ
ラムのエラー箇所とエラー原因を表示することにより、
ソースプログラムの修正が即座に行なえ、又、修正終了
後に自動的にコンパイラ−を立ち上げコンパイルを実行
することにより、プログラム作成におけるプログラムの
コンパイルと修正の作業が大幅に簡略化されるという利
点がある。
As explained above, the present invention automatically launches an editor when an error occurs during compilation and displays the error location and cause of the error in the source program.
The advantage is that the source program can be modified immediately, and the compiler is automatically launched and compiled after the modification is completed, greatly simplifying the work of compiling and modifying the program during program creation. .

第1図は本発明の一実施例を示すブロック図、第2図は
従来例を示す説明図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram showing a conventional example.

1・・・ファイル装置、2・・・コンパイラ、3・・・
コンパイルユニット、4・・・コンパイルエラー判断手
段、5・・・プログラム自動起動手段、6・・・エラー
メツセージファイル、7・・・エディタ、8・・・エラ
ー検索手段、9・・・画面分割表示手段、10・・・端
末装置。
1...File device, 2...Compiler, 3...
Compilation unit, 4... Compile error determination means, 5... Program automatic start means, 6... Error message file, 7... Editor, 8... Error search means, 9... Split screen display. Means, 10...terminal device.

Claims (1)

【特許請求の範囲】[Claims] コンパイラが出力したエラーメッセージファイルを参照
しエラーを判断するコンパイルエラー判断手段と、前記
エラーメッセージファイルをもとにソースプログラムの
誤り箇所を検索する検索手段と、前記検索手段で検索し
たコンパイル時のエラー箇所とエラー原因を表示するエ
ラー表示手段とを有し、コンパイル終了時に前記コンパ
イルエラー判断手段によりエラーを検出したとき、プロ
グラム起動手段によりソースプログラムの誤り箇所検索
手段とコンパイル時のエラー表示手段とソースプログラ
ムの修正手段であるエディタとを起動し、エディタの用
いるソースプログラム表示画面とエラー表示手段の用い
るエラー箇所・エラー原因表示画面とを画面分割手段に
より同時に表示し、一方の画面でエラー表示を見ながら
他方の画面でソースプログラムの修正を行ない、継続し
てプログラム自動起動によりコンパイラを再起動しソー
スプログラムを再コンパイルすることを特徴とするコン
パイラエディタ連動方式。
a compile error determination means for determining an error by referring to an error message file output by a compiler; a search means for searching for an error in a source program based on the error message file; and an error during compilation searched for by the search means. and an error display means for displaying the location and cause of the error, and when an error is detected by the compile error determination means at the end of compilation, the program startup means detects the error location search means for the source program, the error display means at the time of compilation, and the source program. The editor, which is a program modification means, is started, and the source program display screen used by the editor and the error location/error cause display screen used by the error display means are simultaneously displayed by the screen splitting means, and the error display can be viewed on one screen. The compiler-editor interlocking method is characterized in that the source program is modified on the other screen, and the compiler is restarted by automatic program startup to recompile the source program.
JP20620689A 1989-08-08 1989-08-08 Compiler/editor interlocking system Pending JPH0370033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20620689A JPH0370033A (en) 1989-08-08 1989-08-08 Compiler/editor interlocking system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20620689A JPH0370033A (en) 1989-08-08 1989-08-08 Compiler/editor interlocking system

Publications (1)

Publication Number Publication Date
JPH0370033A true JPH0370033A (en) 1991-03-26

Family

ID=16519537

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20620689A Pending JPH0370033A (en) 1989-08-08 1989-08-08 Compiler/editor interlocking system

Country Status (1)

Country Link
JP (1) JPH0370033A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816383A (en) * 1994-06-27 1996-01-19 Kobe Nippon Denki Software Kk Detecting system for error in syntax of source program
JPH08311772A (en) * 1995-05-15 1996-11-26 Ikeda Bussan Co Ltd Composition for backing carpet and production of carpet
EP0864971A2 (en) * 1996-12-18 1998-09-16 Sun Microsystems, Inc. Method, apparatus and computer program product for linking stack messages to relevant information
JP2002151021A (en) * 2000-11-08 2002-05-24 Tdk Corp Electrochemical device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0816383A (en) * 1994-06-27 1996-01-19 Kobe Nippon Denki Software Kk Detecting system for error in syntax of source program
JPH08311772A (en) * 1995-05-15 1996-11-26 Ikeda Bussan Co Ltd Composition for backing carpet and production of carpet
EP0864971A2 (en) * 1996-12-18 1998-09-16 Sun Microsystems, Inc. Method, apparatus and computer program product for linking stack messages to relevant information
EP0864971A3 (en) * 1996-12-18 2005-03-23 Sun Microsystems, Inc. Method, apparatus and computer program product for linking stack messages to relevant information
JP2002151021A (en) * 2000-11-08 2002-05-24 Tdk Corp Electrochemical device

Similar Documents

Publication Publication Date Title
EP0864971A2 (en) Method, apparatus and computer program product for linking stack messages to relevant information
JPH0370033A (en) Compiler/editor interlocking system
JPH05298052A (en) Window system and event processing method
JPH09185500A (en) Device and method for automatically correcting source program
JPH05341983A (en) Information processing system
JPH07311679A (en) Program generation system
JPH05173844A (en) Coding error correcting system
JP2636720B2 (en) Input character string correction device for coding
JPH06332684A (en) Program correction supporting device
JP3063297B2 (en) Language processing program creation device
JP2005038076A (en) Interactive stub device for program test and stub program storage medium
JPH06231001A (en) Symbol name input device
JPH10133883A (en) Compile system
JP2000322267A (en) Method and system for automatic diagnosis and restoration
JPH05289905A (en) Output system for detailed information of error message at the time of translation
JPH1185536A (en) Device and method for automatically correcting error of source program
JPH05334135A (en) Error information display system for abnormal end of program
JPH0981381A (en) Object program comparison system
JP3194925B2 (en) Program debug display method and program debug support device
JPS63228341A (en) Program syntax checking system
JPH0250731A (en) Compiling device
JP3179076B2 (en) Automatic source program generation from flowchart
JPH04101229A (en) Compile error display controlling system
JPH05313878A (en) Program coding back-up system
JPH05274179A (en) Compiling processor