JPH09185500A - Device and method for automatically correcting source program - Google Patents

Device and method for automatically correcting source program

Info

Publication number
JPH09185500A
JPH09185500A JP7342505A JP34250595A JPH09185500A JP H09185500 A JPH09185500 A JP H09185500A JP 7342505 A JP7342505 A JP 7342505A JP 34250595 A JP34250595 A JP 34250595A JP H09185500 A JPH09185500 A JP H09185500A
Authority
JP
Japan
Prior art keywords
error
compile
source program
compilation
correction method
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
JP7342505A
Other languages
Japanese (ja)
Inventor
Satoko Inoue
聡子 井上
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 JP7342505A priority Critical patent/JPH09185500A/en
Publication of JPH09185500A publication Critical patent/JPH09185500A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To uniformly correct a similar compile error to repeatedly appear in the compiled result of source program by retrieving an error information data base based on the error pattern of compile error when the compile error is detected. SOLUTION: When the compile error exists, error information is prepared based on a compile message. Corresponding to the information of error contents, an error pattern analytic part 102 analyzes the pattern of compile error by retrieving all the parts, where an error item appears, as needed. After the compile error is made into pattern, this pattern is dispatched to a correcting method retrieving part 103. The correcting method retrieving part 103 retrieves an error information data base 108 with the error pattern dispatched from the error pattern analytic part 102 as a key and stores information concerning the correcting method of source program suitable for this error pattern into a temporary error information storage area 107.

Description

【発明の詳細な説明】Detailed Description of the Invention

【発明の属する技術分野】本発明は、ソースプログラム
をコンパイルするコンパイル装置が出力するコンパイル
メッセージにおいてコンパイルエラーを検出した際にソ
ースプログラムの自動修正を行うソースプログラムの自
動修正装置および自動修正方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a source program automatic correction apparatus and an automatic correction method for automatically correcting a source program when a compilation error is detected in a compilation message output from a compilation apparatus for compiling a source program.

【0001】[0001]

【従来の技術】ソースプログラムのコンパイル結果にコ
ンパイルエラーが存在する場合、エラーメッセージとエ
ラー行番号とを対応づけてレコード化することにより画
面エディタによるソースプログラムの修正を支援する方
法が、特開平4−182841号公報に記載されてい
る。
2. Description of the Related Art When a compilation error exists in a compilation result of a source program, a method of supporting correction of the source program by a screen editor by recording an error message and an error line number in association with each other is known. It is described in Japanese Patent No. 182841.

【0002】また、ソースプログラムのコンパイル結果
におけるコンパイルエラーをそのエラーメッセージによ
り級分けし、初級エラー、中級エラー、上級エラーの順
に解読してソースプログラムの自動修正を行う方法が、
特開平2−285435号公報に記載されている。
Further, a method of classifying a compile error in a compile result of a source program according to the error message and decoding the source error, intermediate error, and advanced error in this order to automatically correct the source program is as follows.
It is described in JP-A-2-285435.

【0003】[0003]

【発明が解決しようとする課題】これらの従来の技術の
うち前者の方法においては、ソースプログラムのコンパ
イル結果にコンパイルエラーが存在する場合、利用者が
画面エディタによってソースプログラムの修正を行うこ
とになるので、ソースプログラムの修正に工数がかかる
とともに、繰り返し現れる同様のコンパイルエラーにつ
いては何度も同様の修正を行わなければならず、画一的
な修正が行えないという問題点があった。
In the former method of these conventional techniques, when the compilation result of the source program includes a compilation error, the user corrects the source program using a screen editor. Therefore, it takes a lot of man-hours to correct the source program, and similar compilation errors that appear repeatedly have to be corrected many times, which is a problem that uniform correction cannot be performed.

【0004】また、後者の方法においては、ソースプロ
グラムのコンパイル結果におけるコンパイルエラーのエ
ラーメッセージに基づいてソースプログラムの自動修正
を行う方法ではあるが、コンパイルエラーを単に級分け
しているだけであるので繰り返し現れる同様のコンパイ
ルエラーについて画一的な修正が行えないという問題点
があった。
In the latter method, the source program is automatically corrected on the basis of the error message of the compilation error in the compilation result of the source program, but the compilation error is simply classified. There was a problem that the same compilation error that appeared repeatedly could not be fixed uniformly.

【0005】本発明の目的は、ソースプログラムのコン
パイルにかかる工数を削減することにある。
An object of the present invention is to reduce the number of steps required for compiling a source program.

【0006】本発明の他の目的は、ソースプログラムの
コンパイル結果に繰り返し現れる同様のコンパイルエラ
ーについて、画一的な修正を行うことができるようにす
ることにある。
Another object of the present invention is to enable uniform correction of similar compilation errors that appear repeatedly in the compilation result of a source program.

【0007】[0007]

【課題を解決するための手段】本発明の第一のソースプ
ログラムの自動修正装置は、コンパイルエラーのエラー
パターンとそれに対応して予測されるソースプログラム
の修正方法とを格納するエラー情報データベースと、コ
ンパイル装置が出力したコンパイルメッセージにおいて
コンパイルエラーを検出した場合には、該コンパイルエ
ラーのエラーパターンに基づいて前記エラー情報データ
ベースを検索することにより該コンパイルエラーを解消
すると予測される修正方法を取得し、該修正方法に基づ
いて該ソースプログラムの自動修正を行うとともに、前
記コンパイル装置に対してさらなるコンパイルを指示す
るソースプログラム修正部とから構成されている。
A first source program automatic correction apparatus according to the present invention comprises an error information database storing an error pattern of a compile error and a source program correction method predicted corresponding thereto. When a compile error is detected in the compile message output by the compile device, a correction method predicted to eliminate the compile error is obtained by searching the error information database based on the error pattern of the compile error. The source program is automatically corrected on the basis of the correction method, and the source program correction unit instructs the compilation apparatus to further compile.

【0008】本発明の第二のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル対象のソ
ースプログラムが初めてコンパイルされたものであるか
否かを判定するとともに、コンパイル装置が出力したコ
ンパイルメッセージを受け取ってコンパイルエラーの有
無を判定し、コンパイルエラーが存在する場合にはその
エラー情報を取得する判定部とを含み、前記判定部が該
ソースプログラムは初めてコンパイルされたもので、か
つコンパイルエラーが存在すると判定した場合には、前
記コンパイル装置が出力したコンパイルメッセージに基
づいて該コンパイルエラーをパターン化するエラーパタ
ーン分析部と、前記エラーパターン分析部がパターン化
したエラーパターンに対応する該コンパイルエラーを解
消すると予測される修正方法を、前記エラー情報データ
ベースより検索する修正方法検索部と、前記修正方法検
索部が検索して得た該コンパイルエラーを解消すると予
測される修正方法に基づいて該ソースプログラムの自動
修正を行うとともに、前記コンパイル装置に対してさら
なるコンパイルを指示するソースプログラム修正部とを
含んでいる。
A second source program automatic correction apparatus according to the present invention has an error information database storing an error pattern of a compile error and a method of correcting the source program predicted corresponding thereto, and a source program to be compiled. A determination unit that determines whether or not it has been compiled for the first time, determines the presence or absence of a compilation error by receiving the compilation message output by the compiling device, and acquires the error information if there is a compilation error. An error pattern for patterning the compile error based on a compile message output by the compiling device when the deciding section decides that the source program has been compiled for the first time and there is a compile error. Before the analysis department The correction method search unit that searches the error information database for a correction method that is predicted to eliminate the compilation error corresponding to the error pattern that is patterned by the error pattern analysis unit and the correction method search unit, and obtain the correction method. And a source program correction unit for automatically correcting the source program based on a correction method expected to eliminate the compilation error and for instructing the compilation apparatus to perform further compilation.

【0009】本発明の第三のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル対象のソ
ースプログラムが初めてコンパイルされたものであるか
否かを判定するとともに、コンパイル装置が出力したコ
ンパイルメッセージを受け取ってコンパイルエラーの有
無を判定し、コンパイルエラーが存在する場合にはその
エラー情報を取得する判定部と、前記判定部が該ソース
プログラムは初めてコンパイルされたもので、かつコン
パイルエラーが存在しないと判定した場合には、コンパ
イルエラーが存在しない旨の表示を行う表示部とから構
成されている。
According to a third aspect of the present invention, there is provided an automatic source program correction device, wherein an error information database storing an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern is stored. A determination unit that determines whether or not it has been compiled for the first time, determines the presence or absence of a compilation error by receiving the compilation message output by the compiling device, and acquires the error information if there is a compilation error. When the judging unit judges that the source program has been compiled for the first time and there is no compilation error, it comprises a display unit for displaying that there is no compilation error.

