JP2544822B2 - Information processing method and information processing apparatus - Google Patents

Information processing method and information processing apparatus

Info

Publication number
JP2544822B2
JP2544822B2 JP2083867A JP8386790A JP2544822B2 JP 2544822 B2 JP2544822 B2 JP 2544822B2 JP 2083867 A JP2083867 A JP 2083867A JP 8386790 A JP8386790 A JP 8386790A JP 2544822 B2 JP2544822 B2 JP 2544822B2
Authority
JP
Japan
Prior art keywords
program data
program
error
information processing
storage memory
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.)
Expired - Lifetime
Application number
JP2083867A
Other languages
Japanese (ja)
Other versions
JPH03282836A (en
Inventor
祐二 川森
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP2083867A priority Critical patent/JP2544822B2/en
Publication of JPH03282836A publication Critical patent/JPH03282836A/en
Application granted granted Critical
Publication of JP2544822B2 publication Critical patent/JP2544822B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、外部から入力されたプログラムに基づいて
各種処理業務を実行する情報処理装置に係り、特に、プ
ログラムロード時にプログラムを構成する各行のプログ
ラムデータの正当性を判定して、エラーが検出された場
合の対処法を改良した情報処理方法及び情報処理装置に
関する。
Description: TECHNICAL FIELD The present invention relates to an information processing apparatus that executes various processing tasks based on a program input from the outside, and particularly, to an information processing apparatus for each line that configures the program when the program is loaded. The present invention relates to an information processing method and an information processing apparatus that improve the coping method when an error is detected by determining the correctness of program data.

[従来の技術] 情報処理装置が、GPIB,RS232C等のインタフェースラ
インに接続された装置やフロッピーディスク装置等の補
助記憶装置からロードするプログラムには次に示す2種
類がある。
[Prior Art] There are two types of programs that an information processing device loads from a device connected to an interface line such as GPIB, RS232C, or an auxiliary storage device such as a floppy disk device.

1つは、情報処理装置のプログラム格納メモリに格納
されたプログラムを補助記憶装置や外部記憶装置に出力
して保存したものである。このようなプログラムには最
初にプログラム格納メモリに格納した段階で各1行分の
プログラムデータについて正当性の判定を行ってエラー
の無いことが確認されている。したがって、このような
プログラムをロードする場合は、エラーが生じることは
ない。
One is that the program stored in the program storage memory of the information processing device is output to an auxiliary storage device or an external storage device and saved. It has been confirmed that such a program has no error by first checking the validity of each line of program data at the stage of storing the program in the program storage memory. Therefore, no error will occur when loading such a program.

もう1つは、他の情報処理装置によって作成されたプ
ログラムや、同じ情報処理装置において作成されたプロ
グラムであっても、正規のプログラム入力操作によって
ではなく、汎用の編集機能によって作成されたプログラ
ムである。このようなプログラムをロードする場合、ロ
ード時に始めてプログラムを構成する各行のプログラム
データの正当性を判定することになるので、エラーが発
生する可能性がある。
The other is a program created by another information processing device or a program created by the same information processing device, not by a regular program input operation but by a general-purpose editing function. is there. When such a program is loaded, an error may occur because the validity of the program data of each line making up the program is first determined at the time of loading.

後者の形態のプログラムは、プログラムを実行しよう
とする情報処理装置を占有しないので、他の情報処理装
置を用いてプログラムを作成したい場合に有用である。
また、複数の種類の情報処理装置があって、1っの情報
処理装置においてすでに稼働しているプログラムを別の
情報処理装置にもロードして利用する場合に有用であ
る。しかし、このようなプログラムは先に述べたように
エラーを含む可能性がある。エラーの原因としては、プ
ログラム入力時の入力ミスや情報処理装置毎にプログラ
ム言語の規則が異なることが挙げられる。この場合、プ
ログラムがエラーを含む場合でも、エラー箇所だけ訂正
すれば、他の部分はそのまま利用可能なので、プログラ
ムのロードを中止しないでプログラム全体をロードする
ことができれば、利用価値が大きい。
The latter form of the program does not occupy the information processing device that tries to execute the program, and is useful when it is desired to create the program using another information processing device.
Further, it is useful when there are a plurality of types of information processing devices and a program already running in one information processing device is loaded and used in another information processing device. However, such programs may contain errors as mentioned above. The cause of the error may be an input error at the time of inputting the program, or a different programming language rule depending on the information processing device. In this case, even if the program includes an error, the other part can be used as it is by correcting only the error part. Therefore, if the entire program can be loaded without stopping the loading of the program, the utility value is great.

従来、プログラムロード中にエラーを検出した時に、
ロードを継続する方法としては、横河ヒューレットパッ
カード(株)製のHPシリーズ200コンピュータのGETコマ
ンドに見られる方法があった。このコンピュータでは、
GETコマンドによってプログラムをロード中に各プログ
ラムデータのどれかにエラーがあると、エラーのあるプ
ログラムデータを操作者に報告するるとともに、注釈を
示すプログラムデータに変更して、プログラムのロード
を最後まで継続する。
Conventionally, when an error is detected during program loading,
As a method to continue loading, there was a method found in the GET command of the HP series 200 computer manufactured by Yokogawa Hewlett-Packard Co. On this computer,
If there is an error in any of the program data while loading the program with the GET command, the erroneous program data will be reported to the operator, and the program data will be changed to the commented program data until the end of the program load. continue.

また、他の従来の方法として、アンリツ(株)製のPA
CKET Vシリーズ パーソナルテクニカルコンピュータ
のLOAD SOURCEコマンドに見られる方法もあった。この
コンピュータでは、LOAD SOURCEコマンドによってプロ
グラムをロード中にエラーを含むプログラムデータを検
出すると、このエラーを含むプログラムデータをCRT表
示装置に表示して、操作者がキーボードを操作してその
表示内容を修正して入力できるようになっている。操作
者が修正して入力した内容が正当であれば、プログラム
のロードを続ける。
In addition, as another conventional method, PA manufactured by Anritsu Corporation is used.
There was also a method found in the LOAD SOURCE command of the CKET V series personal technical computer. In this computer, if program data containing an error is detected while loading a program with the LOAD SOURCE command, the program data containing this error is displayed on the CRT display device, and the operator operates the keyboard to correct the displayed content. You can then enter. If the contents corrected and entered by the operator are valid, the program continues to load.

[発明が解決しようとする課題] しかし、前述した従来のプログラムロード方法には下
記のような問題があった。
[Problems to be Solved by the Invention] However, the above-described conventional program loading method has the following problems.

まず、エラーのあるプログラムデータを注釈を示すプ
ログラムデータに変更してプログラムロードを継続する
方法では、操作者が介在しないでロードできる利点があ
るが、ロードを終了した後、エラーを含むプログラムデ
ータを確実に検索して修正することが困難であった。エ
ラーのあったプログラムデータは注釈を示すプログラム
データに変換してプログラム格納メモリに格納される
が、このプログラムデータは他の注釈を示すプログラム
データと全く同じ形式である。そのため、プログラムの
ロードが終了した後、コンピュータから報告されたエラ
ーを含むプログラムデータを修正する際に、もし修正し
忘れがあると、プログラムの内容そのものから修正され
ずに残っているエラーを含むプログラムデータを自動的
に検索することは不可能である。よって、その後、プロ
グラムを実行する段階で、エラーを含むプログラムデー
タが注釈を示すプログラムデータに変更されたままにな
っていると気づかないで誤った内容を実行してしまう危
険がある。
First, the method of changing the program data with an error to the program data indicating the annotation and continuing the program loading has the advantage that the operator can load without intervention, but after the loading is complete, the program data containing the error can be It was difficult to reliably search and correct. The program data having an error is converted into program data indicating an annotation and stored in the program storage memory, and this program data has exactly the same format as the program data indicating another annotation. Therefore, when the program data containing the error reported by the computer is corrected after the program has finished loading, if there is a mistake in correcting it, the program containing the error that remains uncorrected from the contents of the program itself It is impossible to retrieve data automatically. Therefore, after that, at the stage of executing the program, there is a risk that the wrong content is executed without realizing that the program data including the error remains changed to the program data indicating the annotation.

次に、プログラムのロード中にエラーを含むプログラ
ムデータを検出する毎に操作者の修正入力を待つ方法で
は、エラーを含むプログラムデータを確実に正しい内容
に修正できる利点を有しているが、ロードが終了するま
で操作者が介在する必要がある欠点があった。特に、エ
ラー箇所が多く、エラーの数が予想できない場合には、
操作者はロード終了となるまでコンピュータの操作を続
ける必要があり、負担が大きかった。
Next, the method of waiting for the operator's correction input each time program data containing an error is detected while loading the program has the advantage that the program data containing the error can be reliably corrected to the correct contents. There was a drawback that the operator had to intervene until the end of. Especially when there are many error points and the number of errors cannot be predicted,
The operator had to continue operating the computer until the loading was finished, which was a heavy burden.

本発明はこのような事情に鑑みてなされたものであ
り、入力した各行のプログラムデータにエラーが検出さ
れると、このエラーを含むプログラムデータ内の所定の
位置にこのプログラムデータがエラーを含むことを示す
とともにこのプログラムデータを一つのメッセージと見
なす特定の付加情報を付加して強制的に形式上正当なプ
ログラムデータに変更することによって、操作者が介在
することなくプログラムロードを継続して実行でき、か
つ後から確実にエラーを検索して修正でき、正しいプロ
グラムを稼働できる情報処理方法及び情報処理装置を提
供することを目的とする。
The present invention has been made in view of such circumstances, and when an error is detected in the program data of each input line, the program data contains an error at a predetermined position in the program data including the error. The program data can be continuously executed without intervention by the operator by adding specific additional information that treats this program data as one message and forcibly changing it to formally valid program data. An object of the present invention is to provide an information processing method and an information processing apparatus that can reliably search for and correct an error later and can operate a correct program.

[課題を解決するための手段] 上記課題を解消するために本発明の情報処理方法にお
いては、外部から順次入力されるプログラムを構成する
各行のプログラムデータの正当性をプログラムデータ入
力解析手段で判定し、該当プログラムデータが正当と判
定された場合該当プログラムデータをプログラム格納メ
モリへ格納し、プログラムデータがエラーを含むと判定
された場合エラー強制修正手段でもって該当プログラム
データ内の所定位置にこのプログラムデータがエラーを
含むことを示すとともに該当プログラムデータを一つの
メッセージと見なす特定の付加情報を付加することによ
って該当プログラムデータを形式上正当なプログラムデ
ータに強制修正し、この強制修正されたプログラムデー
タをプログラムデータ入力解析手段へ再入力し、この再
入力されたプログラムデータの正当性を再度判定し、該
当プログラムデータが正当と判定された場合このプログ
ラムデータを前記プログラム格納メモリへ格納し、前記
プログラムを構成する全部の行のプログラムデータが前
記プログラム格納メモリに格納された後にこのプログラ
ム格納メモリに格納された各行のプログラムデータのう
ち前記付加情報が付されたプログラムデータを検索し、
この検索されたプログラムデータのエラーを修正するよ
うにしている。
[Means for Solving the Problems] In order to solve the above problems, in the information processing method of the present invention, the program data input analysis means determines the correctness of the program data of each line forming the program sequentially input from the outside. If the relevant program data is judged to be valid, the relevant program data is stored in the program storage memory, and if it is determined that the program data contains an error, this program is placed at a predetermined position in the relevant program data by means of error forced correction means. By indicating that the data includes an error and adding specific additional information that regards the relevant program data as one message, the relevant program data is forcibly corrected to formally valid program data, and the forcibly corrected program data is Re-input to program data input analysis means Then, the validity of the re-input program data is determined again, and when the relevant program data is determined to be valid, the program data is stored in the program storage memory, and the program data of all the lines that make up the program is stored. Is stored in the program storage memory and then the program data of each row stored in the program storage memory is searched for the program data to which the additional information is added,
The error of this retrieved program data is corrected.

また、本発明の情報処理装置においては、プログラム
データ入力解析手段とエラー強制修正手段とプログラム
格納メモリとを備え、外部から順次入力されるプログラ
ムを構成する各行のプログラムデータの正当性をプログ
ラムデータ入力解析手段で確認した後に該当プログラム
データをプログラム格納メモリへ格納していく情報処理
装置であって、 プログラムデータ入力解析手段は、各行のプログラム
データの正当性確認過程にてエラーを含むプログラムデ
ータが検出されるとこのプログラムデータをエラー強制
修正手段へ送出し、エラー強制修正手段は、プログラム
データ入力解析手段から受領したエラーを含むプログラ
ムデータ内の所定位置にこのプログラムデータがエラー
を含むことを示すとともに該当プログラムデータを一つ
のメッセージと見なす特定の付加情報を付加することに
よって、該当プログラムデータを形式上正当なプログラ
ムデータに強制修正してプログラムデータ入力解析手段
へ再入力するようにしている。
Further, in the information processing apparatus of the present invention, the program data input analysis means, the error forced correction means and the program storage memory are provided, and the correctness of the program data of each line constituting the program sequentially input from the outside is input as the program data input. An information processing device for storing the relevant program data in a program storage memory after confirmation by the analysis means, wherein the program data input analysis means detects program data including an error in the process of confirming the correctness of the program data of each line. Then, this program data is sent to the error compulsory correction means, and the error compulsory correction means indicates that this program data contains an error at a predetermined position in the program data including the error received from the program data input analysis means. The corresponding program data is By adding specific additional information regarded as a sage, the corresponding program data is forcibly corrected to formally valid program data and re-input to the program data input analysis means.

[作用] このように構成された情報処理方法及び情報処理装置
であれば、例えばホストコンピュータ等の外部装置から
この情報処理装置へプログラムをロードする場合に、こ
のプログラムを構成する各行のプログラムデータにエラ
ーが存在しなければ、プログラムデータ入力解析手段を
介してそのままプログラム格納メモリへ格納される。
[Operation] With the information processing method and the information processing apparatus configured as described above, for example, when a program is loaded from an external device such as a host computer to the information processing apparatus, the program data of each line configuring the program is added. If there is no error, it is directly stored in the program storage memory via the program data input analysis means.

一方、各行のプログラムデータにエラーが存在する
と、このエラーを含むプログラムデータはエラー強制修
正手段にて付加情報が付されて、強制的に形式上正当な
プログラムデータに修正される。したがって、この強制
的に修正されたプログラムデータはプログラムデータ入
力解析手段を介してプログラム格納メモリに格納され
る。
On the other hand, if there is an error in the program data of each line, the program data including the error is forcibly corrected by the error forced correction means with additional information to formally correct program data. Therefore, the forcibly corrected program data is stored in the program storage memory via the program data input analysis means.

すなわち、プログラム格納メモリ内には最初から正当
な内容であったプログラムデータと特定の付加情報が付
されて形式上正当な内容に修正されたプログラムデータ
とが混在して記憶されている。
That is, in the program storage memory, the program data having legal contents from the beginning and the program data having specific additional information and modified formally to be legally stored are mixed and stored.

よって、このプログラム格納メモリ内を特定の付加情
報でもって検索すると、エラーを含むプログラムデータ
を特定できる。しかして、操作者は、検索されたエラー
を含むプログラムデータを例えばCRT表示装置やキーボ
ード等を用いて正しいプログラムデータに修正すればよ
い。
Therefore, when the program storage memory is searched for with specific additional information, the program data including an error can be specified. Therefore, the operator may correct the program data including the retrieved error into correct program data by using, for example, a CRT display device or a keyboard.

[実施例] 以下本発明の一実施例を図面を用いて説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の情報処理方法を適用した情報処理装
置の概略構成を示すブロック図である。この情報処理装
置は大きく分けて、プログラムデータ入力解析手段1
と、エラー強制修正手段2と、プログラム編集作成手段
3と、プログラム実行手段4と、プログラム格納メモリ
5とで構成されている。なお、実際には、前記各手段1
〜4はこの情報処理装置内に記憶された制御プログラム
を構成する各単位プログラム(サブルーチン)で形成さ
れている。
FIG. 1 is a block diagram showing the schematic arrangement of an information processing apparatus to which the information processing method of the embodiment is applied. This information processing apparatus is roughly divided into program data input analysis means 1
The error compulsory correction means 2, the program edit creation means 3, the program execution means 4, and the program storage memory 5. Incidentally, in practice, each of the means 1
Reference numerals 4 to 4 are formed by respective unit programs (subroutines) constituting the control program stored in the information processing apparatus.

前記プログラムデータ入力解析手段1には例えばホス
トコンピュータ等の外部装置6からI/Oドライバ7を介
してこの情報処理装置のプログラム格納メモリ5に書込
むべきプログラムを構成する各行のプログラムデータが
順次入力される。また、プログラム編集作成手段3には
例えばキーボード等の入力装置8およびCRT表示装置等
の表示器9がそれぞれI/Oドライバ10,11を介して接続さ
れている。同じく、プログラム実行手段4には前記I/O
ドライバ10,11を介して前記入力装置8および表示器9
が接続されている。
The program data input / analysis means 1 sequentially inputs program data of each row constituting a program to be written in the program storage memory 5 of this information processing apparatus from an external device 6 such as a host computer via an I / O driver 7. To be done. An input device 8 such as a keyboard and a display device 9 such as a CRT display device are connected to the program editing / creating means 3 via I / O drivers 10 and 11, respectively. Similarly, the program execution means 4 has the I / O
The input device 8 and the display 9 via the drivers 10 and 11
Is connected.

さらに、前記プログラム編集作成手段3は、第2図に
示すように、プログラム表示手段3a、プログラムデータ
編集手段3b、プログラムデータ出力手段3c,プログラム
データカーソル移動手段3d,エラープログラムデータ検
索手段3eとの5個の単位プログラムで構成されている。
Further, the program editing / creating means 3 includes a program display means 3a, a program data editing means 3b, a program data output means 3c, a program data cursor moving means 3d, and an error program data searching means 3e, as shown in FIG. It is composed of five unit programs.

また、前記プログラム格納メモリ5内には、外部装置
6から入力されたプログラムを構成する各行のプログラ
ムデータを1行毎に、行番号に従って記憶する領域が形
成されている。
Further, in the program storage memory 5, an area for storing the program data of each line forming the program input from the external device 6 for each line according to the line number is formed.

次に、この情報処理装置を構成する各手段の動作を順
を追って説明する。
Next, the operation of each means constituting this information processing apparatus will be described step by step.

まず、プログラムデータ入力解析手段1は外部装置6
から順次入力されるプログラムを構成する各行のプログ
ラムデータの正当性を確認して次のプログラム格納メモ
リ5へ書き込む機能を有する。また、エラー強制修正手
段2はエラーを含むプログラムデータに特定の付加情報
を付して形式上正当なプログラムデータに強制修正する
機能を有する。
First, the program data input analysis means 1 is an external device 6
It has a function of confirming the correctness of the program data of each row constituting the program sequentially input from and writing it to the next program storage memory 5. Further, the error compulsory correction means 2 has a function of attaching specific additional information to the program data including an error and forcibly correcting it to formally valid program data.

前記プログラムデータの正当性判定は次の手順で行
う。すなわち、プログラムを構成する各行のプログラム
データは大きく分けて3種類に分類される。第1の種類
は、第5図(a)に示すように、行番号と命令ステート
メント等の一般ステートメントとこの一般ステートメン
トに続く引数とで構成されている。この場合、この一般
ステートメントに続く引数の種類(数値/文字列/数式
/文字列式/記号)と順序には一般ステートメントの種
類に対応して一定の規則が存在する。また、第2の種類
は、第5図(c)に示すように、行番号と、REM(リマ
ーク)ステートメントとこのREMステートメントに続く
文字列とで構成されている。この場合、このREMステー
トメントに続く文字列は、備考等のプログラムの内容の
理解を助けるための注釈であるので、この文字列には何
等文法的制約はない。さらに第3の種類は、第5図
(b)に示すように、行番号と、[*]記号で示す付加
情報12と、この付加情報12に続く文字列とで構成されて
いる。この[*]記号で示す付加情報12はこの付加情報
12に続く文字列を例えばREMステートメントに続く文字
列と同様に、何等の文法的制約なしに許容する機能を有
する。したがって、付加情報12に続く文字列がどのよう
な組合せの文字であってよい。なお、行番号は1〜9の
数字の組合せからなり、1〜65535の範囲で設定され
る。
The validity of the program data is determined by the following procedure. That is, the program data of each line forming the program is roughly classified into three types. The first type, as shown in FIG. 5A, is composed of a line number, a general statement such as an imperative statement, and an argument following the general statement. In this case, a certain rule exists in the type (numerical value / character string / mathematical formula / character string expression / symbol) and order of the arguments following this general statement corresponding to the type of general statement. The second type is composed of a line number, a REM (remark) statement, and a character string following this REM statement, as shown in FIG. 5 (c). In this case, since the character string following this REM statement is a comment to help understand the contents of the program such as remarks, there is no grammatical restriction on this character string. Further, as shown in FIG. 5 (b), the third type is composed of a line number, additional information 12 indicated by the [*] symbol, and a character string following this additional information 12. The additional information 12 indicated by this [*] symbol is this additional information.
Like the character string following the REM statement, it has a function of allowing a character string following 12 without any grammatical constraint. Therefore, the character string following the additional information 12 may be any combination of characters. The line number is a combination of numbers 1 to 9 and is set in the range of 1 to 65535.

よって、第5図(a)のプログラムデータの一般ステ
ートメントにこの情報処理装置に未設定のステートメン
トが含まれる場合に、該当プログラムデータが正当でな
くエラーが存在すると判断される。具体的には、外部装
置6から入力したプログラムデータの一般ステートメン
トは、第5図(a)に示すように、[ATT]であるが、
情報処理装置に定義されている同一意味を示す一般ステ
ートメントが[AT]である場合は、この1行文のプログ
ラムデータがエラーと判定される。
Therefore, when the general statement of the program data of FIG. 5A includes a statement that has not been set in the information processing apparatus, it is determined that the corresponding program data is not valid and an error exists. Specifically, the general statement of the program data input from the external device 6 is [ATT] as shown in FIG.
When the general statement having the same meaning defined in the information processing device is [AT], the program data of this one-line sentence is determined to be an error.

また、一般ステートメントに続く引数が前述した文法
的制約を満たしていない場合もエラーとなる。
An error will also occur if the arguments following the general statement do not satisfy the grammatical constraints mentioned above.

第3図は上記プログラムデータ入力解析手段1および
エラー強制修正手段2の具体的動作を示す流れ図であ
る。
FIG. 3 is a flow chart showing specific operations of the program data input analysis means 1 and the error forced correction means 2.

第3図において、流れ図が開始されると、S(ステッ
プ)1にてI/Oドライバ7から1行分のプログラムデー
タを読取る。次にS2にて読取ったプログラムデータにお
ける正当性を前述した手法で判断する。S3にて該当プロ
グラムデータが正当なプログラムデータであると判定さ
れると、S4へ進み、該当プログラムデータをプログラム
格納メモリ5へ格納する。以上で外部装置6から入力さ
れ1行分のプログラムデータのプログラム格納メモリ5
へのロード処理が終了したので、S5にてまだロードして
いないプログラムデータが存在することを確認すると、
S1へ戻り、次の行のプログラムデータを読込む。
In FIG. 3, when the flow chart is started, one line of program data is read from the I / O driver 7 in S (step) 1. Next, the validity of the program data read in S2 is determined by the above-described method. When it is determined in S3 that the relevant program data is valid program data, the process proceeds to S4, and the relevant program data is stored in the program storage memory 5. As described above, the program storage memory 5 for one row of program data input from the external device 6
Since the loading process to is completed, it is confirmed in S5 that there is program data that has not been loaded.
Return to S1 and read the program data of the next line.

また、S3にてエラーを有りと判定されると、S6にて、
外部装置6からのプログラムデータであることを確認し
て、S7にて、エラーを含む該当プログラムデータをエラ
ー強制修正手段2へ送出する。エラーを含むプログラム
データを受領したエラー強制修正手段は、第5図(b)
に示すように、該当プログラムデータのうちの行番号と
一般ステートメントとの間のスペース位置に[*]記号
で示す付加情報12を付加する。そして、S9にて、付加情
報12が所定位置に付された該当プログラムデータをプロ
グラムデータ入力解析手段1へ再入力する。
If it is determined that there is an error in S3, in S6,
After confirming that the program data is from the external device 6, the program data including the error is sent to the error forced correction means 2 in S7. The error compulsory correction means that has received the program data including the error is shown in FIG. 5 (b).
As shown in, the additional information 12 indicated by the [*] symbol is added to the space position between the line number and the general statement in the relevant program data. Then, in S9, the relevant program data having the additional information 12 attached to the predetermined position is re-input to the program data input analysis means 1.

エラー強制修正手段2から付加情報12が付されたプロ
グラムデータが入力されたプログラムデータ入力解析手
段1はS2にて該当プログラムデータの正当性を判定す
る。今度は、付加情報12が付されているので、この付加
情報12に続くエラーが含まれる一般ステートメントにエ
ラーが存在したとしても、付加情報12に続くステートン
トは単なるメッセージを示す文字列と見なすので、該当
該当プログラムデータは正当であると判定される。よっ
て、この付加情報12が付されたプログラムデータはS4に
てプログラム格納メモリ5へ書込まれる。
The program data input analysis means 1 to which the program data with the additional information 12 is input from the error compulsory correction means 2 determines the validity of the corresponding program data in S2. Since the additional information 12 is added this time, even if there is an error in the general statement including the error following the additional information 12, the statent following the additional information 12 is regarded as a character string indicating a message only. , The corresponding program data is determined to be valid. Therefore, the program data with this additional information 12 is written in the program storage memory 5 in S4.

このように、外部装置6から入力されたプログラムを
構成する各行のプログラムデータはエラーの有無にかか
わらず最終的にプログラム格納メモリ5に書込まれる。
In this way, the program data of each line forming the program input from the external device 6 is finally written in the program storage memory 5 regardless of the presence or absence of an error.

次に、プログラム格納メモリ5に格納されたプログラ
ムをプログラム編集作成手段3を用いて編集作成する手
順を説明する。
Next, a procedure for editing and creating the program stored in the program storage memory 5 by using the program edit creating means 3 will be described.

第4図はプログラム編集作成手段3におけるエラープ
ログラムデータ検索手段3eを用いてプログラム格納メモ
リ5内に記憶されたプログラムにおけるエラープログラ
ムデータを検索する示す流れ図である。まず、Q1にて、
プログラム格納メモリ5内の検索行を先頭行に初期設定
する。次に、Q2にて、検索行がプログラムの最終行を越
えていないことを確認すると、該当1行分のプログラム
データを読出す。Q3にて読出したプログラムデータの行
番号を調べた後、チェック位置を行番号に続く次の文字
位置へ移動させる。さらに、Q4にて、チェック位置をス
ペース以外の文字位置まで移動させる。
FIG. 4 is a flowchart showing a process for searching the error program data in the program stored in the program storage memory 5 by using the error program data searching device 3e in the program editing / creating device 3. First, in Q1,
The search line in the program storage memory 5 is initialized to the top line. Next, in Q2, if it is confirmed that the search line does not exceed the last line of the program, the program data for the corresponding one line is read. After checking the line number of the program data read in Q3, move the check position to the next character position following the line number. In Q4, move the check position to a character position other than space.

そして、Q5にて、該当チェック位置に文字[*]記号
で示される付加情報12が存在するか否かを調べる。そし
て、付加情報12が存在すれば、該当プログラムデータに
エラーが存在するので、その行番号を表示器9の空き領
域に表示する。そして、検索行を1行進めたのち、Q2へ
戻る。なお、Q5にて付加情報12が検出されなかった場合
には、該当プログラムデータは最初から正当なプログラ
ムデータであるので、なにもせず、そのままQ2へ戻る。
Then, in Q5, it is checked whether or not the additional information 12 indicated by the character [*] symbol exists at the corresponding check position. If the additional information 12 exists, an error exists in the relevant program data, and the line number is displayed in the empty area of the display unit 9. After advancing the search line one line, the process returns to Q2. If the additional information 12 is not detected in Q5, the relevant program data is valid program data from the beginning, so nothing is done and the process directly returns to Q2.

Q2にて、検索行がプログラムの最終行を越えると、エ
ラープログラムデータの検索処理が終了したので、Q8に
て表示器9に行番号が表示されているか否かを調べる。
行番号が表示されていなければ、例えば「ロードエラー
なし」のメッセージを表示する。
When the search line exceeds the last line of the program in Q2, the search process of the error program data is completed, so it is checked in Q8 whether the line number is displayed on the display unit 9.
If the line number is not displayed, a message such as "no load error" is displayed.

このように、エラープログラムデータ検索手段4eを起
動させることによって、プログラム格納メモリ5に書込
済みのプログラムにおけるエラーが含まれるプログラム
データを検索できる。
In this way, by activating the error program data retrieval means 4e, it is possible to retrieve the program data including the error in the program already written in the program storage memory 5.

次に、プログラムデータ編集手段3bにおいては、例え
ばプログラム表示手段3aにて表示器9に表示したプログ
ラムの例えば付加情報12が付された1行分のプログラム
データを、入力装置6から入力したデータにより変更
(訂正)する機能と、新規のプログラムデータを入力装
置6から入力して、必要に応じて、プログラム格納メモ
リ5に記憶されているプログラムを変更(修正)する機
能を有する。
Next, in the program data editing means 3b, for example, one line of program data to which the additional information 12 of the program displayed on the display 9 by the program display means 3a is added is changed by the data input from the input device 6. It has a function of changing (correcting) and a function of inputting new program data from the input device 6 and changing (correcting) the program stored in the program storage memory 5 as necessary.

また、プログラム出力手段3cは、前記プログラムデー
タ編集手段3bにて訂正または新規挿入された各行のプロ
グラムデータをプログラムデータ入力解析手段1へ送出
して、該当プログラムデータにエラーが含まれていない
ことを再確認する機能を有する。
Further, the program output means 3c sends the program data of each line corrected or newly inserted by the program data editing means 3b to the program data input analysis means 1 to check that the relevant program data does not include an error. It has a function to reconfirm.

具体的には、プログラムデータの訂正または新規入力
操作中は、入力装置を操作する毎に入力情情報が表示器
9に表示される。操作者は表示内容を確認し、訂正また
は入力したプログラムデータに誤りがなければ、これを
プログラム格納メモリ5に書込むために実行キー(リタ
ーンキー)をキー操作する。すると、前述したようにプ
ログラムデータがプログラムデータ入力解析手段1へ入
力される。
Specifically, during correction of program data or new input operation, input information is displayed on the display 9 each time the input device is operated. The operator confirms the display contents, and if there is no error in the corrected or input program data, the operator operates the execution key (return key) to write it in the program storage memory 5. Then, the program data is input to the program data input analysis means 1 as described above.

プログラムデータカーソル移動手段3dは、操作者が表
示器9に表示されているプログラムデータの行番号や、
プログラムデータ内の各文字を指定する時に使用する。
The program data cursor moving means 3d is used for the line number of the program data displayed on the display 9 by the operator,
Used to specify each character in the program data.

このようにして、プログラム編集作成手段3にて正し
いプログラムがプログラム格納メモリ5に登録される
と、第1図のプログラム実行手段4を起動する。
In this way, when the correct program is registered in the program storage memory 5 by the program editing / creating means 3, the program executing means 4 of FIG. 1 is activated.

このプログラム実行手段4は、プログラム格納メモリ
5に記憶されたプログラムを1行づつ読出して実行する
機能を有する。そして、実行過程で、修正するのを忘れ
たエラーを含むプログラムデータが残っていた場合に
は、付加情報12が付されたプログラムデータが存在する
ので、この付加情報12が付されたプログラムデータを読
出した時点でプログラム動作を停止する。そして、エラ
ーの行とエラーの原因を示すメッセージを表示器9に表
示する。
The program executing means 4 has a function of reading out the program stored in the program storage memory 5 line by line and executing the program. Then, in the execution process, when the program data including the error that has been forgotten to be corrected remains, the program data with the additional information 12 exists, so the program data with the additional information 12 is added. The program operation is stopped when it is read. Then, the error line and a message indicating the cause of the error are displayed on the display unit 9.

すなわち、このプログラム実行手段4は通常のプログ
ラム実行機能の他に、プログラムロード時にエラーとな
ったプログラムデータの修正忘れを検出する二重安全保
証機能を有する。
That is, the program executing means 4 has a double safety assurance function for detecting forgetting to correct the program data which has become an error when the program is loaded, in addition to the normal program executing function.

このように構成された、情報処理方法及び情報処理装
置であれば、たとえホストコンピュータ等の外部装置1
から情報処理装置に定義されていないステートメントを
含むプログラムデータが入力したとしても、このエラー
を含むプログラムデータはこのプログラムデータを一つ
のメッセージと見なす特定の付加情報12が付された状態
でプログラム格納メモリ5に書込まれる。
If the information processing method and the information processing apparatus configured as described above are used, the external device 1 such as a host computer is used.
Even if program data including a statement not defined in the information processing device is input from the program storage memory, the program data including this error is attached with specific additional information 12 that regards this program data as one message. Written to 5.

したがって、従来装置のように、プログラムロード過
程でエラーを検出してもプログラムロード処理が中断さ
れることはない。よって、たとえ互換性のないプログラ
ムであっても、プログラム全体をロードすることがで
き、後で編集することによって大部分がそのまま利用で
きる。
Therefore, unlike the conventional apparatus, even if an error is detected in the program loading process, the program loading process is not interrupted. Therefore, even if the program is not compatible, the whole program can be loaded, and most of it can be used as it is by editing it later.

また、プログラム格納メモリ5に書込まれた各行のプ
ログラムデータを付加情報12を利用して検索することが
可能となる。したがって、プログラムデータに含まれる
エラーはプログラムロード時に修正するのではなく、一
旦プログラム格納メモリ5に格納したのち、エラーを含
むプログラムデータをまとめて検索して、修正可能であ
る。よって、操作員はプログラムロード期間中は立会う
必要がない。また、後から確実にエラー修正が可能であ
るので、エラー修正の後に実行するプログラムの信頼性
を向上できる。
Further, it becomes possible to retrieve the program data of each line written in the program storage memory 5 using the additional information 12. Therefore, the error contained in the program data is not corrected at the time of loading the program but can be once stored in the program storage memory 5, and then the program data including the error can be collectively retrieved to be corrected. Therefore, the operator does not need to be present during the program loading period. In addition, since the error can be surely corrected later, the reliability of the program executed after the error correction can be improved.

[発明の効果] 以上説明したように、本発明の情報処理方法及び情報
処理装置においては、入力した各行のプログラムデータ
にエラーが検出されると、このエラーを含むプログラム
データ内の所定の位置にこのプログラムデータがエラー
を含むことを示すとともにこのプログラムデータを一つ
のメッセージと見なす特定の付加情報を付加して強制的
にエラーを修正している。したがって、外部から入力さ
れたプログラムにたとえエラーが含まれるプログラムデ
ータが混入していたとしても、操作者が介在することな
く継続してプログラムロードを実行できる。また、付加
情報を利用することによって後からエラーを検索して修
正できる。したがって、正しいプログラムでもって操作
を稼働でき、かつ操作者の負担を大幅に軽減できる。
[Effects of the Invention] As described above, in the information processing method and the information processing apparatus of the present invention, when an error is detected in the program data of each input line, the error is detected at a predetermined position in the program data including this error. An error is compulsorily corrected by indicating that this program data contains an error and adding specific additional information that regards this program data as one message. Therefore, even if program data containing an error is mixed in the program input from the outside, the program can be continuously loaded without the intervention of the operator. Further, by using the additional information, the error can be retrieved and corrected later. Therefore, the operation can be performed with the correct program, and the burden on the operator can be significantly reduced.

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

図は本発明の一実施例に係わる情報処理方法及び情報処
理装置を示すものであり、第1図は情報処理装置全体の
構成を示すブロック図、第2図は要部を取出して示すブ
ロック図、第3図及び第4図は同装置の動作を示す流れ
図、第5図は各プログラムデータを示す図である。 1……プログラムデータ入力解析手段、2……エラー強
制修正手段、3……プログラム編集作成手段、3a……プ
ログラム表示手段、3b……プログラムデータ編集手段、
3c……プログラムデータ出力手段、3d……プログラムデ
ータカーソル移動手段、3e……エラープログラムデータ
検索手段、4……プログラム実行手段、5……プログラ
ム格納メモリ、6……外部装置、8……入力装置、9…
…表示器、12……付加情報。
FIG. 1 shows an information processing method and an information processing apparatus according to an embodiment of the present invention. FIG. 1 is a block diagram showing a configuration of the entire information processing apparatus, and FIG. 3 and 4 are flowcharts showing the operation of the apparatus, and FIG. 5 is a diagram showing each program data. 1 ... Program data input analysis means, 2 ... error forced correction means, 3 ... program edit creation means, 3a ... program display means, 3b ... program data edit means,
3c ... program data output means, 3d ... program data cursor moving means, 3e ... error program data retrieval means, 4 ... program execution means, 5 ... program storage memory, 6 ... external device, 8 ... input Device, 9 ...
… Display, 12 …… Additional information.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部から順次入力されるプログラムを構成
する各行のプログラムデータの正当性をプログラムデー
タ入力解析手段(1)で判定し、該当プログラムデータ
が正当と判定された場合該当プログラムデータをプログ
ラム格納メモリ(5)へ格納し、前記プログラムデータ
がエラーを含むと判定された場合エラー強制修正手段
(2)でもって該当プログラムデータ内の所定位置にこ
のプログラムデータがエラーを含むことを示すとともに
該当プログラムデータを一つのメッセージと見なす特定
の付加情報(12)を付加することによって該当プログラ
ムデータを正当なプログラムデータに強制修正し、この
強制修正されたプログラムデータを前記プログラムデー
タ入力解析手段へ再入力し、この再入力されたプログラ
ムデータの正当性を再度判定し、該当プログラムデータ
が正当と判定された場合このプログラムデータを前記プ
ログラム格納メモリへ格納し、前記プログラムを構成す
る全部の行のプログラムデータが前記プログラム格納メ
モリに格納された後にこのプログラム格納メモリに格納
された各行のプログラムデータのうち前記付加情報が付
されたプログラムデータを検索し、この検索されたプロ
グラムデータのエラーを修正することを特徴とする情報
処理方法。
1. When the program data input analysis means (1) determines the correctness of the program data of each line constituting the program sequentially input from the outside, and when the relevant program data is judged to be correct, the corresponding program data is programmed. When the program data is stored in the storage memory (5) and it is determined that the program data contains an error, the error compulsory correction means (2) indicates that the program data contains an error at a predetermined position in the corresponding program data and By adding specific additional information (12) that regards the program data as one message, the relevant program data is forcibly corrected to valid program data, and the forcibly corrected program data is re-input to the program data input analysis means. The validity of this re-entered program data When the program data is judged to be valid, the program data is stored in the program storage memory, and after the program data of all the lines constituting the program are stored in the program storage memory, the program storage An information processing method, characterized in that the program data to which the additional information is added is retrieved from the program data of each row stored in the memory, and an error in the retrieved program data is corrected.
【請求項2】プログラムデータ入力解析手段(1)とエ
ラー強制修正手段(2)とプログラム格納メモリ(5)
とを備え、外部から順次入力されるプログラムを構成す
る各行のプログラムデータの正当性を前記プログラムデ
ータ入力解析手段で確認した後に該当プログラムデータ
を前記プログラム格納メモリへ格納していく情報処理装
置であって、 前記プログラムデータ入力解析手段(1)は、前記各行
のプログラムデータの正当性確認過程にてエラーを含む
プログラムデータが検出されるとこのプログラムデータ
を前記エラー強制修正手段へ送出し、 前記エラー強制修正手段(2)は、前記プログラムデー
タ入力解析手段から受領したエラーを含むプログラムデ
ータ内の所定位置にこのプログラムデータがエラーを含
むことを示すとともに該当プログラムデータを一つのメ
ッセージと見なす特定の付加情報を付加することによっ
て、該当プログラムデータを正当なプログラムデータに
強制修正して前記プログラムデータ入力解析手段へ再入
力することを特徴とする情報処理装置。
2. A program data input analysis means (1), an error compulsory correction means (2), and a program storage memory (5).
And an information processing device that stores the relevant program data in the program storage memory after confirming the correctness of the program data of each line constituting the program sequentially input from the outside by the program data input analysis means. When the program data input analysis means (1) detects program data including an error in the process of confirming the correctness of the program data of each row, the program data input analysis means (1) sends the program data to the error forced correction means, The forced correction means (2) indicates that this program data contains an error at a predetermined position in the program data containing the error received from the program data input analysis means, and also adds a specific addition that regards the program data as one message. Applicable program by adding information Information processing apparatus to force correct the over data legitimate program data, characterized in that re-enter into the program data input analysis means.
JP2083867A 1990-03-30 1990-03-30 Information processing method and information processing apparatus Expired - Lifetime JP2544822B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2083867A JP2544822B2 (en) 1990-03-30 1990-03-30 Information processing method and information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2083867A JP2544822B2 (en) 1990-03-30 1990-03-30 Information processing method and information processing apparatus

Publications (2)

Publication Number Publication Date
JPH03282836A JPH03282836A (en) 1991-12-13
JP2544822B2 true JP2544822B2 (en) 1996-10-16

Family

ID=13814619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2083867A Expired - Lifetime JP2544822B2 (en) 1990-03-30 1990-03-30 Information processing method and information processing apparatus

Country Status (1)

Country Link
JP (1) JP2544822B2 (en)

Also Published As

Publication number Publication date
JPH03282836A (en) 1991-12-13

Similar Documents

Publication Publication Date Title
US4445795A (en) Method and apparatus for merge processing in a text processing system
US20040006744A1 (en) System and method for validating an XML document and reporting schema violations
JPH02300847A (en) Processing of structured document
JP2544822B2 (en) Information processing method and information processing apparatus
JPS6290752A (en) Documentation device
KR930003412B1 (en) Character reading system and method
US20100016999A1 (en) Machining program checking apparatus
JPH0128974B2 (en)
JP4385709B2 (en) Format information registration method, OCR system, and format information registration program
JP4189040B2 (en) Sentence proofreading apparatus and proofreading method
JP2856492B2 (en) Program processing device
JPS6238729B2 (en)
JPH09160611A (en) Programmable controller
JPS5913775B2 (en) Format control method of character processing device
JP2518157B2 (en) Method and device for generating revision history of program
JP3307358B2 (en) Partial correction command method and information processing apparatus
JP3371434B2 (en) Layout editing device
WO1989011689A1 (en) System for preparing a machining program
JPH01282673A (en) Document processor
Teperman et al. A format editor
JPH04195458A (en) Document processing device
JPH10222507A (en) Data editing device and its program recording medium
Murach murach’s
JPH0594444A (en) Document preparing device
JPH0651973A (en) Error correction method for sequence program