JPS63188242A - Production/control system for program error information - Google Patents

Production/control system for program error information

Info

Publication number
JPS63188242A
JPS63188242A JP62020765A JP2076587A JPS63188242A JP S63188242 A JPS63188242 A JP S63188242A JP 62020765 A JP62020765 A JP 62020765A JP 2076587 A JP2076587 A JP 2076587A JP S63188242 A JPS63188242 A JP S63188242A
Authority
JP
Japan
Prior art keywords
error
information
program
translation
management information
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
JP62020765A
Other languages
Japanese (ja)
Inventor
Kazuo Usui
薄井 和夫
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 JP62020765A priority Critical patent/JPS63188242A/en
Publication of JPS63188242A publication Critical patent/JPS63188242A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To realize the display of program error information in terms of the translation results of all compilers by performing the generation, control, retrieval and output of the program error information regardless of the types of compilers. CONSTITUTION:An error control information generating means 5 produces the error control information including the error level information for the program error detected when a source program is translated, an error control information retrieving means 8 retrieves the error control information based on an error retrieving command, an error information extraction/output means 11 extracts and outputs the error information including an error message based on the retrieved error control information are provided. In such a constitution, the error information is produced, controlled retrieved and displayed regardless of the types of compilers.

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、TSSなどの情報処理システムに適用される
プログラムエラー情報の生成、管理方式%式% 従来の技術 情報処理システムでは、原始プログラムの翻訳時に文法
違反や属性の不一致などのプログラムエラーが検出され
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for generating and managing program error information applied to information processing systems such as TSS. Program errors such as grammar violations and attribute mismatches are detected during translation.

従来、この翻訳時に検出されたプログラムエラー情報を
管理し検索コマンドに応じてTSS端末などに表示する
方法は、原始プログラムを翻訳するコンパイラの種類に
よって異なっており、操作者はコンパイラごとに異なる
翻訳エラーメツセージの形式を意識しながらエラー情報
の検索を行っていた。
Conventionally, the method of managing program error information detected during translation and displaying it on a TSS terminal, etc. in response to a search command differs depending on the type of compiler that is translating the source program, and the operator has to check the translation errors that differ depending on the compiler. I searched for error information while keeping in mind the format of the message.

発明が解決しようとする問題点 上述した従来のプログラムエラー情報の生成、管理方式
は原始プログラムを翻訳するコンパイラの種類ごとに異
なり、コンパイラにより異なるエラーメツセージの形式
を意識したものとなっている。このため、エラー情報の
表示対象となるプログラム言語が限定され、また、新し
いプログラム言語に対する対応が困難であるなどの問題
がある。
Problems to be Solved by the Invention The conventional method for generating and managing program error information described above differs depending on the type of compiler that translates the source program, and takes into account the format of error messages that differ depending on the compiler. For this reason, there are problems such as the programming languages in which error information can be displayed are limited, and it is difficult to support new programming languages.

問題点を解決するための手段 本発明に係わるプログラムエラー情報の生成、管理方式
は、原始プログラムの翻訳時に検出されたプログラムエ
ラーについてそのエラーレベル情報を含むエラー管理情
報を生成するエラー管理情報生成手段と、エラー検索指
令に基づきエラー管理情報を検索するエラー管理情報検
索手段と、検索されたエラー管理情報に基づきエラーメ
ツセージを含むエラー情報を抽出し出力するエラー情報
抽出・出力手段とを備え、コンパイラの種類によらない
でエラー情報の生成、管理、検索・表示を行うように構
成されている。
Means for Solving Problems The program error information generation and management method according to the present invention includes an error management information generation means for generating error management information including error level information for program errors detected during translation of a source program. , an error management information retrieval means for retrieving error management information based on an error retrieval instruction, and an error information extraction/output means for extracting and outputting error information including error messages based on the retrieved error management information, and a compiler. It is configured to generate, manage, search, and display error information regardless of the type of error.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

実施例 第1図は、本発明の一実施例に係わるプログラムエラー
情報の生成、管理方式を適用するTSS情報処理システ
ムのうち関連部分の構成を示すブロック図である。
Embodiment FIG. 1 is a block diagram showing the configuration of relevant parts of a TSS information processing system to which a method for generating and managing program error information according to an embodiment of the present invention is applied.

第1図中、1は原始プログラム翻訳部、2は原始プログ
ラム・ファイル、3は出力部、4は翻訳結果ファイル、
5はエラー管理情報生成部、6はTSS端末装置、7は
コマンド解析部、8はエラー管理情報検索部、9は入力
部、10は翻訳結果格納領域、11はエラー情報抽出部
、12はエラー情報表示部、13はTSSシステムの端
末対応部、14はホストコンピュータである。
In Figure 1, 1 is the source program translation section, 2 is the source program file, 3 is the output section, 4 is the translation result file,
5 is an error management information generation section, 6 is a TSS terminal device, 7 is a command analysis section, 8 is an error management information search section, 9 is an input section, 10 is a translation result storage area, 11 is an error information extraction section, 12 is an error 13 is an information display section, a terminal corresponding section of the TSS system, and 14 is a host computer.