【0010】本発明の第四のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル装置が出
力したコンパイルメッセージにおいてコンパイルエラー
を検出した場合には、該コンパイルエラーのエラーパタ
ーンに基づいて前記エラー情報データベースを検索する
ことにより取得した該コンパイルエラーを解消すると予
測される修正方法のうち該ソースプログラムに対して未
適用のものを選択し、該修正方法に基づいて該ソースプ
ログラムの自動修正を行うとともに、前記コンパイル装
置に対してさらなるコンパイルを指示するソースプログ
ラム修正部とから構成されている。
A fourth source program automatic correction apparatus of the present invention is an error information database for storing an error pattern of a compile error and a source program correction method predicted corresponding to the error pattern, and a compile output by the compile apparatus. When a compile error is detected in the message, for the source program among the correction methods predicted to eliminate the compile error obtained by searching the error information database based on the error pattern of the compile error, It is configured by a source program correction unit that selects an unapplied item, automatically corrects the source program based on the correction method, and instructs the compiling device to further compile.

【0011】本発明の第五のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル対象のソ
ースプログラムが初めてコンパイルされたものであるか
否かを判定するとともに、コンパイル装置が出力したコ
ンパイルメッセージを受け取ってコンパイルエラーの有
無を判定し、コンパイルエラーが存在する場合にはその
エラー情報を取得する判定部と、前記判定部が該ソース
プログラムは初めてコンパイルされたものではなく初め
てのコンパイル時に検出されたコンパイルエラーが解消
していないと判定し、かつ該コンパイルエラーを解消す
ると予測される他の修正方法が存在すると判定した場合
には、該修正方法に基づいて該ソースプログラムの自動
修正を行うとともに、前記コンパイル装置に対してさら
なるコンパイルを指示するソースプログラム修正部と、
前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ該コン
パイルエラーを解消すると予測される他の修正方法が存
在しないと判定した場合には、コンパイルエラーの解消
が不可能である旨の表示を行う表示部とから構成されて
いる。
In a fifth source program automatic correction apparatus of the present invention, an error information database storing an error pattern of a compilation error and a method of correcting the source program predicted corresponding thereto, and a source program to be compiled are A determination unit that determines whether or not it has been compiled for the first time, determines the presence or absence of a compilation error by receiving the compilation message output by the compiling device, and acquires the error information if there is a compilation error. , There is another correction method in which the determination unit determines that the source program is not the one that was compiled for the first time and that the compilation error detected at the first compilation has not been resolved, and that the compilation error is predicted to be resolved. If so, the correction method Performs automatic correction of the source program based, a source program correcting section for instructing the further compiled for the compiling device,
The determination unit determines that the source program is not the one that was compiled for the first time and that the compilation error detected at the first compilation has not been resolved, and there is no other correction method that is predicted to eliminate the compilation error. If it is determined that the compile error cannot be eliminated, the display unit displays.

【0012】本発明の第六のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、該ソースプログラム
が初めてコンパイルされたものではなく初めてのコンパ
イル時に検出されたコンパイルエラーが解消している場
合には、該ソースプログラムに対して実際に施した修正
方法を前記エラー情報データベースに登録する修正方法
登録部とから構成されている。
The sixth source program automatic correction device of the present invention is an error information database for storing an error pattern of a compile error and a method of correcting the source program predicted corresponding thereto, and the source program is compiled for the first time. If the compile error detected at the first compile but not the corrected one has been resolved, a correction method registration unit for registering the correction method actually applied to the source program in the error information database. Has been done.

【0013】本発明の第七のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル対象のソ
ースプログラムが初めてコンパイルされたものであるか
否かを判定するとともに、コンパイル装置が出力したコ
ンパイルメッセージを受け取ってコンパイルエラーの有
無を判定し、コンパイルエラーが存在する場合にはその
エラー情報を取得する判定部と、前記判定部が該ソース
プログラムは初めてコンパイルされたものではなく初め
てのコンパイル時に検出されたコンパイルエラーが解消
していると判定した場合には、該ソースプログラムに対
して実際に施した修正方法を前記エラー情報データベー
スに登録する修正方法登録部とから構成されている。
A seventh source program automatic correction apparatus of the present invention comprises an error information database for storing an error pattern of a compile error and a correction method of the source program predicted corresponding to the error pattern, and a source program to be compiled. A determination unit that determines whether or not it has been compiled for the first time, determines the presence or absence of a compilation error by receiving the compilation message output by the compiling device, and acquires the error information if there is a compilation error. If the determination unit determines that the source program is not the one that was compiled for the first time and the compilation error detected at the first compilation is resolved, the correction method actually applied to the source program is used. Modifications registered in the error information database It is composed of a legal registration unit.

【0014】本発明の第八のソースプログラムの自動修
正装置は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを格
納するエラー情報データベースと、コンパイル対象のソ
ースプログラムが初めてコンパイルされたものであるか
否かを判定するとともに、コンパイル装置が出力したコ
ンパイルメッセージを受け取ってコンパイルエラーの有
無を判定し、コンパイルエラーが存在する場合にはその
エラー情報を取得する判定部とを含み、前記判定部が該
ソースプログラムは初めてコンパイルされたもので、か
つコンパイルエラーが存在すると判定した場合には、前
記コンパイル装置が出力したコンパイルメッセージに基
づいて該コンパイルエラーをパターン化するエラーパタ
ーン分析部と、前記エラーパターン分析部がパターン化
したエラーパターンに対応する該コンパイルエラーを解
消すると予測される修正方法を、前記エラー情報データ
ベースより検索する修正方法検索部と、前記修正方法検
索部が検索して得た該コンパイルエラーを解消すると予
測される修正方法に基づいて該ソースプログラムの自動
修正を行うとともに、前記コンパイル装置に対してさら
なるコンパイルを指示するソースプログラム修正部とを
含み、前記判定部が該ソースプログラムは初めてコンパ
イルされたもので、かつコンパイルエラーが存在しない
と判定した場合には、コンパイルエラーが存在しない旨
の表示を行う表示部を含み、前記判定部が該ソースプロ
グラムは初めてコンパイルされたものではなく初めての
コンパイル時に検出されたコンパイルエラーが解消して
いないと判定し、かつ該コンパイルエラーを解消すると
予測される他の修正方法が存在すると判定した場合に
は、該修正方法に基づいて該ソースプログラムの自動修
正を行うとともに、前記コンパイル装置に対してさらな
るコンパイルを指示する前記ソースプログラム修正部を
含み、前記判定部が該ソースプログラムは初めてコンパ
イルされたものではなく初めてのコンパイル時に検出さ
れたコンパイルエラーが解消していないと判定し、かつ
該コンパイルエラーを解消すると予測される他の修正方
法が存在しないと判定した場合には、コンパイルエラー
の解消が不可能である旨の表示を行う前記表示部を含
み、前記判定部が該ソースプログラムは初めてコンパイ
ルされたものではなく初めてのコンパイル時に検出され
たコンパイルエラーが解消していると判定した場合に
は、該ソースプログラムに対して実際に施した修正方法
を前記エラー情報データベースに登録する修正方法登録
部を含んでいる。
An eighth source program automatic correction apparatus according to the present invention comprises an error information database storing an error pattern of a compile error and a correction method of the source program predicted corresponding thereto, and a source program to be compiled. A determination unit that determines whether or not it has been compiled for the first time, determines the presence or absence of a compilation error by receiving the compilation message output by the compiling device, and acquires the error information if there is a compilation error. An error pattern for patterning the compile error based on a compile message output by the compiling device when the deciding section decides that the source program has been compiled for the first time and there is a compile error. Before the analysis department The correction method search unit that searches the error information database for a correction method that is predicted to eliminate the compilation error corresponding to the error pattern that is patterned by the error pattern analysis unit, and the correction method search unit searches and obtains the correction method. A source program correction unit for automatically correcting the source program based on a correction method predicted to eliminate the compilation error, and for instructing further compilation to the compiling device, wherein the determination unit includes the source program. Includes a display unit that displays that no compile error exists when it is determined that the source program was compiled for the first time. Compile detected during first compilation without If it is determined that the error has not been resolved and that there is another modification method that is predicted to resolve the compilation error, the source program is automatically modified based on the modification method, and It includes the source program modification unit for instructing the compiling device to further compile, and the determination unit determines that the source program is not the first compilation and the compilation error detected at the first compilation has not been resolved. In addition, when it is determined that there is no other correction method that is predicted to eliminate the compilation error, the determination unit includes the display unit that displays that the compilation error cannot be eliminated. The source program is not the one that was compiled for the first time, When it is determined that the pile error has been resolved, a correction method registration unit for registering the correction method actually applied to the source program in the error information database is included.

