JPH0358226A - File editing system - Google Patents

File editing system

Info

Publication number
JPH0358226A
JPH0358226A JP1195451A JP19545189A JPH0358226A JP H0358226 A JPH0358226 A JP H0358226A JP 1195451 A JP1195451 A JP 1195451A JP 19545189 A JP19545189 A JP 19545189A JP H0358226 A JPH0358226 A JP H0358226A
Authority
JP
Japan
Prior art keywords
information
error
additional information
file
line
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
JP1195451A
Other languages
Japanese (ja)
Inventor
Yumi Yoshida
由美 吉田
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 JP1195451A priority Critical patent/JPH0358226A/en
Publication of JPH0358226A publication Critical patent/JPH0358226A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To eliminate retrieved error additional information after erroneous information is corrected without moving a cursor to its part by retrieving error additional information from program list information outputted by a language processing program and storing an additional part. CONSTITUTION:When a file input instruction is executed, a file input part 3 reads file information from an input file 1, and file information is held as memory information of an editing part 5. An error additional information retrieving/ eliminating instruction is decided by an error additional information retrieving/ eliminating instruction deciding part 10, and in the case a retrieving instruction is inputted, error additional information is retrieved from program list information outputted by a language processing program, and the part of retrieved error additional information is stored. When an eliminating instruction is inputted after the erroneous information corresponding to its error additional information is corrected, the retrieved error additional information is eliminated without moving a cursor to the part of its error additional information. In such a way, it becomes unnecessary to eliminate an error message by a person's help after the correction is ended.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル編集方式に関し、特にプログラム・リ
スト情報を編集する場合のファイル編集方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file editing method, and particularly to a file editing method for editing program list information.

〔従来の技術〕[Conventional technology]

従来、プログラムの開発(修正)においてソース・プロ
グラムのエラー箇所に対する修正を行なう場合には、言
語処理プログラムが出力したプログラム・リスト情報と
ソース・プログラムを見比べながら修正作業を行ってい
た。すなわち、まずプログラム・リスト情報を見てエラ
ー・メッセージを検索し、次にソース・プログラムを見
て、フログラム・リスト情報で発見したエラー・メッセ
ージに対応するソース・プログラムのエラー箇所を見つ
け出してから、ソース・プログラムの修正作業を行って
いた。
Conventionally, when developing (modifying) a program, when correcting an error location in a source program, the correction work was performed while comparing the program list information output by the language processing program with the source program. That is, first look at the program list information to search for an error message, then look at the source program, find the error location in the source program that corresponds to the error message found in the program list information, and then I was working on modifying the source program.

しかし、ソース・プログラムとプログラム・リスト情報
には同じンース・プログラム部分が含まれているにもか
かわらず、プログラム・リスト情報は目視による検索用
にしか用途がなく、リストの作或にかかる時間や、2つ
のファイルのソース・ブpグラムを見比べてエラー箇所
検索を行なう工数が無駄になる。そこでプログラム・リ
スト情報の有効活用をはかるため、エラー・エッセージ
つきのプログラム・リスト情報をそのままンース・プロ
グラムとして入力できる言語処理プログラムが考えられ
る. このプログラム・リスト情報を入力ファイルとする言語
処理プログラムの場合、プログラム・リスト情報等の文
字列の集まりであるテキスト・ファイルの編集を行なう
ファイル編集プログラム(以下エディタという)にプロ
グラム・リスト情報を入力し、エディタのサーチ機能を
使ってソース・プログラムのエラー箇所およびエラーの
修正内容を示すエラー・メッセージを見つけ出し、エラ
ーの修正内容によりンース・プログラムのエラー箇所に
対する修正を行っている。その後、修正が終わったこと
を明確にするため修正済みのエラー箇所に対するエラー
・エッセージを再度見つけ出し、削除する必要がある。
However, although the source program and program list information contain the same source program parts, the program list information is only useful for visual retrieval, and the time and time it takes to create the list are limited. , the man-hours of comparing the source programs of the two files and searching for error locations are wasted. Therefore, in order to make effective use of program list information, we can consider a language processing program that can input program list information with error messages as is as a first program. In the case of a language processing program that uses this program list information as an input file, input the program list information into a file editing program (hereinafter referred to as an editor) that edits a text file that is a collection of character strings such as program list information. Then, the editor's search function is used to find the error location in the source program and an error message indicating the content to correct the error, and the error location in the source program is corrected based on the content of the error correction. After that, in order to make it clear that the correction has been completed, it is necessary to find the error message for the corrected error location again and delete it.