原始プログラムを翻訳するジョブの投入によって、原始
プログラム翻訳部1が起動される。起動された原始プロ
グラム翻訳部1は、原始プログラム・ファイル2から原
始プログラムを読込みながら翻訳し、その翻訳結果を出
力部3を用いて翻訳結果ファイル4に格納してゆく。原
始プログラム翻訳部lは、上記翻訳に際し文法の誤りや
、数値の属性の@鮎などのプログラムエラーを検出する
と、翻訳を中断してエラー管理情報生成部5を起動する
。原始プログラム闘訳部1は、起動したエラー管理情報
生成部5に、エラー存在箇所の原始プログラムのソース
行とコード、エラー箇所を示すレコード、エラーメツセ
ージ・レコードなどを通知する。
The source program translation unit 1 is activated by submitting a job for translating a source program. The activated source program translation section 1 translates the source program while reading it from the source program file 2, and stores the translation result in the translation result file 4 using the output section 3. When the source program translation section 1 detects a program error such as a grammar error or a numeric attribute @Ayu during the translation, it interrupts the translation and activates the error management information generation section 5. The source program translation unit 1 notifies the activated error management information generation unit 5 of the source line and code of the source program where the error exists, a record indicating the error location, an error message record, etc.

エラー管理情報生成部5は、原始プログラム翻訳部1か
ら通知された情報に基づき、エラーの重大性を段階的に
示すエラーレベル、重複エラーのそれぞれについて出力
されるエラーメツセージの個数、エラーメツセージの出
力行数、エラー管理情報レコードに対する出力位置など
各種の内部制御情報を含むエラー管理情報に関するレコ
ードを生成し、このエラー管理情報レコード、エラーに
係わる原始プログラムのソースレコード、エラー箇所を
示すレコード、エラーメツセージ・レコニドの順に出力
部3を用いて翻訳結果ファイル4に格納する。
Based on the information notified from the source program translation unit 1, the error management information generation unit 5 generates an error level that indicates the severity of the error in stages, the number of error messages to be output for each duplicate error, and the output of the error message. A record related to error management information including various internal control information such as the number of lines and output position for the error management information record is generated, and this error management information record, a source record of the source program related to the error, a record indicating the error location, and an error message are generated. - Store in the translation result file 4 using the output unit 3 in the order of records.

エラー管理情報生成部5は、エラー箇所について上述の
エラー管理情報の生成と格納が終了すると、その終了を
原始プログラム翻訳部1に通知する。これにより、原始
プログラム翻訳部lは、エラー検出によって中断してい
た原始プログラムの翻訳処理を再開する。
When the error management information generation section 5 finishes generating and storing the above-described error management information for the error location, it notifies the source program translation section 1 of the completion. As a result, the source program translation unit 1 resumes the source program translation process that was interrupted due to the error detection.

このようにして原始プログラムの翻訳が終了したのち、
TSS端末装置6から、プログラムエラー情報の表示を
要求するコマンドが投入されたものとする。利用者は、
このコマンド中にエラーレベル情報をパラメーターとし
て含ませることにより、ある程度以上重要なエラーのみ
を指定して表示させることができる。このコマンドで起
動されたコマンド解析手段7は、表示対象のプログラム
エラー情報が有するエラーレベルなど、表示コマンドに
含まれるパラメータを解析してその正常性を確認したの
ちエラー管理情報検索部8を起動する。′ 起動されたエラー管理情報検索部8は、翻訳語・果ファ
イル6から入力部9を介して翻訳結果を翻訳結果格納領
域10に読込み、表示コマンドで指定されているエラー
レベルを含むエラー管理情報を検索し、この検索結果を
エラー情報抽出部11に通知する。
After completing the translation of the source program in this way,
Assume that a command requesting display of program error information is input from the TSS terminal device 6. The user is
By including error level information as a parameter in this command, it is possible to specify and display only errors that are more than a certain level of importance. The command analysis means 7 activated by this command analyzes the parameters included in the display command, such as the error level of the program error information to be displayed, confirms its normality, and then activates the error management information search unit 8. . ' The activated error management information retrieval unit 8 reads the translation result from the translated word/result file 6 through the input unit 9 into the translation result storage area 10, and retrieves the error management information including the error level specified by the display command. and notifies the error information extraction unit 11 of the search results.

翻訳エラー情報抽出部11は、通知されたエラー管理情
報に対応するプログラムエラー情報(エラーを含むソー
スコード、ソース行やエラーメッセージなどの情報)を
翻訳結果格納領域10から抽出し、エラー情報表示部1
2に通知する。
The translation error information extraction unit 11 extracts program error information (information such as source code containing errors, source lines, error messages, etc.) corresponding to the notified error management information from the translation result storage area 10, and displays the program error information in the error information display unit. 1
Notify 2.

エラー情報表示部12は、通知されたプログラムエラー
情報をTSS端末装置6に表示する。
The error information display unit 12 displays the notified program error information on the TSS terminal device 6.