【0015】本発明の第九のソースプログラムの自動修
正装置は、コンパイル装置が出力したコンパイルメッセ
ージにおけるエラー情報、ソースプログラムにおいてコ
ンパイルエラーを解消すると予測される修正方法および
実際に施した修正方法を一時的に格納するエラー情報一
時格納領域と、コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、前記エラー情報
一時格納領域を参照してコンパイル対象のソースプログ
ラムが初めてコンパイルされたものであるか否かを判定
するとともに、前記コンパイル装置が出力したコンパイ
ルメッセージを受け取ってコンパイルエラーの有無を判
定し、コンパイルエラーが存在する場合にはそのエラー
情報を前記エラー情報一時格納領域に格納するととも
に、該ソースプログラムにおいてコンパイルエラーを解
消すると予測される修正方法と実際に施した修正方法と
を前記エラー情報一時格納領域より取得する判定部とを
含み、前記判定部が該ソースプログラムは初めてコンパ
イルされたもので、かつコンパイルエラーが存在すると
判定した場合には、前記判定部が受け取ったコンパイル
メッセージに基づいて該コンパイルエラーをパターン化
するエラーパターン分析部と、前記エラーパターン分析
部がパターン化したエラーパターンに対応する該コンパ
イルエラーを解消すると予測される修正方法を、前記エ
ラー情報データベースより検索して前記エラー情報一時
格納領域に格納する修正方法検索部と、前記エラー情報
一時格納領域に格納された該コンパイルエラーを解消す
ると予測される修正方法に基づいて該ソースプログラム
の自動修正を行うとともに、前記コンパイル装置に対し
てさらなるコンパイルを指示するソースプログラム修正
部とを含み、前記判定部が該ソースプログラムは初めて
コンパイルされたもので、かつコンパイルエラーが存在
しないと判定した場合には、コンパイルエラーが存在し
ない旨の表示を行う表示部を含み、前記判定部が該ソー
スプログラムは初めてコンパイルされたものではなく初
めてのコンパイル時に検出されたコンパイルエラーが解
消していないと判定し、かつ前記エラー情報一時格納領
域より該コンパイルエラーを解消すると予測される他の
修正方法を取得した場合には、該修正方法に基づいて該
ソースプログラムの自動修正を行うとともに、前記コン
パイル装置に対してさらなるコンパイルを指示する前記
ソースプログラム修正部を含み、前記判定部が該ソース
プログラムは初めてコンパイルされたものではなく初め
てのコンパイル時に検出されたコンパイルエラーが解消
していないと判定し、かつ前記エラー情報一時格納領域
より該コンパイルエラーを解消すると予測される他の修
正方法を取得できなかった場合には、コンパイルエラー
の解消が不可能である旨の表示を行う前記表示部を含
み、前記判定部が該ソースプログラムは初めてコンパイ
ルされたものではなく初めてのコンパイル時に検出され
たコンパイルエラーが解消していると判定した場合に
は、前記判定部から渡された実際に施した修正方法を受
け渡す前記ソースプログラム修正部と、前記ソースプロ
グラム修正部から渡された実際に施した修正方法を前記
エラー情報データベースに登録する修正方法登録部とを
含んでいる。
A ninth source program automatic correction apparatus of the present invention temporarily stores error information in a compile message output by the compile apparatus, a correction method expected to eliminate a compile error in the source program, and an actually applied correction method. For temporarily storing error information, an error information database for storing an error pattern of a compilation error and a method of correcting a source program predicted corresponding thereto, and a compilation target by referring to the error information temporary storage area It is determined whether or not the source program of No. 1 is compiled for the first time, the compile message output from the compile device is received to determine whether there is a compile error, and if there is a compile error, the error information is displayed. The error The determination unit includes a determination unit that stores the information in a temporary storage area and that acquires a correction method predicted to eliminate a compilation error in the source program and a correction method actually applied from the error information temporary storage area. If the source program has been compiled for the first time and it is determined that a compilation error exists, an error pattern analysis unit that patterns the compilation error based on the compilation message received by the determination unit, and the error A correction method search unit that searches the error information database for a correction method predicted to eliminate the compilation error corresponding to the patterned error pattern by the pattern analysis unit and stores the correction method in the error information temporary storage area; The compiling stored in the temporary information storage area The source program is corrected for the first time when the source program is automatically corrected on the basis of a correction method predicted to eliminate an error, and the determination unit determines that the source program is the first time. If it is determined that the source program has been compiled and that there is no compilation error, the determination unit includes a display unit that displays that there is no compilation error, and the determination unit is the first time that the source program is not compiled. When it is determined that the compile error detected at the time of compiling is not solved, and another correction method that is predicted to eliminate the compile error is acquired from the error information temporary storage area, based on the correction method, Automatically corrects the source program, and The source device is not the first-compiled source program, and the compile error detected during the first compile is not resolved. In addition, when the other correction method that is predicted to eliminate the compile error cannot be obtained from the error information temporary storage area, the display unit includes a display indicating that the compile error cannot be eliminated. If the determination unit determines that the source program is not the one compiled for the first time and the compilation error detected at the first compilation has been resolved, the correction method actually applied provided from the determination unit The source program modifying unit that delivers the Indeed with modification method and a correction method registration unit that registers the error information database.

【0016】本発明の第一のソースプログラムの自動修
正方法は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを記
憶し、コンパイル装置が出力したコンパイルメッセージ
においてコンパイルエラーを検出した場合には、該コン
パイルエラーのエラーパターンに基づいて該コンパイル
エラーを解消すると予測される修正方法を決定し、該修
正方法に基づいて該ソースプログラムの自動修正を行う
とともに、前記コンパイル装置に対してさらなるコンパ
イルを指示することを特徴とする。
A first source program automatic correction method of the present invention stores an error pattern of a compile error and a source program correction method predicted corresponding to the error pattern, and a compile error is output in a compile message from a compile device. When the compile error is detected, a correction method predicted to eliminate the compile error is determined based on the error pattern of the compile error, the source program is automatically corrected based on the correction method, and the compiling device is also used. Is instructed to be further compiled.

【0017】本発明の第二のソースプログラムの自動修
正方法は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを記
憶し、該ソースプログラムが初めてコンパイルされたも
ので、かつコンパイルエラーが存在しない場合には、コ
ンパイルエラーが存在しない旨の表示を行うことを特徴
とする。
A second method of automatically correcting a source program according to the present invention stores an error pattern of a compile error and a method of correcting the source program predicted corresponding thereto, and the source program is compiled for the first time. When there is no compile error, the display shows that no compile error exists.

【0018】本発明の第三のソースプログラムの自動修
正方法は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを記
憶し、コンパイル装置が出力したコンパイルメッセージ
においてコンパイルエラーを検出した場合には、該コン
パイルエラーのエラーパターンに基づいて決定した該コ
ンパイルエラーを解消すると予測される修正方法のうち
該ソースプログラムに対して未適用のものを選択し、該
修正方法に基づいて該ソースプログラムの自動修正を行
うとともに、前記コンパイル装置に対してさらなるコン
パイルを指示することを特徴とする。
A third method for automatically correcting a source program according to the present invention stores an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern, and compiles the compile error in the compile message output by the compile device. In the case of detecting the compile error, a correction method which is determined based on the error pattern of the compile error and which is not applied to the source program among the correction methods predicted to eliminate the compile error is selected, and based on the correction method, The automatic correction of the source program is performed, and further compilation is instructed to the compiling device.

【0019】本発明の第四のソースプログラムの自動修
正方法は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを記
憶し、該ソースプログラムが初めてコンパイルされたも
のではなく初めてのコンパイル時に検出されたコンパイ
ルエラーが解消している場合には、該ソースプログラム
に対して実際に施した修正方法をさらに記憶することを
特徴とする。
A fourth method for automatically correcting a source program according to the present invention stores an error pattern of a compile error and a method for correcting the source program predicted corresponding to the error pattern, and the source program is not compiled for the first time. If the compile error detected at the first compile is eliminated, the correction method actually applied to the source program is further stored.

【0020】本発明の第五のソースプログラムの自動修
正方法は、コンパイルエラーのエラーパターンとそれに
対応して予測されるソースプログラムの修正方法とを記
憶し、該ソースプログラムが初めてコンパイルされたも
ので、かつコンパイルエラーが存在する場合には、コン
パイル装置が出力したコンパイルメッセージに基づいて
該コンパイルエラーをパターン化し、その後該エラーパ
ターンに対応する該コンパイルエラーを解消すると予測
される修正方法を決定し、さらに該修正方法に基づいて
該ソースプログラムの自動修正を行うとともに、前記コ
ンパイル装置に対してさらなるコンパイルを指示し、該
ソースプログラムが初めてコンパイルされたもので、か
つコンパイルエラーが存在しない場合には、コンパイル
エラーが存在しない旨の表示を行い、該ソースプログラ
ムが初めてコンパイルされたものではなく初めてのコン
パイル時に検出されたコンパイルエラーが解消しておら
ず、かつ該コンパイルエラーを解消すると予測される他
の修正方法が存在する場合には、該修正方法に基づいて
該ソースプログラムの自動修正を行うとともに、前記コ
ンパイル装置に対してさらなるコンパイルを指示し、該
ソースプログラムが初めてコンパイルされたものではな
く初めてのコンパイル時に検出されたコンパイルエラー
が解消しておらず、かつ該コンパイルエラーを解消する
と予測される他の修正方法が存在しない場合には、コン
パイルエラーの解消が不可能である旨の表示を行い、該
ソースプログラムが初めてコンパイルされたものではな
く初めてのコンパイル時に検出されたコンパイルエラー
が解消している場合には、該ソースプログラムに対して
実際に施した修正方法をさらに記憶することを特徴とす
る。
According to a fifth aspect of the present invention, there is provided a method for automatically correcting a source program, which stores an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern, and the source program is compiled for the first time. , And if there is a compile error, pattern the compile error based on the compile message output by the compile device, and then determine a correction method expected to eliminate the compile error corresponding to the error pattern, Furthermore, when the source program is automatically corrected based on the correction method, and further compilation is instructed to the compiling device, and the source program is compiled for the first time, and there is no compilation error, There are no compilation errors There is another correction method that displays a message to the effect that the source program has not been compiled for the first time, the compilation error detected at the first compilation has not been resolved, and that the compilation error is expected to be resolved. In this case, the source program is automatically corrected based on the correction method, and further compilation is instructed to the compiling device, and the source program is not the first compilation but is detected at the first compilation. If the compilation error is not resolved and there is no other correction method that is expected to eliminate the compilation error, a message indicating that the compilation error cannot be resolved is displayed and the source program is displayed for the first time. Detected when first compiled instead of compiled If the compilation errors are eliminated, characterized in that it further stores a correction method actually performed with respect to the source program.