〔発明が解決しようとする課題〕 上述した従来のファイル編集方式は、エディタの指定さ
れた文字列を見つけ出すサーチ機能により指定された文
字列を見つけ出すことができたので、プログラムの開発
において、ソース・プログラムのエラー箇所およびエラ
ーの修正内容を示すエラー・メッセージを見つけ出すこ
とは容易であったが、ソース・プログラムのエラー箇所
に対する修正が終わった後で、エラー・メ,セージを削
除しなければ、残っているエラー・メッセージのうち、
どれが修正済みのものかわからなくなってしまう。そこ
でソース・プログラムのエラー箇所に対する修正が終わ
った後では、そのエラー・エッセージを削除する必要が
あったが、ソース・プログラムの1行に複数のエラーが
あり、1行に対してエラー・メッセージが複数個現れる
ような場合には、現れたエラー・エッセージのうち修正
によって削除できるエラー・メッセージを見つけ出し、
削除する必要があった。また、エラー・メッセージの削
除は人手で行われなければならず、エラーの修正箇所が
、エラーが起った場所と遠く離れている場合は、削除す
べきエラー・メ,セージを再度見つけ出す手間と時間を
多く必要とし、この時削除すべきエラー・メ,セージと
は異なるエラー・メッセージを間違えて削除しまうとい
う欠点があった。
[Problems to be Solved by the Invention] In the conventional file editing method described above, a specified character string can be found using the editor's search function that finds a specified character string. It was easy to find the error message that indicates the error location in the program and how to correct the error, but if you do not delete the error message after the error location in the source program has been corrected, the error message remains. Of the error messages that
I don't know which one has been fixed. After correcting the error in the source program, it was necessary to delete the error message, but there were multiple errors in one line of the source program, and an error message was generated for each line. If multiple error messages appear, find the error message that can be removed by modifying it, and
It needed to be removed. Additionally, error messages must be deleted manually, and if the location where the error has been corrected is far away from the location where the error occurred, it can be a hassle to find the error message again. This method requires a lot of time, and has the disadvantage that error messages that are different from those that should be deleted may be mistakenly deleted.

本発明の目的は、言語処理プログラムの出力するプログ
ラム・リスト情報からエラー付加情報を検索し、このエ
ラー付加情報の箇所を記憶することにより、誤り情報修
正後に、検索したエラー付加情報をそのエラー付加情報
の箇所にカーンール移動を行わなくても削除できるよう
にしたファイル編集方式を提供することにある。
An object of the present invention is to search for error additional information from program list information output by a language processing program, and to store the location of this error additional information, so that after correcting the error information, the searched error additional information is added to the error information. To provide a file editing method that enables deletion of information without moving the information to the location.

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

本発明の構或は、言語処理プログラムによって生成され
た付加情報とソース・プログラム情報とを含むプログラ
ム・リスト情報をファイルから入力する入力手段、コン
ンールからのキー情報を入力するキー入力手段、前記キ
ー情報をもとに入力されたプログラム・リスト情報を編
集する手段、編集されたプログラム・リスト情報をコン
ソールに出力する出力手段および編集されたプログラム
・リスト情報をファイルに出力するファイル出力手段と
を有するファイル編集方式において、前記プログラム・
リスト情報の中で検索した付加情報の位置を保存する手
段および検索した付加情報を削除する手段を有すること
を特徴とする。
The structure of the present invention includes an input means for inputting program list information including additional information and source program information generated by a language processing program from a file, a key input means for inputting key information from a console, and a key input means for inputting key information from a console. It has a means for editing input program list information based on the information, an output means for outputting the edited program list information to a console, and a file output means for outputting the edited program list information to a file. In the file editing method, the program
The present invention is characterized by having means for saving the position of the additional information searched for in the list information and means for deleting the searched additional information.

〔実施例〕〔Example〕

次に本発明について図面を用いて説明する。ここでは、
言語処理プログラムとしてプログラム・リスト情報を入
力ファイルとする言語処理プログラムを想定する。
Next, the present invention will be explained using the drawings. here,
Assume a language processing program that uses program list information as an input file.

第1図は本発明の一実施例のファイル編集方式が動作す
るシステム構或を示すブp,ク図である。
FIG. 1 is a diagram showing a system configuration in which a file editing method according to an embodiment of the present invention operates.

このファイル編集システム2は、入力ファイル1よりフ
ァイル情報をメモリに読み込むファイル入力部3、メモ
リに読込んだファイル情報(以降メモリ情報という)の
修正を行なう編集部5、修正したメモリ情報を出力ファ
イル8に出力するファイル出力部7の大きく3つから構
或されている。
This file editing system 2 includes a file input section 3 that reads file information from an input file 1 into memory, an editing section 5 that corrects the file information read into memory (hereinafter referred to as memory information), and an output file that outputs the corrected memory information. The file output section 7 outputs data to a file output section 8.

さらに、編集部5には、エラー付加情報検索/削除指示
判断部10が付加されており、その他、修正ffl報と
してコンソール9(キーボードを含む)から入力される
情報を受け付けるコンソール入力部4、修正されたメモ
リ情報をコンソール9に出力するコンソール出力部6が
含まれている。
Furthermore, an error additional information search/deletion instruction determination section 10 is added to the editing section 5, and a console input section 4 that receives information input from the console 9 (including the keyboard) as correction ffl information; It includes a console output section 6 that outputs the stored memory information to a console 9.

