JPH02136927A - Language process program - Google Patents

Language process program

Info

Publication number
JPH02136927A
JPH02136927A JP63291304A JP29130488A JPH02136927A JP H02136927 A JPH02136927 A JP H02136927A JP 63291304 A JP63291304 A JP 63291304A JP 29130488 A JP29130488 A JP 29130488A JP H02136927 A JPH02136927 A JP H02136927A
Authority
JP
Japan
Prior art keywords
error
program
processing
specified
designated
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
JP63291304A
Other languages
Japanese (ja)
Inventor
Hiroko Kawachino
川内野 博子
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 JP63291304A priority Critical patent/JPH02136927A/en
Publication of JPH02136927A publication Critical patent/JPH02136927A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the useless executing time by optionally continuing or discontinuing a process when a language process program has a specific error or the error occurring frequency exceeds the designated maximum level. CONSTITUTION:It is checked whether the error occurring frequency exceeds the designated maximum level or not. If so, the control is shifted to a program abnormality end processing part 11. If not, it is checked whether the received error number is equal to the designated one or not. If so, the information showing whether the error number designated the continuation or discontinuation of the process is extracted. When the continuation of the process is designated, an error process part 10 performs the post-process or an error and returns the control to an object program production part 4. While the control is returned to the process 11 when the discontinuation of the process is designated. As a result, the useless executing time is eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は言語処理プログラムに関し、実行時のエラーの
発生状況に従って処理の続行/中断を行なう言語処理プ
ログラムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a language processing program, and more particularly, to a language processing program that continues/interrupts processing according to the occurrence of an error during execution.

〔従来の技術〕[Conventional technology]

従来、言語処理プログラムにおいて実行時にエラーが発
生した場合、言語処理プログラムに対してエラー処理を
指定することができない。したがって、利用者が致命的
なエラーであると判断するエラーが発生し処理を中断し
ない場合でも、実行を中断することができない。
Conventionally, when an error occurs in a language processing program during execution, it is not possible to specify error handling for the language processing program. Therefore, even if an error that the user considers to be a fatal error occurs and processing is not interrupted, execution cannot be interrupted.

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

上述した従来の方式では、利用者が致命的なエラーだと
判断するエラーが発生し処理を中断したい場合でも、言
語処理プログラムに対してエラー処理の指定をすること
ができないために処理を中断することができず、プログ
ラムが轟後まで実行された後、エラーに対する修正を行
わなければならない。したがって、利用者が致命的だと
判断するエラーが発生してからプログラムが終了するま
での実行時間が無駄になる欠点がある。
In the conventional method described above, even if a user wants to interrupt processing due to an error that is determined to be a fatal error, processing is interrupted because it is not possible to specify error handling to the language processing program. Errors must be corrected after the program has run to completion. Therefore, there is a drawback that the execution time from the occurrence of an error that the user considers to be fatal until the program ends is wasted.

また逆に、利用者が致命的ではないのでそのまま処理を
実行して欲しいと判断するエラーが発生した場合でも、
言語処理プログラムに対しエラー処理の指定をすること
ができないために処理を続行することができず、そのエ
ラー発生箇所以降の言語処理の結果を得ることが不可能
になる欠点もある。
Conversely, even if an error occurs that the user determines is not fatal and would like the user to continue with the process,
Since error processing cannot be specified for the language processing program, the processing cannot be continued, and there is also the drawback that it is impossible to obtain the results of language processing after the point where the error occurs.

特に、マクロ処理が組み合わされた場合、利用者のソー
スプログラムによってはエラーの重大度が異なるのに対
し、エラー処理が決められていることによって実行時間
が無駄になったり、オブジェク1−ファイルが得られな
かったりする可能性が高いという欠点がある。
In particular, when macro processing is combined, the severity of errors varies depending on the user's source program, but predetermined error processing may waste execution time or cause object 1-files to be lost. The disadvantage is that there is a high possibility that it will not be possible.