【0021】[0021]

【発明の実施の形態】以下本発明の実施例について、図
を参照しながら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0022】図1を参照すると、本発明の一実施例であ
るソースプログラムの自動修正装置あるいはソースプロ
グラムの自動修正方法を適用したシステムは、コンパイ
ル装置が出力したコンパイルメッセージより、コンパイ
ル対象のソースプログラムが初めてコンパイルされるも
のか過去に少なくとも一回コンパイルされているもので
あるか、コンパイルエラーの有無を判定し、コンパイル
エラーが存在する場合はそのエラー情報を取得する判定
部101と、コンパイル対象のソースプログラムが初め
てコンパイルされるものであってコンパイルエラーが存
在する場合に、判定部101が受け取ったコンパイルメ
ッセージによりコンパイルエラーをパターン化するエラ
ーパターン分析部102と、エラーパターン分析部10
2がパターン化したエラーパターンに対するソースプロ
グラムの修正方法を検索する修正方法検索部103と、
修正方法検索部103が検索して得た修正方法に基づい
てソースプログラムの自動修正を行った後再度コンパイ
ル装置に対してコンパイルを指示するソースプログラム
修正部104と、コンパイル対象のソースプログラムが
初めてコンパイルされるものであってコンパイルエラー
が存在しない場合および二回目以降のコンパイルにおい
てコンパイルエラーが解消していないが他に修正方法が
存在しない場合にその旨を表示する表示部105と、コ
ンパイル対象のソースプログラムにおいてコンパイルエ
ラーが解消した場合にソースプログラムに対して実際に
施した修正方法を登録する修正方法登録部106と、コ
ンパイル装置が出力したコンパイルメッセージにおける
エラー情報、ソースプログラムにおいてコンパイルエラ
ーを解消すると予測される修正方法および実際に施した
修正方法を一時的に格納するエラー情報一時格納領域1
07と、エラーパターンとそれに対応して予測されるソ
ースプログラムの修正方法の情報を格納するエラー情報
データベース108とから構成されている。
Referring to FIG. 1, in a system to which an automatic source program correcting device or a source program automatic correcting method according to an embodiment of the present invention is applied, a source program to be compiled is obtained from a compilation message output from a compiling device. Is compiled for the first time or has been compiled at least once in the past, the presence or absence of a compile error is determined, and if there is a compile error, a determination unit 101 that acquires the error information and a compile target When the source program is compiled for the first time and there is a compilation error, the error pattern analysis unit 102 that patterns the compilation error by the compilation message received by the determination unit 101, and the error pattern analysis unit 10
2. A correction method search unit 103 for searching a correction method of the source program for the error pattern patterned by 2;
A source program modification unit 104 that automatically modifies a source program based on the modification method retrieved by the modification method search unit 103 and then instructs the compiling device to compile again, and a source program to be compiled is first compiled. If the compilation error does not exist, or if the compilation error has not been resolved in the second and subsequent compilations, but there is no other correction method, the display unit 105 that displays that fact and the source to be compiled A correction method registration unit 106 that registers the correction method actually applied to the source program when the compilation error is eliminated in the program, error information in the compilation message output by the compiling device, and a prediction that the compilation error is eliminated in the source program. Error information temporary storing area 1 for temporarily storing the correction method and correction method actually applied is
07, and an error information database 108 that stores information on the error pattern and the correction method of the source program predicted corresponding to the error pattern.

【0023】また、本発明の一実施例であるソースプロ
グラムの自動修正装置およびソースプログラムの自動修
正方法を適用したシステムは、オペレーティングシステ
ム(OS)により呼び出されて動作するとともに、ソー
スプログラムのコンパイルを行うコンパイル装置を呼び
出すものである。
Further, a system to which the apparatus for automatically correcting a source program and the method for automatically correcting a source program according to one embodiment of the present invention are called by an operating system (OS) to operate and compile the source program. It calls the compiling device.

【0024】次に本発明の一実施例の動作について、図
1〜図3を参照して説明する。
Next, the operation of the embodiment of the present invention will be described with reference to FIGS.

【0025】ソースプログラムの作成が終了すると、利
用者はコンパイル装置を起動する代わりに本装置又はシ
ステムを起動し、本装置又はシステムがコンパイル装置
を呼び出す。
When the creation of the source program is completed, the user starts this device or system instead of starting the compiling device, and this device or system calls the compiling device.

【0026】まず、あるソースプログラムについて初め
てコンパイルを行う場合について説明する。
First, a case where a certain source program is compiled for the first time will be described.

【0027】コンパイル装置は、コンパイルを行った結
果をコンパイルメッセージとして判定部101に渡す。
コンパイルエラーが存在する場合は、コンパイルメッセ
ージに、エラー行番号、エラー項目、エラー内容等の詳
細情報が含まれるので、判定部101は、このコンパイ
ルメッセージによりコンパイルエラーの有無を判定する
ことができる。コンパイルエラーが存在する場合は、コ
ンパイルメッセージに基づいて作成したエラー情報をエ
ラー情報一時格納領域107に格納しておく。コンパイ
ル対象のソースプログラムが過去に少なくとも一回以上
コンパイルされてコンパイルエラーが検出されたもので
ある場合はエラー情報一時格納領域107にエラー情報
が存在するのでソースプログラムは初めてコンパイルさ
れたものではないことが分かる。また、コンパイル対象
のソースプログラムが初めてコンパイルされたものであ
る場合はエラー情報一時格納領域107にエラー情報が
存在しないのでその旨を認識することができる。今は、
初めてコンパイルを行う場合について考えているので、
エラー情報一時格納領域107にはエラー情報が存在せ
ず、判定部101は、コンパイル対象のソースプログラ
ムが初めてコンパイルされたものであることを認識する
(ステップ301)。
The compiling device delivers the result of compiling to the judging section 101 as a compiling message.
When there is a compile error, the compile message includes detailed information such as an error line number, an error item, and an error content. Therefore, the determination unit 101 can determine the presence or absence of the compile error based on the compile message. If there is a compile error, the error information created based on the compile message is stored in the error information temporary storage area 107. If the source program to be compiled has been compiled at least once in the past and a compilation error has been detected, error information exists in the error information temporary storage area 107, so the source program is not the first compilation. I understand. Further, when the source program to be compiled is the one compiled for the first time, since there is no error information in the error information temporary storage area 107, that fact can be recognized. now,
I'm thinking about compiling for the first time, so
The error information does not exist in the error information temporary storage area 107, and the determination unit 101 recognizes that the source program to be compiled is the first compiled program (step 301).

【0028】また、判定部101は、上述したように、
コンパイルエラーの有無を判定する(ステップ30
2)。コンパイルエラーが存在しない場合はエラー情報
の取得はできないので、表示部105がコンパイルエラ
ー無しの表示を行った後(ステップ303)、コンパイ
ルは終了する。また、コンパイルエラーが存在する場合
は、エラーパターン分析部102を呼び出し、コンパイ
ル装置から取得したエラー情報を渡す。この時、コンパ
イル装置から取得するエラー情報としては、エラー行番
号、エラー項目、エラー内容等が考えられる。
Further, the judging section 101, as described above,
Determine if there is a compilation error (step 30)
2). If there is no compile error, the error information cannot be acquired. Therefore, after the display unit 105 displays that there is no compile error (step 303), the compile ends. If there is a compile error, the error pattern analysis unit 102 is called and the error information obtained from the compile device is passed. At this time, as the error information acquired from the compiling device, an error line number, an error item, an error content, etc. can be considered.

【0029】エラーパターン分析部102は、エラー内
容の情報により、場合によってはエラー項目が出現する
全ての箇所を検索して、コンパイルエラーのパターンを
分析する(ステップ304)。コンパイルエラーをパタ
ーン化したら、このエラーパターンを修正方法検索部1
03に渡す。修正方法検索部103は、エラーパターン
分析部102から渡されたエラーパターンをキーにして
エラー情報データベース108を検索し、このエラーパ
ターンにふさわしいソースプログラムの修正方法につい
ての情報をエラー情報一時格納領域107に格納する。
この時、修正方法として複数の方法が考えられる場合
は、それら全ての方法を修正方法の候補としてエラー情
報一時格納領域107に格納する(ステップ305)。
The error pattern analysis unit 102 searches all the places where the error item appears depending on the error content information, and analyzes the compile error pattern (step 304). Once the compile error is patterned, this error pattern is corrected by the search method 1
Pass to 03. The correction method search unit 103 searches the error information database 108 using the error pattern passed from the error pattern analysis unit 102 as a key, and obtains information about the correction method of the source program suitable for this error pattern in the error information temporary storage area 107. To store.
At this time, when there are a plurality of possible correction methods, all of them are stored in the error information temporary storage area 107 as correction method candidates (step 305).