ここでは、作業者がコンソール9を操作することにより
、その操作内容がコンンール入力部4から、編集部5に
送られる.この操作の手順としては、まずファイル入力
指示を行なうと、ファイル入力部3が入力ファイル1よ
りファイル情報を読取り、ファイル情報が編集部5のメ
モリ情報として保持される。このメモリ情報はコンンー
ル出力部6によってコンソール9に表示される。次に、
編集操作を行なうと、編集部5によりメモリ情報は編集
され、その編集されたメモリ情報はコンソール出力部6
によりコンソール9に再表示される。この編集操作の1
つにエラー付加情報検索/削除指示がある。この指示は
、エラー付加情報検索/削除指示判断部10により判断
され、検索指示を入力した場合は、言語処理プログラム
の出力するプログラム・リスト情報からエラー付加情報
を検索し、検索したエラー付加情報の箇所を記憶する。
Here, when the operator operates the console 9, the contents of the operation are sent from the console input section 4 to the editing section 5. The procedure for this operation is that when a file input instruction is first given, the file input section 3 reads file information from the input file 1, and the file information is held as memory information in the editing section 5. This memory information is displayed on the console 9 by the console output section 6. next,
When an editing operation is performed, the memory information is edited by the editing section 5, and the edited memory information is sent to the console output section 6.
will be redisplayed on the console 9. 1 of this editing operation
There is an error additional information search/deletion instruction. This instruction is determined by the error additional information search/deletion instruction determination unit 10. If a search instruction is input, the error additional information is searched from the program list information output by the language processing program, and the error additional information searched is Memorize the location.

作業者がそのエラー付加情報に対応する誤り情報を修正
した後に、削除指示を入力すると、検索した前記エラー
付加情報をそのエラー付加情報の箇所にカーソル移動を
行わずに削除する。全ての編集操作を終えて、ファイル
出力指示を行なうと、ファイル出力部7はメモリ情報を
出力ファイル8に出力する。この一連の作業により、プ
ログラム・リスト情報の修正を行い、修正したプログラ
ム・リスト情報を再び言語処理プログラムへの入力ファ
イル情報とする。
When the operator inputs a deletion instruction after correcting the error information corresponding to the error additional information, the retrieved error additional information is deleted without moving the cursor to the location of the error additional information. When all editing operations are completed and a file output instruction is given, the file output section 7 outputs the memory information to the output file 8. Through this series of operations, the program list information is corrected, and the corrected program list information is again used as input file information to the language processing program.

次の第1表は、言語処理プログラムが出力するC言語プ
ログラム・リスト情報の一例であり、ファイル編集方式
の入力となるファイルである。
Table 1 below is an example of C language program list information output by the language processing program, and is a file that is input to the file editing method.

この例では、誤りのある行の次の行にエラー付加情報が
出力されている。各行の先頭に出力されている行番号は
、便宜上のものであり、ブμグラムリスト情報の内容で
はない。
In this example, additional error information is output on the line following the line with the error. The line numbers output at the beginning of each line are for convenience and are not the contents of the program list information.

第 1 表 第2図は第1図のエラー付加情報検索/削除指示判断部
lOにおいてエラー付加情報検索指示が入力されたと判
断された場合の、検索・記憶処理ノ詳細を示すフローチ
ャートである。以下、第1表のプログラム・リスト情報
を入力ファイルとして処理を説明する。
Table 1 and FIG. 2 are flowcharts showing the details of the search/storage process when the error additional information search/deletion instruction determining unit 1O of FIG. 1 determines that an error additional information search instruction has been input. The processing will be described below using the program list information in Table 1 as an input file.

〔検索・記憶処理〕[Search/Mnemonic processing]

処理(1):メモリ情報入力処理21でメモリ情報を1
行入力する。
Processing (1): Memory information is set to 1 in memory information input processing 21.
Input a line.

処理(2):ファイル終了判断処理22で、入力した行
がファイルの終わりか否かを判断し、ファイルの終わり
の場合は、検索処理を終了する。
Process (2): In the file end determination process 22, it is determined whether the input line is the end of the file, and if it is the end of the file, the search process is ended.

処理{3}:ファイルの終わりでなければ、行数計算処
理23で、入力した行数をカウントする。
Process {3}: If it is not the end of the file, count the number of input lines in line number calculation process 23.

処理(4):エラー付加情報判断処理24で、入力した
行にエラー付加情報が含まれているかを判断し、これが
含まれていなければ、処理(1)に戻る。
Process (4): In the error additional information determination process 24, it is determined whether the input line contains error additional information, and if it is not included, the process returns to process (1).