本発明の目的は、エラーか発生した場合に処理の続行/
中断を指定するようにした言語処理プログラムを提供す
ることにある。
The purpose of the present invention is to continue processing in the event of an error.
An object of the present invention is to provide a language processing program that specifies interruption.

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

本発明の言語処理プログラムは、エラー番号とそのエラ
ーが発生したときの処理の続行/中断の指定および発生
可能なエラーの最大個数をファイルあるいはコマンドラ
イン上に記述して入力し、言語処理プログラムの実行途
中にエラーが発生した場合にはエラーの発生件数が指定
された最大個数を越えていないかのチェックおよび指定
されたエラーであるかのチェックを行い、エラーの発生
件数が指定された最大個数を越えあるいは発生したエラ
ーが指定されたエラー番号に一致したことを検出した場
合は指定された通りにそれ以降の処理の続行、/′中断
を行うようにして構成される。
The language processing program of the present invention can be executed by inputting an error number, a designation for continuing/suspending processing when the error occurs, and the maximum number of errors that can occur in a file or command line. If an error occurs during execution, a check is performed to see if the number of errors that have occurred exceeds the specified maximum number, and whether it is the specified error, and the number of errors that have occurred is determined to be the specified maximum number. If it is detected that the error number exceeds the specified error number or that the error that has occurred matches the specified error number, the subsequent processing is continued or interrupted as specified.

〔実施例〕〔Example〕

次に本発明について図面に基つき説明する。 Next, the present invention will be explained based on the drawings.

第1図は本発明の第一の実施例を示すブロック図である
。同図において言語処理プログラム2は、ソースプログ
ラム・ファイル1の入力処理部3と、オブジェクトプロ
グラム生成部4と、オブジェクトプログラム・ファイル
出力部5と、プログラム終了処理部6と、コンソール7
に指示されてエラー指定ファイル8を読込み処理するエ
ラー指定処理部つと、エラー処理部10と、プログラム
異常処理部]]とを有し、言語処理プログラム2が出力
するオブジェクトプログラム・ファイル12を具備する
FIG. 1 is a block diagram showing a first embodiment of the present invention. In the figure, the language processing program 2 includes an input processing section 3 for a source program file 1, an object program generation section 4, an object program file output section 5, a program termination processing section 6, and a console 7.
It has an error specification processing section that reads and processes the error specification file 8 in response to an instruction from the language processing program 2, an error processing section 10, and a program abnormality processing section. .

言語処理プログラム2は、ソースプログラム・ファイル
1の読み込み以前にエラー指定処理部9においてコンソ
ール7またはエラ・−指定ファイル8からエラー発生時
に指定された処理の続行/′中断を竹うエラー番号と処
理の指定9発生可能なエラーの最大数を読み込み、エラ
ー処理部1oにそのデータを渡しておく。次に、ソース
プログラムファイル1を入力処理部3で読み込み、オブ
ジェクトプログラム生成部4ヘデータを渡す。
Before reading the source program file 1, the language processing program 2 uses the error specification processing unit 9 to input an error number and process from the console 7 or the error specification file 8 to continue or interrupt the process specified when an error occurs. Specification 9 The maximum number of errors that can occur is read and the data is passed to the error processing unit 1o. Next, the source program file 1 is read by the input processing section 3 and the data is passed to the object program generation section 4.

オブジェクトプログラム生成部4はソースプログラム・
ファイル1からオブジェクトプログラムを生成し、オブ
ジェクトプログラム・ファイル出力部5およびプログラ
ム終了処理部6は生成されたオブジェクトプログラムを
オブジェクトプログラム・ファイル12に出力する。
The object program generation unit 4 generates a source program.
An object program is generated from the file 1, and the object program file output section 5 and program termination processing section 6 output the generated object program to the object program file 12.

オブジェクトプログラム生成部4の実行途中にエラーが
発生した場合は、エラー処理部1oに発生したエラー番
号の情報を渡す。
If an error occurs during execution of the object program generation section 4, information on the error number that has occurred is passed to the error processing section 1o.