【0030】ソースプログラム修正部104は、まず、
コンパイルを行ったソースプログラムを読み込み、その
バックアップを作成する。その後、エラー情報一時格納
領域107に格納された修正方法の中で最もふさわしい
と思われる方法に基づいてソースプログラムを自動修正
し、修正されたソースプログラムを出力する。さらにソ
ースプログラム修正部104は、コンパイル装置に対し
てこのソースプログラムのコンパイルを指示する(ステ
ップ306)。
The source program modification unit 104 first
Load the compiled source program and make a backup of it. After that, the source program is automatically corrected based on the most appropriate correction method stored in the error information temporary storage area 107, and the corrected source program is output. Further, the source program modification unit 104 instructs the compiling device to compile this source program (step 306).

【0031】次に、このようにして修正されたソースプ
ログラムについて再度コンパイルを行う場合について説
明する。
Next, the case where the source program modified in this way is recompiled will be described.

【0032】コンパイル装置は、コンパイルを行った結
果をコンパイルメッセージとして判定部101に渡す。
今は、再度コンパイルを行う場合について考えているの
で、エラー情報一時格納領域107にエラー情報が存在
し、判定部101は、コンパイル対象のソースプログラ
ムが初めてコンパイルされたものであると認識する(ス
テップ301)。
The compiling device passes the result of compiling to the judging section 101 as a compiling message.
Since the case of compiling again is considered now, the error information exists in the error information temporary storage area 107, and the determination unit 101 recognizes that the source program to be compiled is the first compiled program (step 301).

【0033】また、判定部101は、コンパイル対象プ
ログラムを初めてコンパイルした際に検出したコンパイ
ルエラーが解消しているか否かを判定する(ステップ3
07)。解消していないコンパイルエラーが存在する場
合は、そのコンパイルエラーについて他の修正方法がエ
ラー情報一時格納領域107に存在するか否かを判定す
る(ステップ308)。他の修正方法が存在する場合、
判定部101はこの修正方法を選択し、コンパイルエラ
ーが解消していない旨とこの修正方法をソースプログラ
ム修正部104に渡す(ステップ309)。また、他の
修正方法が存在しない場合、表示部105がコンパイル
エラーの解消は不可能である旨を表示した後(ステップ
303)、コンパイルは終了する。
Further, the judging section 101 judges whether or not the compile error detected when compiling the program to be compiled for the first time has been resolved (step 3).
07). If there is a compilation error that has not been resolved, it is determined whether or not another correction method for the compilation error exists in the error information temporary storage area 107 (step 308). If there is another fix,
The determination unit 101 selects this correction method, and passes the fact that the compilation error has not been resolved and this correction method to the source program correction unit 104 (step 309). If there is no other correction method, the display unit 105 displays that the compilation error cannot be resolved (step 303), and then the compilation ends.

【0034】また、今回のコンパイルにおいて初めて解
消したコンパイルエラーについては、エラー情報一時格
納領域107からそのコンパイルエラーについてソース
プログラムに対し実際に施した修正方法を取得し、コン
パイルエラーが解消した旨とこの実際に施した修正方法
をソースプログラム修正部104に渡す(ステップ31
0)。
Regarding the compile error that has been resolved for the first time in this compilation, the correction method actually applied to the source program for the compile error is acquired from the error information temporary storage area 107, and this compile error is resolved. The actually applied correction method is passed to the source program correction unit 104 (step 31).
0).

【0035】ソースプログラム修正部104は、解消し
ていないコンパイルエラーについては、判定部101か
ら渡された修正方法に基づいてソースプログラムの自動
修正を行う(ステップ306)。一方、解消したコンパ
イルエラーについては、判定部101から渡された実際
に施した修正方法を修正方法登録部106に渡す。
The source program correction unit 104 automatically corrects the source program based on the correction method passed from the determination unit 101 for the unresolved compilation error (step 306). On the other hand, for the resolved compile error, the actually applied correction method passed from the determination unit 101 is passed to the correction method registration unit 106.

【0036】修正方法登録部106は、この実際に施し
た修正方法をエラー情報データベース108に登録する
(ステップ311)。
The correction method registration unit 106 registers this actually applied correction method in the error information database 108 (step 311).

【0037】ここで、コンパイルエラーのパターンをど
のように分析するかについて具体例により説明する。
Here, how to analyze the pattern of the compilation error will be described with a concrete example.

【0038】例えば、ある項目についてデータ型が定義
されていないという旨の情報を含むコンパイルメッセー
ジが出力された場合、エラーパターン分析部102はこ
のコンパイルエラーを「データ型未定義」というパター
ンに当てはめる。
For example, when a compile message including information indicating that the data type is not defined for a certain item is output, the error pattern analysis unit 102 applies this compile error to the pattern "data type undefined".

【0039】さらに、その項目が使用されている箇所を
ソースプログラムより全て検索した後、エラー情報デー
タベース108を参照する。エラーパターンが「データ
未定義」の場合は、図2に示すように、関数とそのパラ
メータの属性とを管理するヘッダファイルを参照するこ
とによりデータ型を決定すればよいので、この方法でそ
の項目に最もふさわしいと思われるデータ型を決定す
る。その後、ソースプログラムの言語に応じてデータ型
の定義文を作成し、これをソースプログラムに追加する
ことにより、自動修正を行う。
Further, after all the places where the item is used are searched from the source program, the error information database 108 is referred to. When the error pattern is "data undefined", the data type may be determined by referring to the header file that manages the function and the attribute of the parameter as shown in FIG. Determine the data type that seems most appropriate for. After that, a data type definition statement is created according to the language of the source program, and this is added to the source program to perform automatic correction.

【0040】以上により、本発明の一実施例であるソー
スプログラムの自動修正装置あるいはソースプログラム
の自動修正方法を適用したシステムの処理が終了する。
As described above, the processing of the system to which the apparatus for automatically correcting a source program or the method for automatically correcting a source program according to the embodiment of the present invention is applied is completed.

【0041】本発明の一実施例であるソースプログラム
の自動修正装置および自動修正方法によれば、コンパイ
ル結果におけるエラー情報を登録したエラー情報データ
ベースを参照してソースプログラムの自動修正を行うこ
とにより、ソースプログラムのコンパイルにかかる工数
を削減することができるという効果を有している。
According to the source program automatic correction apparatus and the automatic correction method of the embodiment of the present invention, the source program is automatically corrected by referring to the error information database in which the error information in the compilation result is registered. This has the effect of reducing the number of steps required to compile the source program.

【0042】また、コンパイル結果におけるエラー情報
を登録したエラー情報データベースを参照して、同様の
コンパイルエラーが存在する場合にはソースプログラム
に対して同様の修正を行うことにより、ソースプログラ
ムのコンパイル結果に繰り返し現れる同様のコンパイル
エラーについて、画一的な修正を行うことができるとい
う効果を有している。
Further, by referring to the error information database in which the error information in the compile result is registered, if there is a similar compile error, the same correction is made to the source program to obtain the compile result of the source program. This has the effect that uniform corrections can be made for similar compilation errors that appear repeatedly.

【0043】[0043]

【発明の効果】以上説明したように、本発明のソースプ
ログラムの自動修正装置および自動修正方法は、ソース
プログラムのコンパイルにかかる工数を削減することが
できるという効果を有している。
As described above, the automatic source program correcting apparatus and method of the present invention have the effect of reducing the number of steps required for compiling a source program.

【0044】また、ソースプログラムのコンパイル結果
に繰り返し現れる同様のコンパイルエラーについて、画
一的な修正を行うことができるという効果を有してい
る。
Further, there is an effect that uniform compilation can be performed for the same compilation error that appears repeatedly in the compilation result of the source program.

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

【図1】図1は本発明の一実施例であるソースプログラ
ムの自動修正装置あるいはソースプログラムの自動修正
方法を適用したシステムの構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of a system to which an automatic source program correcting apparatus or an automatic source program correcting method according to an embodiment of the present invention is applied.

【図2】図2は本発明の一実施例におけるエラー情報デ
ータベース108の内容を具体例によって示す図であ
る。
FIG. 2 is a diagram showing the content of an error information database 108 in a specific example according to an embodiment of the present invention.

【図3】図3は本発明の一実施例であるソースプログラ
ムの自動修正装置あるいはソースプログラムの自動修正
方法を適用したシステムの処理を示す流れ図である。
FIG. 3 is a flow chart showing a process of a system to which an automatic source program correcting apparatus or an automatic source program correcting method according to an embodiment of the present invention is applied.

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