このように処理(1)から処理(4)までを行なうこと
により、第1表のプログラム・リスト情報の10行目ま
でをカウントしながら読み飛ばす。
By performing processes (1) to (4) in this way, the program list information in Table 1 up to the 10th line is counted and skipped.

処理(5) : 1 1行目には、エラー付加情報を示
す文字列′/$′が含まれでいるので、エラー付加情報
だと判断し、記憶処理25でその行の行数「1l」を記
憶し、直前の行であるlO行目にカーソル移動を行って
処理を終了する。
Processing (5): 1 Since the first line contains the character string '/$' indicating error additional information, it is determined to be error additional information, and the number of lines in that line is set to ``1l'' in memory processing 25. is stored, the cursor is moved to the immediately previous line, line 10, and the process is terminated.

このエラー付加情報検索指示によりエラー付加情報を検
索し、検索したエラー付加情報が示すメッセージの内容
に従ってプログラム・リスト情報の修正を行ない、エラ
ー付加情報を削除するために、次に処理を説明するエラ
ー付加情報削除指示を行なう。なお、このエラー付加情
報を削除せずに、次のエラー付加情報を検索する場合は
、検索指示を入力する。
The error additional information is searched according to this error additional information search instruction, the program list information is corrected according to the contents of the message indicated by the searched error additional information, and the error processing is explained below in order to delete the error additional information. Instructs to delete additional information. Note that if you wish to search for the next additional error information without deleting this additional error information, enter a search instruction.

第3図は第1図のエラー付加情報検索/削除指示判断部
10において、エラー付加情報削除指示が入力されたと
判断された場合の削除処理の詳細を示すフローチャート
である。
FIG. 3 is a flowchart showing details of the deletion process when the error additional information search/deletion instruction determining unit 10 of FIG. 1 determines that an error additional information deletion instruction has been input.

〔削除処理〕[Delete process]

処理(1):記憶確認処理31で、行数が記憶されてい
るかを確認し、行数が記憶されていない場合には、削除
処理を終了する。
Process (1): In the storage confirmation process 31, it is confirmed whether the number of lines is stored, and if the number of lines is not stored, the deletion process is ended.

処理(2)二本例では、前述の処理(1)から処理(5
)までの流れによって、検索・記憶処理により行数が記
憶されているので、削除処理32で、記憶された行数の
エラー付加情報を削除する。
Process (2) Two In this example, the above-mentioned process (1) to process (5)
), the number of lines has been stored by the search/storage process, so in the deletion process 32, the error additional information for the stored number of lines is deleted.

処理(3):行数補正処理33で、削除された行数の補
正を行なう。検索・記憶処理の行数計算処理23で計算
された現在の行数から削除された行数を引く。
Process (3): In the line number correction process 33, the number of deleted lines is corrected. The number of deleted lines is subtracted from the current number of lines calculated in the line count calculation process 23 of the search/storage process.

処理(4):記憶クリア処理34で記憶内容をクリアし
、処理を終了する。この処理結果のプログラム・リスト
情報は、第1表の11行目が削除され、12行目から2
9行目が、11行目から28行目となったものとなる。
Process (4): The memory contents are cleared in the memory clear process 34, and the process ends. The program list information resulting from this processing is such that the 11th line of Table 1 is deleted and the 2nd line is deleted from the 12th line.
The 9th line becomes the 28th line from the 11th line.

以上、作業者は、エラー付加情報検索指示とエラー付加
情報削除指示をプログラム・リスト情報の誤り情報の修
正を行なう際に用いることにより、エラー付加情報の削
除を容易に行ないながら、プログラム・リスト情報の誤
りの修正を行なうことができる。
As described above, by using the error additional information search instruction and the error additional information deletion instruction when correcting the error information in the program list information, the operator can easily delete the error additional information and delete the program list information. Errors can be corrected.

第4図は本発明の第2の実施例のファイル編集方式が動
作するシステムのブロック図である。本実施例では、1
つの誤り情報に対してエラー付加情報が複数個連続して
出力されている場合に、そのエラー付加情報を選択して
削除できる機能を持たせたことが第1の実施例と異なり
、この実施例2では、誤り情報修正後に、検索したエラ
ー付加情報に連続して出力されている複数個のエラー付
加情報を一括して削除する機能と、削除したい箇所を選
択して削除する機能を有している。本実施例の第1の実
施例との違いは、編集部5にエラー付加情報検索/一括
削除/選択削除指示判断処理11を有することである。
FIG. 4 is a block diagram of a system in which the file editing method of the second embodiment of the present invention operates. In this example, 1
This embodiment differs from the first embodiment in that it has a function to select and delete the error additional information when a plurality of pieces of error additional information are consecutively output for one error information. 2 has a function to delete multiple pieces of error additional information that are consecutively output in the searched error additional information at once after correcting the error information, and a function to select and delete the part you want to delete. There is. The difference between this embodiment and the first embodiment is that the editing section 5 includes error additional information search/batch deletion/selective deletion instruction determination processing 11.