第2図はエラー処理部10の動作を示す流れ図である。FIG. 2 is a flowchart showing the operation of the error processing section 10.

同図においてエラー番号の情報を受は取ったエラー処理
部10では、エラー発生件数の力ランI・アップ13を
行う。
In the same figure, the error processing unit 10 that has received the error number information performs a power run I/up 13 of the number of errors that have occurred.

次に、エラー発生件数が指定された発生可能なエラーの
最大個数を越えていないかの比較14をし、越えている
場りはプログラム異常終了処理部11へ制御を渡す。
Next, a comparison 14 is made to see if the number of errors that have occurred exceeds a specified maximum number of errors that can occur, and if it does, control is passed to the program abnormal termination processing section 11.

越えている場合は、受は取ったエラー番号が指定された
エラー番号であるかの比較15を行う。
If the error number is exceeded, the receiver performs a comparison 15 to see if the received error number is the designated error number.

もし、指定されたエラー番号ならば、前記エラー番号が
処理を続行/中断のいずれを指定されたかの情報の収り
出し16を行う。処理の続行が指定されていれば、エラ
ー処理部10はエラーの後処理17を行ってオブジェク
トプログラム生成部4へ制御を戻す。逆に処理の中断が
指定されていれば、プログラムの異常終了処理11へ制
御を戻す。
If it is the specified error number, information is collected 16 as to whether the error number specifies whether to continue or interrupt the process. If continuation of the process is specified, the error processing unit 10 performs error post-processing 17 and returns control to the object program generation unit 4. Conversely, if the interruption of processing is specified, control is returned to abnormal termination processing 11 of the program.

指定されていないエラー番号ならば、通常の工ラー処理
18を行う。
If the error number is not specified, normal error processing 18 is performed.

上記の処理動作をソースプログラム・ファイル1の読み
込み終了まで繰り返し、最後にプログラム終了処理部6
でプログラムの終了するための後処理を行ってプログラ
ムの実行を終わる。
The above processing operation is repeated until the source program file 1 is read, and finally the program termination processing section 6
Performs post-processing to terminate the program and ends the program execution.

上記のようにしである特定のエラーが発生した場合ある
いはエラー発生件数が指定された最大個数を越えた場合
に、言語処理プログラムの処理の続行/中断を指定する
ことが可能となる。
As described above, when a specific error occurs or when the number of errors that occur exceeds a specified maximum number, it is possible to specify whether to continue or interrupt the processing of the language processing program.

第3図は本発明の第二の実施例を示すブロック図である
。同図において言語処理プログラム2aは、エラー処理
部10aを有し、コンソール7aを介してエラーが発生
した時点で会話形式で処理の続行/中断を指定する。す
なわち実行前にエラー発生時に処理の続行/中断を指定
したいエラーの番号と発生可能なエラーの最大数のみを
指定し、エラーが発生した時点でコンソールから処理の
続行/中断を指定できる。その他の機能は第一の実施例
の同じである。
FIG. 3 is a block diagram showing a second embodiment of the present invention. In the figure, the language processing program 2a includes an error processing section 10a, and specifies continuation/interruption of processing in an interactive manner when an error occurs via the console 7a. That is, before execution, you can specify only the error number and the maximum number of possible errors for which you want to continue or interrupt processing when an error occurs, and then specify whether to continue or interrupt processing from the console when an error occurs. Other functions are the same as in the first embodiment.

言語処理プログラム2aのオブジェクトプログラム生成
部4の実行途中にエラーが発生した場合は、エラー処理
部10aに発生したエラー番号の情報が渡される。
If an error occurs during execution of the object program generation section 4 of the language processing program 2a, information on the error number that has occurred is passed to the error processing section 10a.

第4図はエラー処理部10aの動作を示す流れ図である
。同図においてエラー番号の情報を受は取ったエラー処
理部10aはエラー発生件数のカウントアツプ13を行
う。
FIG. 4 is a flow chart showing the operation of the error processing section 10a. In the same figure, the error processing section 10a that has received the error number information counts up the number of errors (13).