101 判定部 102 エラーパターン分析部 103 修正方法検索部 104 ソースプログラム修正部 105 表示部 106 修正方法登録部 107 エラー情報一時格納領域 108 エラー情報データベース 101 determination unit 102 error pattern analysis unit 103 correction method search unit 104 source program correction unit 105 display unit 106 correction method registration unit 107 error information temporary storage area 108 error information database

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル装置が出力したコンパイルメッセージにおい
てコンパイルエラーを検出した場合には、該コンパイル
エラーのエラーパターンに基づいて前記エラー情報デー
タベースを検索することにより該コンパイルエラーを解
消すると予測される修正方法を取得し、該修正方法に基
づいて該ソースプログラムの自動修正を行うとともに、
前記コンパイル装置に対してさらなるコンパイルを指示
するソースプログラム修正部とを含むことを特徴とする
ソースプログラムの自動修正装置。
1. An error information database for storing an error pattern of a compile error and a method for correcting a source program predicted corresponding to the error pattern, and when a compile error is detected in a compile message output from a compile device, Acquiring a correction method predicted to eliminate the compilation error by searching the error information database based on the error pattern of the compilation error, and automatically correcting the source program based on the correction method,
An automatic source program modifying device, comprising: a source program modifying unit for instructing the compiling device to perform further compilation.
【請求項2】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル対象のソースプログラムが初めてコンパイル
されたものであるか否かを判定するとともに、コンパイ
ル装置が出力したコンパイルメッセージを受け取ってコ
ンパイルエラーの有無を判定し、コンパイルエラーが存
在する場合にはそのエラー情報を取得する判定部とを含
み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在すると判定し
た場合には、 前記コンパイル装置が出力したコンパイルメッセージに
基づいて該コンパイルエラーをパターン化するエラーパ
ターン分析部と、 前記エラーパターン分析部がパターン化したエラーパタ
ーンに対応する該コンパイルエラーを解消すると予測さ
れる修正方法を、前記エラー情報データベースより検索
する修正方法検索部と、 前記修正方法検索部が検索して得た該コンパイルエラー
を解消すると予測される修正方法に基づいて該ソースプ
ログラムの自動修正を行うとともに、前記コンパイル装
置に対してさらなるコンパイルを指示するソースプログ
ラム修正部とを含むことを特徴とするソースプログラム
の自動修正装置。
2. An error information database that stores an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern, and determines whether or not the source program to be compiled is the first compiled one. In addition, the compiling device receives a compile message output to determine the presence or absence of a compile error, and if there is a compile error, a determining unit for acquiring the error information, the determining unit is the first time the source program. When it is determined that the compile error has been compiled and there is a compile error, the error pattern analysis unit that patterns the compile error based on the compile message output by the compile device, and the error pattern analysis unit performs patterning Error A correction method search unit that searches the error information database for a correction method that is predicted to eliminate the compile error corresponding to a turn, and that the compile error that is obtained by the correction method search unit is predicted to be eliminated An automatic source program correcting device comprising: a source program correcting unit for automatically correcting the source program based on a correcting method and for instructing the compiling device to further compile.
【請求項3】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル対象のソースプログラムが初めてコンパイル
されたものであるか否かを判定するとともに、コンパイ
ル装置が出力したコンパイルメッセージを受け取ってコ
ンパイルエラーの有無を判定し、コンパイルエラーが存
在する場合にはそのエラー情報を取得する判定部と、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在しないと判定
した場合には、コンパイルエラーが存在しない旨の表示
を行う表示部とを含むことを特徴とするソースプログラ
ムの自動修正装置。
3. An error information database that stores an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern, and determines whether or not the source program to be compiled is the first compiled one. In addition, the compile device receives a compile message output to determine the presence or absence of a compile error, and if there is a compile error, a determining unit that acquires the error information, and the determining unit is configured to compile the source program for the first time. And a display unit for displaying a message indicating that there is no compilation error when it is determined that there is no compilation error.
【請求項4】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル装置が出力したコンパイルメッセージにおい
てコンパイルエラーを検出した場合には、該コンパイル
エラーのエラーパターンに基づいて前記エラー情報デー
タベースを検索することにより取得した該コンパイルエ
ラーを解消すると予測される修正方法のうち該ソースプ
ログラムに対して未適用のものを選択し、該修正方法に
基づいて該ソースプログラムの自動修正を行うととも
に、前記コンパイル装置に対してさらなるコンパイルを
指示するソースプログラム修正部とを含むことを特徴と
するソースプログラムの自動修正装置。
4. An error information database storing an error pattern of a compile error and a method of correcting a source program predicted corresponding to the erroneous pattern, and when a compile error is detected in a compile message output by a compile device, Among the correction methods predicted to eliminate the compilation error obtained by searching the error information database based on the error pattern of the compilation error, a correction method not yet applied to the source program is selected, and the correction method is selected. An automatic source program correcting device, comprising: a source program correcting unit which automatically corrects the source program based on the source program and which instructs the compiling device to further compile.
【請求項5】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル対象のソースプログラムが初めてコンパイル
されたものであるか否かを判定するとともに、コンパイ
ル装置が出力したコンパイルメッセージを受け取ってコ
ンパイルエラーの有無を判定し、コンパイルエラーが存
在する場合にはそのエラー情報を取得する判定部と、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ該コン
パイルエラーを解消すると予測される他の修正方法が存
在すると判定した場合には、該修正方法に基づいて該ソ
ースプログラムの自動修正を行うとともに、前記コンパ
イル装置に対してさらなるコンパイルを指示するソース
プログラム修正部と、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ該コン
パイルエラーを解消すると予測される他の修正方法が存
在しないと判定した場合には、コンパイルエラーの解消
が不可能である旨の表示を行う表示部とを含むことを特
徴とするソースプログラムの自動修正装置。
5. An error information database that stores an error pattern of a compile error and a correction method of a source program predicted corresponding to the error pattern, and determines whether or not the source program to be compiled is the first compiled one. In addition, the compile device receives a compile message output to determine the presence or absence of a compile error, and if there is a compile error, a determining unit that acquires the error information, and the determining unit is configured to compile the source program for the first time. If it is determined that the compile error detected during the first compilation is not resolved, and that there is another modification method that is predicted to resolve the compilation error, it is determined based on the modification method. And automatically correct the source program At the same time, the source program modifying unit for instructing the compiling device to further compile, and the judging unit not compiling the source program for the first time, and compiling error detected at the first compiling time has not been resolved. When it is determined that there is no other correction method that is predicted to eliminate the compilation error, a display unit that displays that the compilation error cannot be eliminated is included. Automatic source program correction device.
【請求項6】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 該ソースプログラムが初めてコンパイルされたものでは
なく初めてのコンパイル時に検出されたコンパイルエラ
ーが解消している場合には、該ソースプログラムに対し
て実際に施した修正方法を前記エラー情報データベース
に登録する修正方法登録部とを含むことを特徴とするソ
ースプログラムの自動修正装置。
6. An error information database storing an error pattern of a compilation error and a method of correcting a source program predicted corresponding thereto, and the source program was detected not at the first compilation but at the first compilation. An automatic correction device for a source program, comprising: a correction method registration unit for registering a correction method actually applied to the source program in the error information database when the compile error is resolved.
【請求項7】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル対象のソースプログラムが初めてコンパイル
されたものであるか否かを判定するとともに、コンパイ
ル装置が出力したコンパイルメッセージを受け取ってコ
ンパイルエラーの有無を判定し、コンパイルエラーが存
在する場合にはそのエラー情報を取得する判定部と、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していると判定した場合には、該
ソースプログラムに対して実際に施した修正方法を前記
エラー情報データベースに登録する修正方法登録部とを
含むことを特徴とするソースプログラムの自動修正装
置。
7. An error information database that stores an error pattern of a compile error and a correction method of a source program predicted corresponding to the error pattern, and determines whether or not the source program to be compiled is the first compiled one. In addition, the compile device receives a compile message output to determine the presence or absence of a compile error, and if there is a compile error, a determining unit that acquires the error information, and the determining unit is configured to compile the source program for the first time. If it is determined that the compile error detected at the first compile is not resolved, the correction method registration unit that registers the correction method actually applied to the source program in the error information database. Source program characterized by including Automatic correction device for a continuously.
【請求項8】 コンパイルエラーのエラーパターンとそ
れに対応して予測されるソースプログラムの修正方法と
を格納するエラー情報データベースと、 コンパイル対象のソースプログラムが初めてコンパイル
されたものであるか否かを判定するとともに、コンパイ
ル装置が出力したコンパイルメッセージを受け取ってコ
ンパイルエラーの有無を判定し、コンパイルエラーが存
在する場合にはそのエラー情報を取得する判定部とを含
み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在すると判定し
た場合には、 前記コンパイル装置が出力したコンパイルメッセージに
基づいて該コンパイルエラーをパターン化するエラーパ
ターン分析部と、 前記エラーパターン分析部がパターン化したエラーパタ
ーンに対応する該コンパイルエラーを解消すると予測さ
れる修正方法を、前記エラー情報データベースより検索
する修正方法検索部と、 前記修正方法検索部が検索して得た該コンパイルエラー
を解消すると予測される修正方法に基づいて該ソースプ
ログラムの自動修正を行うとともに、前記コンパイル装
置に対してさらなるコンパイルを指示するソースプログ
ラム修正部とを含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在しないと判定
した場合には、 コンパイルエラーが存在しない旨の表示を行う表示部を
含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ該コン
パイルエラーを解消すると予測される他の修正方法が存
在すると判定した場合には、 該修正方法に基づいて該ソースプログラムの自動修正を
行うとともに、前記コンパイル装置に対してさらなるコ
ンパイルを指示する前記ソースプログラム修正部を含
み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ該コン
パイルエラーを解消すると予測される他の修正方法が存
在しないと判定した場合には、 コンパイルエラーの解消が不可能である旨の表示を行う
前記表示部を含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していると判定した場合には、 該ソースプログラムに対して実際に施した修正方法を前
記エラー情報データベースに登録する修正方法登録部を
含むことを特徴とするソースプログラムの自動修正装
置。
8. An error information database storing an error pattern of a compile error and a method of correcting the source program predicted corresponding to the error pattern, and determining whether or not the source program to be compiled is the first compiled one. In addition, the compiling device receives a compile message output to determine the presence or absence of a compile error, and if there is a compile error, a determining unit for acquiring the error information, the determining unit is the first time the source program. When it is determined that the compile error has been compiled and there is a compile error, the error pattern analysis unit that patterns the compile error based on the compile message output by the compile device, and the error pattern analysis unit performs patterning Error A correction method search unit that searches the error information database for a correction method that is predicted to eliminate the compile error corresponding to a turn, and that the compile error that is obtained by the correction method search unit is predicted to be eliminated A source program modifying unit that performs an automatic modification of the source program based on a modifying method, and that instructs the compiling device to perform further compilation, wherein the determining unit is the first compiled source program, and When it is determined that there is no compile error, the display unit that displays that there is no compile error is included, and the determination unit does not compile the source program for the first time, but the compile detected at the first compile time. It is determined that the error has not been resolved, and When it is determined that there is another modification method that is predicted to eliminate the pile error, the source program is automatically modified based on the modification method, and the source for instructing further compilation to the compiling device. Including a program correction unit, the determination unit determines that the source program is not the one that was compiled for the first time and the compilation error detected at the first compilation has not been resolved, and is predicted to eliminate the compilation error. In the case where it is determined that the correction method of No. does not exist, the display unit that displays that the compile error cannot be resolved is included, and the determination unit determines that the source program is not the first-compiled version but the first-time compilation. Judged that the compile error detected at compile time has been resolved Expediently, automatic correction device of the source program, which comprises a correction method registration unit that registers actually subjected to modified method with respect to the source program to the error information database.
【請求項9】 コンパイル装置が出力したコンパイルメ
ッセージにおけるエラー情報、ソースプログラムにおい
てコンパイルエラーを解消すると予測される修正方法お
よび実際に施した修正方法を一時的に格納するエラー情
報一時格納領域と、 コンパイルエラーのエラーパターンとそれに対応して予
測されるソースプログラムの修正方法とを格納するエラ
ー情報データベースと、 前記エラー情報一時格納領域を参照してコンパイル対象
のソースプログラムが初めてコンパイルされたものであ
るか否かを判定するとともに、前記コンパイル装置が出
力したコンパイルメッセージを受け取ってコンパイルエ
ラーの有無を判定し、コンパイルエラーが存在する場合
にはそのエラー情報を前記エラー情報一時格納領域に格
納するとともに、該ソースプログラムにおいてコンパイ
ルエラーを解消すると予測される修正方法と実際に施し
た修正方法とを前記エラー情報一時格納領域より取得す
る判定部とを含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在すると判定し
た場合には、 前記判定部が受け取ったコンパイルメッセージに基づい
て該コンパイルエラーをパターン化するエラーパターン
分析部と、 前記エラーパターン分析部がパターン化したエラーパタ
ーンに対応する該コンパイルエラーを解消すると予測さ
れる修正方法を、前記エラー情報データベースより検索
して前記エラー情報一時格納領域に格納する修正方法検
索部と、 前記エラー情報一時格納領域に格納された該コンパイル
エラーを解消すると予測される修正方法に基づいて該ソ
ースプログラムの自動修正を行うとともに、前記コンパ
イル装置に対してさらなるコンパイルを指示するソース
プログラム修正部とを含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたもので、かつコンパイルエラーが存在しないと判定
した場合には、 コンパイルエラーが存在しない旨の表示を行う表示部を
含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ前記エ
ラー情報一時格納領域より該コンパイルエラーを解消す
ると予測される他の修正方法を取得した場合には、 該修正方法に基づいて該ソースプログラムの自動修正を
行うとともに、前記コンパイル装置に対してさらなるコ
ンパイルを指示する前記ソースプログラム修正部を含
み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していないと判定し、かつ前記エ
ラー情報一時格納領域より該コンパイルエラーを解消す
ると予測される他の修正方法を取得できなかった場合に
は、 コンパイルエラーの解消が不可能である旨の表示を行う
前記表示部を含み、 前記判定部が該ソースプログラムは初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消していると判定した場合には、 前記判定部から渡された実際に施した修正方法を受け渡
す前記ソースプログラム修正部と、 前記ソースプログラム修正部から渡された実際に施した
修正方法を前記エラー情報データベースに登録する修正
方法登録部とを含むことを特徴とするソースプログラム
の自動修正装置。
9. An error information temporary storage area for temporarily storing error information in a compile message output by a compiling device, a correction method predicted to eliminate a compilation error in a source program, and an actually applied correction method, and An error information database that stores an error error pattern and a corresponding source program correction method, and whether the source program to be compiled was first compiled with reference to the error information temporary storage area. In addition to determining whether or not, the compile message output by the compile device is received to determine the presence or absence of a compile error. If there is a compile error, the error information is stored in the error information temporary storage area, and Source The program includes a determination unit that acquires from the error information temporary storage area a correction method that is predicted to eliminate a compilation error and a correction method that is actually applied, and the determination unit determines that the source program was compiled for the first time. , And when it is determined that a compile error exists, an error pattern analysis unit that patterns the compile error based on the compile message received by the determination unit, and an error pattern that the error pattern analysis unit patterns A correction method search unit that searches the error information database for a correction method expected to eliminate the compilation error, and stores the correction method in the error information temporary storage area; and the compilation error stored in the error information temporary storage area. Based on the correction method expected to eliminate The source program is automatically compiled, and a source program modifying unit for instructing the compiling device to further compile is included. If it is determined that the source program is not compiled for the first time, the determination unit includes a display unit that displays that there is no compilation error. If it is determined that it is not, and if another correction method that is predicted to eliminate the compilation error is acquired from the error information temporary storage area, the source program is automatically corrected based on the correction method, and Directs further compilation to the compiling device The source program modifying unit, the determining unit determines that the source program is not the first-compiled version and that the compilation error detected at the first compilation is not resolved, and the error information temporary storage area When the other correction method expected to eliminate the compile error cannot be acquired, the display unit includes a display indicating that the compile error cannot be eliminated, and the determination unit determines that the source program is When it is determined that the compilation error detected at the first compilation, not the first compilation, has been resolved, the source program modification unit that transfers the actual correction method passed from the determination unit, and The error information indicating the correction method actually applied from the source program correction section A source program automatic correction device, comprising: a correction method registration unit for registering in a database.
【請求項10】 コンパイルエラーのエラーパターンと
それに対応して予測されるソースプログラムの修正方法
とを記憶し、コンパイル装置が出力したコンパイルメッ
セージにおいてコンパイルエラーを検出した場合には、
該コンパイルエラーのエラーパターンに基づいて該コン
パイルエラーを解消すると予測される修正方法を決定
し、該修正方法に基づいて該ソースプログラムの自動修
正を行うとともに、前記コンパイル装置に対してさらな
るコンパイルを指示することを特徴とするソースプログ
ラムの自動修正方法。
10. An error pattern of a compile error and a method of correcting a source program predicted corresponding thereto are stored, and when a compile error is detected in a compile message output by a compile device,
A correction method predicted to eliminate the compilation error is determined based on the error pattern of the compilation error, the source program is automatically corrected based on the correction method, and further compilation is instructed to the compiling device. A method for automatically correcting a source program, characterized by:
【請求項11】 コンパイルエラーのエラーパターンと
それに対応して予測されるソースプログラムの修正方法
とを記憶し、該ソースプログラムが初めてコンパイルさ
れたもので、かつコンパイルエラーが存在しない場合に
は、コンパイルエラーが存在しない旨の表示を行うこと
を特徴とするソースプログラムの自動修正方法。
11. Compiling an error pattern of a compile error and a method of correcting a source program predicted corresponding thereto, and when the source program was compiled for the first time and there is no compile error, the compilation is performed. An automatic correction method for a source program, characterized by displaying that there is no error.
【請求項12】 コンパイルエラーのエラーパターンと
それに対応して予測されるソースプログラムの修正方法
とを記憶し、コンパイル装置が出力したコンパイルメッ
セージにおいてコンパイルエラーを検出した場合には、
該コンパイルエラーのエラーパターンに基づいて決定し
た該コンパイルエラーを解消すると予測される修正方法
のうち該ソースプログラムに対して未適用のものを選択
し、該修正方法に基づいて該ソースプログラムの自動修
正を行うとともに、前記コンパイル装置に対してさらな
るコンパイルを指示することを特徴とするソースプログ
ラムの自動修正方法。
12. An error pattern of a compile error and a correction method of a source program predicted corresponding thereto are stored, and when a compile error is detected in a compile message output by a compile device,
Of the correction methods that are predicted to eliminate the compilation error determined based on the error pattern of the compilation error, a correction method that has not been applied to the source program is selected, and the source program is automatically corrected based on the correction method. And a method of instructing the compiling device to further compile the source program.
【請求項13】 コンパイルエラーのエラーパターンと
それに対応して予測されるソースプログラムの修正方法
とを記憶し、該ソースプログラムが初めてコンパイルさ
れたものではなく初めてのコンパイル時に検出されたコ
ンパイルエラーが解消している場合には、該ソースプロ
グラムに対して実際に施した修正方法をさらに記憶する
ことを特徴とするソースプログラムの自動修正方法。
13. An error pattern of a compile error and a method of correcting a source program predicted corresponding to the error pattern are stored, and a compile error detected at the first compile but not the first compile of the source program is resolved. If so, the method for automatically correcting the source program further stores the correction method actually applied to the source program.
【請求項14】 コンパイルエラーのエラーパターンと
それに対応して予測されるソースプログラムの修正方法
とを記憶し、 該ソースプログラムが初めてコンパイルされたもので、
かつコンパイルエラーが存在する場合には、コンパイル
装置が出力したコンパイルメッセージに基づいて該コン
パイルエラーをパターン化し、その後該エラーパターン
に対応する該コンパイルエラーを解消すると予測される
修正方法を決定し、さらに該修正方法に基づいて該ソー
スプログラムの自動修正を行うとともに、前記コンパイ
ル装置に対してさらなるコンパイルを指示し、 該ソースプログラムが初めてコンパイルされたもので、
かつコンパイルエラーが存在しない場合には、コンパイ
ルエラーが存在しない旨の表示を行い、 該ソースプログラムが初めてコンパイルされたものでは
なく初めてのコンパイル時に検出されたコンパイルエラ
ーが解消しておらず、かつ該コンパイルエラーを解消す
ると予測される他の修正方法が存在する場合には、該修
正方法に基づいて該ソースプログラムの自動修正を行う
とともに、前記コンパイル装置に対してさらなるコンパ
イルを指示し、 該ソースプログラムが初めてコンパイルされたものでは
なく初めてのコンパイル時に検出されたコンパイルエラ
ーが解消しておらず、かつ該コンパイルエラーを解消す
ると予測される他の修正方法が存在しない場合には、コ
ンパイルエラーの解消が不可能である旨の表示を行い、 該ソースプログラムが初めてコンパイルされたものでは
なく初めてのコンパイル時に検出されたコンパイルエラ
ーが解消している場合には、該ソースプログラムに対し
て実際に施した修正方法をさらに記憶することを特徴と
するソースプログラムの自動修正方法。
14. An error pattern of a compilation error and a correction method of a source program predicted corresponding thereto are stored, and the source program is compiled for the first time.
And if there is a compile error, the compile error is patterned based on the compile message output by the compile device, and then a correction method that is predicted to eliminate the compile error corresponding to the error pattern is determined. The source program is automatically compiled based on the modification method, and further compilation is instructed to the compiling device, and the source program is compiled for the first time.
If no compile error exists, a message indicating that no compile error exists is displayed, and the compile error detected during the first compile is not resolved and the source program is not the first compile error. If there is another modification method that is predicted to eliminate the compilation error, the source program is automatically modified based on the modification method, and further compilation is instructed to the compiling device. Is not the one that was compiled for the first time, but the compilation error detected during the first compilation has not been resolved, and there is no other fix that is expected to resolve the compilation error, then the compilation error is resolved. A message indicating that it is impossible is displayed, and the source program The source program is characterized by further storing the correction method actually applied to the source program when the compilation error detected at the first compilation is not the first time the program was compiled. Automatic correction method.
JP7342505A 1995-12-28 1995-12-28 Device and method for automatically correcting source program Pending JPH09185500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7342505A JPH09185500A (en) 1995-12-28 1995-12-28 Device and method for automatically correcting source program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7342505A JPH09185500A (en) 1995-12-28 1995-12-28 Device and method for automatically correcting source program