このエラー付加情報検索/一括削除/選択削除指示判断
部11は、第lの実施例のエラー付加情報検索/削除判
断部10の削除方法を、一括削除/選択削除の2つの削
除方法にしたものである。
This error additional information search/batch deletion/selective deletion instruction determination unit 11 is a modification of the error additional information search/deletion determination unit 10 of the first embodiment into two deletion methods: batch deletion/selective deletion. It is.

本実施例で用いられるエラー付加情報検索処理のフロー
チャートは、第1の実施例と同じである。
The flowchart of the error additional information search process used in this embodiment is the same as that in the first embodiment.

第5図は、本実施例で特に追加された、一括/選択削除
処理の詳細をあらわすフローチャートである。この〔一
括/選択削除指示判断処理〕における処理(1)は一括
/選択削除指示を判断する処理であり、〔選択削除処理
〕における処理(2)から処理(6)までは一括削除処
理の処理手順であり、〔一括削除処理〕における処理(
7)から処理(15)までは選択削除処理の処理手順で
ある。
FIG. 5 is a flowchart showing the details of batch/selective deletion processing, which is especially added in this embodiment. Process (1) in this [batch/selective deletion instruction judgment process] is a process to judge a batch/selective deletion instruction, and processes (2) to (6) in [selective deletion process] are the processes of the batch deletion process. It is a procedure, and the process in [batch deletion process] (
7) to process (15) are the processing procedures of the selective deletion process.

第2表は、本実施例のファイル編集方式への入力となる
C言語のプログラム・リスト情報の一例である。1つの
行に2つの誤り情報を持ち、エラー付加情報が2つ連続
して出力されていることが、第1の実施例とは異なり、
プログラム・リスト情報の10行目の誤り情報に対応し
てエラー付加情報が11行目、12行目に連続して出力
されている。作業者が、一つ目の誤り情報を修正後に選
択削除指示を入力すると、該当するエラー付加情報の直
前の行にカーソルを移動し、作業者に削除するかどうか
の選択を促すメッセージを出力する。
Table 2 is an example of C language program list information that is input to the file editing method of this embodiment. This embodiment differs from the first embodiment in that one line has two pieces of error information and two pieces of error additional information are output consecutively.
Corresponding to the error information on the 10th line of the program list information, additional error information is successively output on the 11th and 12th lines. When the worker inputs a selective deletion instruction after correcting the first error information, the cursor is moved to the line immediately before the corresponding error additional information and a message is output prompting the worker to choose whether to delete it. .

第 2 表 〔一括削除/選択削除指示判断処理〕 処理(l):一括削除/選択削除指示判断処理5lによ
り、一括削除を行なうか、選択削除を行なうかを判断し
、選択削除を行なう場合は、処理(7)へ移る。
Table 2 [Batch deletion/selective deletion instruction determination process] Process (l): Batch deletion/selective deletion instruction determination process 5l determines whether to perform bulk deletion or selective deletion, and if selective deletion is performed, , move on to process (7).

〔一括削除処理〕[Batch deletion process]

処理(2):一括削除を行なう場合は、記憶行削除処理
52で、記憶した行数の1個のエラー付加情報を削除す
る。ここでは、第2表のプログラム・リスト情報の11
行目が削除される。
Process (2): When performing batch deletion, one piece of error additional information corresponding to the number of stored lines is deleted in a stored line deletion process 52. Here, 11 of the program list information in Table 2 is shown.
The line is deleted.

処理(3):行数補正処理53で、削除した行数の補正
を行なう。検索・記憶処理の行数計算処理23で計算さ
れた現在の行数から削除された行数を引く. 処理(4):メモリ情報入力処理54でメモリ情報の次
の行を入力する。
Process (3): In the line number correction process 53, the number of deleted lines is corrected. Subtract the number of deleted lines from the current number of lines calculated in the line count calculation process 23 of search/storage processing. Process (4): Input the next line of memory information in memory information input process 54.

処理(5):ファイル終了判断処理55で、入力した行
がファイルの終わりでないかを判断し、ファイルの終わ
りの場合は削除処理を終了する。
Process (5): In the file end determination process 55, it is determined whether the input line is not the end of the file, and if it is the end of the file, the deletion process is terminated.

処理(6):ファイルの終わりでない場合は、入力した
行が、エラー付加情報か否かを判断し、エラー付加情報
でない場合は削除処理を終了する。
Process (6): If it is not the end of the file, determine whether the input line is error additional information or not, and if it is not error additional information, end the deletion process.

エラー付加情報である場合は、削除を行なうため処理(
2)に戻る。第2表のプログラム・リスト情報では、次
の12行目もエラー付力『情報なので、処理(2)から
処理(6)までを再度行なって、l2行目も削除する。
If it is error additional information, process (
Return to 2). In the program list information in Table 2, the next 12th line is also error-added information, so repeat processes (2) to (6) and delete the 12th line as well.