発明の効果 以上詳細に説明したように、本発明に係わるプログラム
エラー情報の生成、管理方式は、プログラムエラー情報
の生成、管理、検索・出力をコンパイラの種類とは無関
係に行う構成であるから、全てのコンパイラの翻訳結果
についてプログラムエラー情報の表示が可能となる。
Effects of the Invention As explained in detail above, the program error information generation and management method according to the present invention is configured to generate, manage, search and output program error information regardless of the type of compiler. Program error information can be displayed for all compiler translation results.

また、新たなプログラム言語(コンパイラ)への対応が
不要になる。
Additionally, it becomes unnecessary to support a new programming language (compiler).

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

第1図は、本発明の一実施例に係わるプログラムエラー
情報の生成、管理方式を適用するTSS情報処理システ
ムうち関連部分の構成を示すブロック図である。 1・・・原始プログラム翻訳部、2・・・原始プログラ
ム・ファイル、3・・・出力部、4・・・翻訳結果ファ
イル、5・・・エラー管理情報生成部、6・・・TSS
端末装置、7・・・コマンド解析部、8・・・エラー管
理情報検索部、9・・・入力部、10・・・翻訳結果格
納領域、11・・・エラー情報抽出部、12・・・エラ
ー情報表示部。
FIG. 1 is a block diagram showing the configuration of relevant parts of a TSS information processing system to which a method for generating and managing program error information according to an embodiment of the present invention is applied. DESCRIPTION OF SYMBOLS 1... Source program translation part, 2... Source program file, 3... Output part, 4... Translation result file, 5... Error management information generation part, 6... TSS
Terminal device, 7... Command analysis section, 8... Error management information search section, 9... Input section, 10... Translation result storage area, 11... Error information extraction section, 12... Error information display section.

Claims (1)

【特許請求の範囲】 原始プログラムの翻訳時に検出されたプログラムエラー
についてそのエラーレベル情報を含むエラー管理情報を
生成するエラー管理情報生成手段と、 エラー検索指令に基づき前記エラー管理情報を検索する
エラー管理情報検索手段と、 検索されたエラー管理情報に基づき、エラーメッセージ
を含むエラー情報を抽出し、出力するエラー情報抽出・
出力手段とを備えたことを特徴とするプログラムエラー
情報の生成、管理方式。
[Scope of Claims] Error management information generation means for generating error management information including error level information regarding program errors detected during translation of a source program; and error management for searching the error management information based on an error search command. An information search method and an error information extraction system that extracts and outputs error information including error messages based on the searched error management information.
A method for generating and managing program error information, comprising: an output means.
JP62020765A 1987-01-31 1987-01-31 Production/control system for program error information Pending JPS63188242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62020765A JPS63188242A (en) 1987-01-31 1987-01-31 Production/control system for program error information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62020765A JPS63188242A (en) 1987-01-31 1987-01-31 Production/control system for program error information

Publications (1)

Publication Number Publication Date
JPS63188242A true JPS63188242A (en) 1988-08-03

Family

ID=12036272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62020765A Pending JPS63188242A (en) 1987-01-31 1987-01-31 Production/control system for program error information

Country Status (1)

Country Link
JP (1) JPS63188242A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5673390A (en) * 1992-09-03 1997-09-30 International Business Machines Corporation Method and system for displaying error messages
US6757889B1 (en) 1999-06-09 2004-06-29 Fujitsu Limited Source program checking device and program and method for same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5673390A (en) * 1992-09-03 1997-09-30 International Business Machines Corporation Method and system for displaying error messages
US6757889B1 (en) 1999-06-09 2004-06-29 Fujitsu Limited Source program checking device and program and method for same

Similar Documents

Publication Publication Date Title
JP4007562B2 (en) Programming support method and apparatus
CN109308254B (en) Test method, test device and test equipment
JPH0630066B2 (en) Table type language translation method
CN109471851B (en) Data processing method, device, server and storage medium
CN111090641A (en) Data processing method and device, electronic equipment and storage medium
JP2012178078A (en) Document processor
JPH03111969A (en) Method for supporting plan formation
EP3422181B1 (en) Method and device for generating code assistance information
JPS63188242A (en) Production/control system for program error information
JPS61223923A (en) Information processor
JPH1063492A (en) Software specification generator
JPS5894041A (en) Debug backup device for high-class language
US20240202175A1 (en) Robot control device and robot control system
JP3034264B2 (en) Software component display device
JP3741371B2 (en) Event control apparatus and event control method
JPH09231116A (en) Database language re-issuing device
CN118035210A (en) Data dictionary management method, storage medium, device and product of database
JP2023120824A (en) Document analysis system, document analysis method, and program
JP5596188B2 (en) Program development history management system
CN112463601A (en) UI automatic test method and system
JPH0731594B2 (en) Program information analysis processor
JPH08235177A (en) Information processor
JPH0756923A (en) Japanese sentence generating device capable of eliminating ambiguity
JPS62282364A (en) Character string retrieval system
JPH10283166A (en) Program function analysis support method, device and record medium