Publications (1)

Publication Number Publication Date
JPH09185500A true JPH09185500A (en) 1997-07-15

Family

ID=18354271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7342505A Pending JPH09185500A (en) 1995-12-28 1995-12-28 Device and method for automatically correcting source program

Country Status (1)

Country Link
JP (1) JPH09185500A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185536A (en) * 1997-09-12 1999-03-30 Nec Corp Device and method for automatically correcting error of source program
JP2008250914A (en) * 2007-03-30 2008-10-16 Canon Software Inc Program correcting device, method and program
JP2015026365A (en) * 2013-07-26 2015-02-05 富士通株式会社 Method and apparatus for porting source code
JP2018026135A (en) * 2016-08-11 2018-02-15 タタ コンサルタンシー サービシズ リミテッドTATA Consultancy Services Limited System and method for cause point analysis for effective handling of static analysis alarms
JP2021002326A (en) * 2019-06-20 2021-01-07 富士通株式会社 Refinement of repair patterns for static analysis violations in software programs
CN112631599A (en) * 2020-12-09 2021-04-09 潍柴动力股份有限公司 Compiling method, device and storage medium
KR20220080311A (en) * 2020-12-07 2022-06-14 한국전자기술연구원 Method for automatically fixing program errors and system supporting the same
CN117558307A (en) * 2024-01-11 2024-02-13 联和存储科技(江苏)有限公司 Threshold voltage adjusting method, device and equipment of memory chip and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185536A (en) * 1997-09-12 1999-03-30 Nec Corp Device and method for automatically correcting error of source program
JP2008250914A (en) * 2007-03-30 2008-10-16 Canon Software Inc Program correcting device, method and program
JP2015026365A (en) * 2013-07-26 2015-02-05 富士通株式会社 Method and apparatus for porting source code
JP2018026135A (en) * 2016-08-11 2018-02-15 タタ コンサルタンシー サービシズ リミテッドTATA Consultancy Services Limited System and method for cause point analysis for effective handling of static analysis alarms
JP2021002326A (en) * 2019-06-20 2021-01-07 富士通株式会社 Refinement of repair patterns for static analysis violations in software programs
KR20220080311A (en) * 2020-12-07 2022-06-14 한국전자기술연구원 Method for automatically fixing program errors and system supporting the same
US11579962B2 (en) 2020-12-07 2023-02-14 Korea Electronics Technology Institute Computing system and method for automated program error repair
CN112631599A (en) * 2020-12-09 2021-04-09 潍柴动力股份有限公司 Compiling method, device and storage medium
CN112631599B (en) * 2020-12-09 2024-03-19 潍柴动力股份有限公司 Compiling method, compiling device and storage medium
CN117558307A (en) * 2024-01-11 2024-02-13 联和存储科技(江苏)有限公司 Threshold voltage adjusting method, device and equipment of memory chip and storage medium
CN117558307B (en) * 2024-01-11 2024-03-15 联和存储科技(江苏)有限公司 Threshold voltage adjusting method, device and equipment of memory chip and storage medium