次に、エラー発生件数が指定された発生可能なエラーの
最大個数を越えていないがの比較14をし、越えている
場合はコンソール表示/入力処理19aにおいてコンソ
ールに処理の続行/中断のいずれを行うかの入力待ち状
態を表示し、いずれかの指定の入力を受は付けたならば
、その指定16aに従う。続行が指定なれた場合は、指
定されたエラー番号であるかの比較15に制御を移す。
Next, a comparison 14 is made to see if the number of errors that have occurred has exceeded the specified maximum number of errors that can occur, and if it has, the console displays/input processing 19a tells the console whether to continue or interrupt the process. A state of waiting for an input is displayed, and if the input of any designation is accepted, the designation 16a is followed. If continuation is not specified, control is transferred to comparison 15 to see if it is the specified error number.

中断が指定された場合は、プログラム異常終了処理11
へ制御を戻す。
If suspension is specified, program abnormal termination processing 11
Return control to.

エラー発生件数が最大個数を越えていない場合は、受は
取ったエラー番号が指定されたエラー番号であるかの比
較15を行う。もし、指定されたエラー番号ならは、コ
ンソール表示/入力処理19aにおいてコンソールに処
理の続行/中断のいずれを行うかの入力待ち状態を表示
し、いずれかの指定の入力を受は付けたならば、その指
定16aに従う。続行指定があった場合は、エラー後処
理17を経てオブジェクトプログラム生成部4へ制御を
戻す。逆に中断が指定された場合は、プログラム異常終
了処理11へ制御を戻す。
If the number of errors that have occurred does not exceed the maximum number, the receiver performs a comparison 15 to see if the received error number is the designated error number. If it is the specified error number, in the console display/input processing 19a, the console displays a state waiting for an input on whether to continue or interrupt the process, and if either specified input is accepted. , according to its specification 16a. If there is a continuation designation, control is returned to the object program generation section 4 via error post-processing 17. Conversely, if interruption is specified, control is returned to program abnormal termination processing 11.

指定されていないエラー番号ならば、通常のエラー処理
18を行う。
If the error number is not specified, normal error processing 18 is performed.

上記の処理動作をソースプログラム・ファイル1の読込
み終了まで繰り返し、最後にプログラム終了処理部6で
プログラムの終了するための後処理を行ってプログラム
の実行を終わる。
The above processing operation is repeated until the reading of the source program file 1 is completed, and finally, the program termination processing section 6 performs post-processing to terminate the program, and the execution of the program is terminated.

上記のようにしである特定のエラーが発生した場合ある
いはエラー発生件数が指定された最大個数を越えた場合
に、そのエラーの発生時点で処理の続行/中断を指定す
ることが可能となる。
As described above, when a specific error occurs or when the number of errors that occur exceeds the specified maximum number, it is possible to specify whether to continue or interrupt the process at the point at which the error occurs.

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

以上説明したように本発明は、言語処理プログラムに特
定のエラーが発生した場合あるいはエラー発生件数が指
定された最大個数を越えた場合に任意に処理の続行/中
断を行うことができるので、利用者はすぐ処理を中断し
て以降の無駄な実行時間を節約したり、逆に処理を続行
させて全てのエラーを出し切ってしまうことが可能とな
る効果かある。
As explained above, the present invention allows processing to be continued/interrupted at will when a specific error occurs in a language processing program or when the number of errors exceeds a specified maximum number. This has the effect of allowing the user to immediately interrupt processing to save wasted execution time, or conversely to continue processing and eliminate all errors.

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