処理(2)から処理(6)までを行った結果は、11.
12行目が削除され、第2表の13〜30行目が11〜
28行目になる。
The results of processing (2) to processing (6) are shown in 11.
Line 12 is deleted, and lines 13 to 30 of Table 2 are deleted, and lines 11 to 30 of Table 2 are deleted.
This will be the 28th line.

〔選択削除処理〕[Selected deletion process]

処理(7)二一方、選択削除を指定した場合は、力一ソ
ル移動指示57により、記憶した行の直前の行にカーン
ルを移動する。以下、第2表を入力ファイルとし、その
11行目にカーソルが移動したものとして処理を説明す
る。
Process (7) 2 On the other hand, if selection deletion is specified, the cursor is moved to the line immediately before the memorized line by the force move instruction 57. The processing will be described below assuming that Table 2 is the input file and the cursor has been moved to the 11th line.

処理(8):メッセージ出力処理58で、カーソル移動
と同時にカーソル行の削除を行なう/行わないの選択を
ユーザに促すメッセージをコンソール9のカーソルのあ
る行(検索・記憶したエラー付加情報の直前の行)へ出
力し、入力待ちとなる。処理(7)と処理(8)を行っ
た結果は、そのlO行目に『メッセージを削除しますか
(Y/N)jの表示がなされる。ここで、ユーザがYま
たはNを入力するのを待つ。
Process (8): In the message output process 58, a message prompting the user to select whether or not to delete the cursor line at the same time as the cursor is moved is displayed on the line where the cursor is located on the console 9 (just before the searched and stored error additional information). line) and waits for input. As a result of processing (7) and processing (8), "Do you want to delete the message? (Y/N)j" is displayed on the 10th line. Now wait for the user to input Y or N.

処理(9):削除選択処理59で、削除を行なうか否か
をユーザが入力した文字がYかNかにより判断する。削
除を行わない場合は、処理(l3)へ移る。
Process (9): In deletion selection process 59, it is determined whether or not to perform deletion based on whether the character input by the user is Y or N. If deletion is not to be performed, the process moves to process (13).

処理(10) :削除を行なう場合は、カーソル行削除
処理60により、記憶した行数の1個のエラー付加情報
を削除する。
Process (10): When deleting, one piece of error additional information corresponding to the number of stored lines is deleted by cursor line deletion process 60.

処理(11) :メッセージ削除処理61により、コン
ンール9上のメッセージを削除する。処理後、カーソル
は削除した行と同じ行に止まり、削除された行以降が1
行ずつ上にスクロールする。
Process (11): The message on the console 9 is deleted by message deletion process 61. After processing, the cursor will remain on the same line as the deleted line, and the lines after the deleted line will be 1.
Scroll up line by line.

そのため、第2表の12行目がカーソル位置になる。処
理(9)から処理(11)までを行った結果は、第2表
の11行目が削除され、その12〜30行目が11〜2
9行目となる. 処理(12) :行数補正処理62により、削除した行
数の補正を行なう。第2図検索・記憶処理の行数計算処
理23で計算された現在の行数から、削除された行数を
引く。本処理(1l)で、第2表の12行目以降は、行
番号が1つずつ繰上がる。
Therefore, the 12th line of Table 2 becomes the cursor position. As a result of performing processes (9) to (11), the 11th row of Table 2 is deleted, and the 12th to 30th rows are changed to 11th to 2nd rows.
This is the 9th line. Process (12): The number of deleted lines is corrected by the line number correction process 62. The number of deleted lines is subtracted from the current number of lines calculated in the line number calculation process 23 of the search/storage process in FIG. In this process (1l), the row numbers are incremented by one from the 12th row onwards in Table 2.

処理(13) :メモリ情報入力処理63で、メモリ情
報の次の1行を入力する。
Process (13): In memory information input process 63, the next line of memory information is input.

処理(14) :ファイル終了判断処理64で、入力し
た行が行の終わりか否かを判断し、ファイルの終わりな
らば選択削除処理を終了する。
Process (14): In the file end determination process 64, it is determined whether the input line is the end of the line, and if it is the end of the file, the selective deletion process is ended.

処理(15) :ファイルの終わりでなければ、エラー
付加情報判断処理65で、入力した行がエラー付加情報
であるか否かを判断し、エラー付加情報であれば、処理
(8)に戻り、カーソル行の削除を行なう/行わむいの
選択をユーザに促すメッセージをコンソール9に出力す
る。エラー付加情報でなければ、削除処理を終了する。
Process (15): If it is not the end of the file, the error additional information judgment process 65 determines whether the input line is error additional information, and if it is error additional information, returns to process (8). A message prompting the user to select whether to delete the cursored line is output to the console 9. If it is not error additional information, the deletion process ends.