Similar Documents

Publication Publication Date Title
US20040049768A1 (en) Method and program for compiling processing, and computer-readable medium recoding the program thereof
US20010013043A1 (en) System and method for determining browser package and version compatibility of a web document
CN110716874B (en) Domestic operating system hardware compatibility testing method
JPH09185500A (en) Device and method for automatically correcting source program
JPH11249875A (en) Method for supporting programming and device therefor
CN116483700A (en) API misuse detection and correction method based on feedback mechanism
JPH1185536A (en) Device and method for automatically correcting error of source program
JP2004326337A (en) Code analysis program, code analysis automation program and automated code analysis system
JPH0667871A (en) Automatic program updating system
JPH06290039A (en) Method for changing program
JPH05173844A (en) Coding error correcting system
JPH09101880A (en) Program analyzer
JPH09185527A (en) Operation evaluating method for computer system
JPH11327887A (en) Compiler system with automatic parts converting function and recording medium
JPH0370033A (en) Compiler/editor interlocking system
JP2000181691A (en) Program structure analysis system
JPH0793144A (en) Program analyzer
JPH05341983A (en) Information processing system
JP2000089945A (en) Integrated software development support system
JP2795332B2 (en) Loop processing error detection device
JPH05265740A (en) Program editing method
JPH05158667A (en) Program maintenance assistance device
JPH06332684A (en) Program correction supporting device
JPH0383130A (en) Device for automatizing processing dependent upon time
JP2764782B2 (en) Data structure expansion method for COBOL programs

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990608