第1図は本発明の第一の実施例を示すブロック図、第2
図は第1図のエラー処理部の動作を示す流れ図、第3図
は第二の実施例を示すブロック図、第4図は第3図のエ
ラー処理部の動作を示す流れ図である。 1・・・ソースプログラム・ファイル、2・・・言語処
理プログラム、4・・・オブジェクトプログラム生成部
、7・・・コンソール、8・・・エラー指定ファイル、
9・・・エラー指定処理部、10・・・エラー処理部、
12・・・オブジェクトプログラム・ファイル。
FIG. 1 is a block diagram showing a first embodiment of the present invention, and FIG.
1 is a flowchart showing the operation of the error processing section in FIG. 1, FIG. 3 is a block diagram showing the second embodiment, and FIG. 4 is a flowchart showing the operation of the error processing section in FIG. DESCRIPTION OF SYMBOLS 1... Source program file, 2... Language processing program, 4... Object program generation part, 7... Console, 8... Error specification file,
9...Error specification processing unit, 10...Error processing unit,
12...Object program file.

Claims (1)

【特許請求の範囲】[Claims] エラー番号とそのエラーが発生したときの処理の続行/
中断の指定および発生可能なエラーの最大個数をファイ
ルあるいはコマンドライン上に記述して入力し、言語処
理プログラムの実行途中にエラーが発生した場合にはエ
ラーの発生件数が指定された最大個数を越えていないか
のチェックおよび指定されたエラーであるかのチェック
を行いエラーの発生件数が指定された最大個数を越えあ
るいは発生したエラーが指定されたエラー番号に一致し
たことを検出した場合は指定された通りにそれ以降の処
理の続行/中断を行うことを特徴とする言語処理プログ
ラム。
Error number and continuation of processing when that error occurs/
Specify suspension and enter the maximum number of errors that can occur in a file or on the command line, and if an error occurs during execution of the language processing program, the number of errors that occur exceeds the specified maximum number. If it is detected that the number of errors that have occurred exceeds the specified maximum number, or that the error that has occurred matches the specified error number, the specified error is detected. A language processing program that is characterized by continuing/interrupting subsequent processing according to the instructions given.
JP63291304A 1988-11-17 1988-11-17 Language process program Pending JPH02136927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63291304A JPH02136927A (en) 1988-11-17 1988-11-17 Language process program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63291304A JPH02136927A (en) 1988-11-17 1988-11-17 Language process program

Publications (1)

Publication Number Publication Date
JPH02136927A true JPH02136927A (en) 1990-05-25

Family

ID=17767161

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63291304A Pending JPH02136927A (en) 1988-11-17 1988-11-17 Language process program

Country Status (1)

Country Link
JP (1) JPH02136927A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0528005A (en) * 1991-07-19 1993-02-05 Nec Corp Malfunction detecting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0528005A (en) * 1991-07-19 1993-02-05 Nec Corp Malfunction detecting method
JP2758742B2 (en) * 1991-07-19 1998-05-28 日本電気株式会社 Malfunction detection method

Similar Documents

Publication Publication Date Title
JPH02136927A (en) Language process program
JPS6136665B2 (en)
JPH0322032A (en) Program exception code control circuit
KR0147704B1 (en) The apparatus of scsi with minimum interrupts
JPH074669Y2 (en) Interrupt request processing circuit
JPH04270441A (en) Data processor
JP2591211B2 (en) High-speed interrupt processing device
JPH02170239A (en) Input/output error processing system
JPS61286936A (en) Step operation control system
JPH0734296B2 (en) Hard disk control circuit
JPH01233630A (en) File processing system
JPH03167633A (en) Control method for interruption program
JPH02280251A (en) System for loading initial program
JPH07334365A (en) Instruction executing system
JPH02271427A (en) Job input/output information controller
JPH11119801A (en) Process controller
JPS6238906A (en) Numerical controller
JPS6220013A (en) Disconnecting device for power supply of microcomputer applied equipment
JPH03167637A (en) Test diagnostic system for information processor
JPS61267137A (en) System for controlling interrupting action
JPS63310044A (en) Controller
JPH0520096A (en) Interruption control system of interactive processing system
JPS6265134A (en) Interruption processing system
JPH07129419A (en) Virtual computer system
JPH03218531A (en) High speed interruption processor