第2表では、次のl2行目もエラー付加情報なので、再
度メッセージが出力され、YかNの入力待ちの状態にな
る。
In Table 2, the next 12th line is also error additional information, so the message is output again and the system waits for input of Y or N.

以上、選択削除の場合、ソース・プログラムの複数の誤
り情報により連続してエラー付加情報が出力されている
場合、1つの誤り情報を修正するごとに連続して出力さ
れているエラー付加情報の中からすでに修正済みの誤り
情報に対するエラー付加情報のみ選択して削除すること
が可能となる。
As described above, in the case of selective deletion, if additional error information is output continuously due to multiple pieces of error information in the source program, each time one error information is corrected, among the error additional information that is continuously output. It becomes possible to select and delete only error additional information for error information that has already been corrected.

また、本実施例では、誤り情報に対するエラー付加情報
は、処理(7)によってカーソルを移動させることによ
りコンンールに出力される。従って、誤り情報と対応す
るエラーメッセージが一画面に入らない程離れている場
合にも、エラー付加情報の削除前に、エラー付加情報の
内容・箇所を再認識することが可能になる。このように
エラー付加情報が示すメッセージに従って、誤り情報を
正しく修正したか否かをエラー付加情報前に再確認しな
がら修正作業を行なうことが可能になる。
Further, in this embodiment, error additional information for error information is output to the console by moving the cursor in process (7). Therefore, even if the error information and the corresponding error message are too far apart to fit on one screen, it is possible to re-recognize the content and location of the error additional information before deleting the error additional information. In this way, according to the message indicated by the error additional information, it is possible to perform the correction work while reconfirming whether or not the error information has been correctly corrected before the error additional information is sent.

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

以上説明したように本発明は、プログラム・リスト情報
のなかで検索した付加情報の位置を保存し、前記付加情
報を削除する機能を追加することによって、ソース・プ
ログラムのエラー箇所に対する修正を行なう場合、修正
が終わったあとでエラー・メッセージの削除を人手で行
なう必要がなくなる。また、ソース・プログラムの1行
に複数の誤りがあり、1行に対してエラー・メッセージ
が複数個現れるようなときは、現れたエラー・メッセー
ジのうち、修正によって削除できるエラー・メッセージ
を再度検索する必要がなくなる。
As explained above, the present invention saves the position of additional information searched in program list information and adds a function to delete the additional information, thereby correcting an error location in a source program. This eliminates the need to manually delete error messages after corrections are complete. In addition, if there are multiple errors in one line of the source program and multiple error messages appear for one line, search again for the error message that appears that can be deleted by correction. There is no need to do so.

さらに、エラー・メ,セージに対するソース・プログラ
ムの修正箇所が、エラー・メッセージの箇所と遠く離れ
ているときは、削除すべきエラー・メッセージを再度見
つけ出す手間と時間も必要なくなるため、削除すべきエ
ラー・メッセージとは異なるエラー・メッセージを間違
えて削除してしまうことができなくなり、プログラム・
リスト情報のエラー処理をより簡単かつ正確に行なうこ
とができ、開発(修正)の時間が短縮できるという優れ
た効果がある。
Furthermore, if the correction part of the source program for the error message is far away from the part of the error message, there is no need to spend time and effort to find the error message again, so it is difficult to find the error message that should be deleted.・It is no longer possible to accidentally delete an error message that is different from the message, and the program
This has the advantage that error handling of list information can be performed more easily and accurately, and development (correction) time can be shortened.

4.4.

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

第1図は本発明の一実施例のシステム構或を示すブロッ
ク図、第2図,第3図は第1図の検索処理および削除処
理のフローチャート、第4図は本発明の第2の実施例を
説明するブロック図、第5図は第4図の削除処理のフロ
ーチャートである。 l・・・・・・入力ファイル、2・・・・・・ファイル
編集システム、3・・・・・・ファイル入力部、4・・
・・・・コンソール入力部、5・・・・・・編集部、6
・・・・・・コンソール出力部、7・・・・・・ファイ
ル出力部、8・・・・・・出力ファイル、9・・・・・
・コンソール、10・・・・・・(エラー付加情報)検
索/削除指示判断部、11・・・・・・(エラー付加情
報)検索/一括削除/選択削除指示判断部、3l・・・
・・・メモリ情報入力処理、32・・・・・・ファイル
終了判断処理、33・・・・・・行数計算処理、34・
・・・・・エラー付加情報判断処理、35・・・・・・
記憶処理、4l・・・・・・記憶確認処理、42・・・
・・・削除処理、43・・・・・・行数補正処理、44
・・・・・・記憶クリア処理、5l・・・・・・一括削
除/選択削除判断処理、52・・・・・・記憶行削除処
理、53・・・・・・行数補正処理、54・・・・・・
メモリ情報入力処理、55・・・・・・ファイル終了判
断処理、56・・・・・・エラー付加情報判断処理、5
7・・・・・・力一ソル移動処理、58・・・・・・メ
ッセージ出力処理、59・・・・・・削除選択処理、6
0・・・・・・カーソル行削除処理、6l・・・・・・
メッセージ削除処理、62・・・・・・行数補正処理、
63・・・・・・メモリ情報入力処理、64・・・・・
・ファイル終了判断処理、65・・・・・・エラー付加
情報判断処理。
FIG. 1 is a block diagram showing the system configuration of an embodiment of the present invention, FIGS. 2 and 3 are flowcharts of the search processing and deletion processing of FIG. 1, and FIG. A block diagram illustrating an example, and FIG. 5 is a flowchart of the deletion process shown in FIG. 4. l...Input file, 2...File editing system, 3...File input section, 4...
... Console input section, 5 ... Editorial department, 6
......Console output section, 7...File output section, 8...Output file, 9...
・Console, 10... (additional error information) search/deletion instruction determination unit, 11... (additional error information) search/batch deletion/selective deletion instruction determination unit, 3l...
. . . Memory information input processing, 32 . . . File end judgment processing, 33 . . . Line number calculation processing, 34.
...Error additional information judgment processing, 35...
Memory processing, 4l...Memory confirmation processing, 42...
...Deletion processing, 43...Line number correction processing, 44
... Memory clear processing, 5l ... Bulk deletion/selective deletion judgment processing, 52 ... Memory line deletion processing, 53 ... Line number correction processing, 54・・・・・・
Memory information input processing, 55...File end judgment processing, 56...Error additional information judgment processing, 5
7... Force single sol movement processing, 58... Message output processing, 59... Delete selection processing, 6
0... Cursor line deletion processing, 6l...
Message deletion processing, 62... Line number correction processing,
63...Memory information input processing, 64...
・File end determination processing, 65...Error additional information determination processing.

Claims (1)

【特許請求の範囲】[Claims] 言語処理プログラムによって生成された付加情報とソー
ス・プログラム情報とを含むプログラム・リスト情報を
ファイルから入力する入力手段、コンソールからのキー
情報を入力するキー入力手段、前記キー情報をもとに入
力されたプログラム・リスト情報を編集する手段、編集
されたプログラム・リスト情報をコンソールに出力する
出力手段および編集されたプログラム・リスト情報をフ
ァイルに出力するファイル出力手段とを有するファイル
編集方式において、前記プログラム・リスト情報の中で
検索した付加情報の位置を保存する手段および検索した
付加情報を削除する手段を有することを特徴とするファ
イル編集方式。
an input means for inputting program list information including additional information and source program information generated by a language processing program from a file; a key input means for inputting key information from a console; and a key input means for inputting key information from a console; In the file editing method, the file editing method includes means for editing edited program list information, output means for outputting the edited program list information to a console, and file output means for outputting the edited program list information to a file. - A file editing method characterized by having means for saving the position of additional information searched in list information and means for deleting the searched additional information.
JP1195451A 1989-07-27 1989-07-27 File editing system Pending JPH0358226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1195451A JPH0358226A (en) 1989-07-27 1989-07-27 File editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1195451A JPH0358226A (en) 1989-07-27 1989-07-27 File editing system

Publications (1)

Publication Number Publication Date
JPH0358226A true JPH0358226A (en) 1991-03-13

Family

ID=16341287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1195451A Pending JPH0358226A (en) 1989-07-27 1989-07-27 File editing system

Country Status (1)

Country Link
JP (1) JPH0358226A (en)

Similar Documents

Publication Publication Date Title
EP0501770B1 (en) Data base creating method and apparatus
JPS6037945B2 (en) How to display hierarchical tree-structured text in an ordered structure
JPH0358226A (en) File editing system
JPH05274106A (en) Multiwindow display device
JPH0750480B2 (en) Text data editing device
JPH05150816A (en) Numerical controller
JP2650803B2 (en) Full screen editor control processor
JPH07219946A (en) Document preparing device
JPH0358227A (en) File editing system
JPH0736916A (en) Image retrieval device
JPH0734181B2 (en) Calculator with guide function
JPH0589103A (en) Document editing processor
JPH08123982A (en) Analytic data input and output device
JPH05189504A (en) Graphic display system for cad system
JPH05204921A (en) Device for editing document and method therefor
JPH08292862A (en) Direct display system for corresponding item
JPH06304360A (en) Process name input apparatus
JPH076067A (en) Data set generation management assistance system
JPH03105563A (en) Document preparing device
JPH06222914A (en) Electronic equipment
JP2000112945A (en) Processor and record medium
JPH04291449A (en) Scroll processing system for document editing device
JPS63180130A (en) Conversation sequence editing device
JPH11312157A (en) Symbol input device
JPH073033U (en) Range designation device