JPH07261995A - Source program correction device - Google Patents

Source program correction device

Info

Publication number
JPH07261995A
JPH07261995A JP7667794A JP7667794A JPH07261995A JP H07261995 A JPH07261995 A JP H07261995A JP 7667794 A JP7667794 A JP 7667794A JP 7667794 A JP7667794 A JP 7667794A JP H07261995 A JPH07261995 A JP H07261995A
Authority
JP
Japan
Prior art keywords
correction
source program
image
program
storage means
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.)
Granted
Application number
JP7667794A
Other languages
Japanese (ja)
Other versions
JP2940394B2 (en
Inventor
Tadashi Miyazawa
忠 宮沢
Hisao Yoshioka
久雄 吉岡
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 JP6076677A priority Critical patent/JP2940394B2/en
Publication of JPH07261995A publication Critical patent/JPH07261995A/en
Application granted granted Critical
Publication of JP2940394B2 publication Critical patent/JP2940394B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To correct a source program by using correction image described in a language different from the description language, to preserve images before and after the correction as a history and to restore the original source program. CONSTITUTION:Storage means 7-1 to 7-n hold rules for converting the correction image described in a prescribed correction description language into the description language of the source program. At the time of correcting the source program in the storage means 5, when correction information including the specification of a correction part, the correction image to be applied to the correction part and the specification of the correction description language used for the description of the correction image is inputted from the storage means 6, a program correction part 1 converts the correction image into the description language of the source program by using rules in the pertinent storage means 7-1 to 7-n, corrects a specified correction part of the source program by the converted correction image and outputs the image before and after the correction of the correction part to the storage means 8.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は原始プログラム修正装置
に関し、特に修正対象とする原始プログラムの記述言語
と異なる言語により原始プログラムを修正することがで
きる原始プログラム修正装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a source program modifying device, and more particularly to a source program modifying device capable of modifying a source program in a language different from the description language of the source program to be modified.

【0002】[0002]

【従来の技術】従来、或る言語(プログラミング言語)
で記述されている原始プログラムの一部を修正する場
合、同一の言語で修正内容を記述し、この記述で修正箇
所の元の記述を置き換えるようにしていた。
2. Description of the Related Art Conventionally, a language (programming language)
When a part of the source program described in 1 is modified, the modification content is described in the same language, and this description replaces the original description of the modified part.

【0003】[0003]

【発明が解決しようとする課題】ところで、原始プログ
ラムの一部を修正する場合、先ず修正後のロジックを考
え、そのロジックを実現するソース文を記述することに
なる。修正後のロジックは言語に依存せずに考えること
ができるので、修正対象とするソースプログラムの言語
に習熟している必要はないが、ソース文の記述にあたっ
ては当然ながら修正対象とする原始プログラムの記述言
語を理解している必要がある。このため、或る種の言語
は理解しているが修正対象とする原始プログラムの記述
言語は習熟していない者にとっては、どのようなロジッ
クに修正すれば良いかを理解していても、そのロジック
を原始プログラムの記述言語で表現するのが容易でない
ために、修正作業が捗らない場合がある。
By the way, when a part of the source program is to be modified, the logic after the modification is first considered and the source statement for realizing the logic is described. Since the logic after modification can be considered without depending on the language, it is not necessary to be familiar with the language of the source program to be modified. You need to understand the description language. Therefore, even if a person who understands a certain type of language but is not familiar with the description language of the source program to be modified understands what kind of logic should be modified, Since it is not easy to express the logic in the description language of the source program, the modification work may not be progressed.

【0004】本発明はこのような事情に鑑みて提案され
たものであり、その目的は、原始プログラムの修正をそ
の記述言語と異なる他の言語で記述された修正イメージ
によって行えるようにすることにある。
The present invention has been proposed in view of the above circumstances, and an object thereof is to make it possible to modify a source program by using a modification image described in another language different from its description language. is there.

【0005】なお、本発明に関連する従来技術として、
特開平4−286029号公報に見られる技術、即ち、
或る種の言語で記述された原始プログラムを異なる言語
で記述された原始プログラムに変換するコンバータがあ
る。このようなコンバータを使用すれば、原始プログラ
ムの修正箇所のロジックを作業者の好みの言語で記述し
た修正イメージを、原始プログラムの言語で記述された
修正イメージに変換できるため、変換後の修正イメージ
で原始プログラムの修正作業を行えば済むことになる
が、コンバータの操作と原始プログラムの修正作業とを
別個に行う必要があるために、修正作業が煩雑になる。
As a conventional technique related to the present invention,
The technique found in Japanese Patent Laid-Open No. 4-286029, namely,
There is a converter that converts a source program written in a certain language into a source program written in a different language. By using such a converter, it is possible to convert a modified image in which the logic of the modified portion of the source program is written in the operator's favorite language into a modified image written in the language of the source program. Therefore, the modification work of the source program can be completed, but the modification work is complicated because it is necessary to separately perform the operation of the converter and the modification work of the source program.

【0006】そこで本発明の別の目的は、言語変換作業
を別作業として利用者が実施する必要のない原始プログ
ラム修正装置を提供することにある。
Therefore, another object of the present invention is to provide a source program modification device which does not require the user to carry out the language conversion work as a separate work.

【0007】更に、言語変換前の修正イメージは利用者
自身が作成するため、ロジックの考え違い等によって誤
った修正イメージを作成してしまうことがあり、この状
態で修正作業を進めて原始プログラムを修正すると、誤
った原始プログラムができてしまうことになる。このよ
うな誤りは後日に判明することが多いため、その時点で
修正前の原始プログラムが消去されていると、元の原始
プログラムに復元することが困難となる。
Furthermore, since the correction image before the language conversion is created by the user himself, an incorrect correction image may be created due to misunderstanding of logic, etc. In this state, the correction work is advanced to correct the source program. This will result in the wrong source program. Since such an error is often found at a later date, it is difficult to restore the original program if the original program before correction is erased at that time.

【0008】そこで本発明の更に別の目的は、修正前の
原始プログラムが存在しなくても、元の状態に原始プロ
グラムを復元し得るように、修正履歴を自動的に蓄積す
る機能を持つ原始プログラム修正装置を提供することに
ある。
Therefore, a further object of the present invention is to provide a source having a function of automatically accumulating a modification history so that the source program can be restored to its original state even if the source program before modification does not exist. To provide a program correction device.

【0009】[0009]

【課題を解決するための手段】本発明は上記の目的を達
成するために、修正対象となる原始プログラムを格納す
る原始プログラム記憶手段と、それぞれ異なる修正記述
言語毎に、その修正記述言語で記述された修正イメージ
を前記原始プログラムの記述言語に変換するルールを記
憶する変換ルール記憶手段と、修正履歴を保存する修正
履歴記憶手段と、前記原始プログラムの修正箇所の指定
と該修正箇所へ適用すべき修正イメージと該修正イメー
ジの記述に使用された修正記述言語の指定とを含む修正
情報を入力して、その修正イメージを、その記述に使用
された修正記述言語に対応する変換ルール記憶手段中の
ルールを用いて前記原始プログラムの記述言語に変換
し、該変換後の修正イメージで前記原始プログラムの指
定された修正箇所を修正すると共に、修正箇所の修正前
後のイメージを前記修正履歴記憶手段に出力するプログ
ラム修正部とを備えている。
In order to achieve the above-mentioned object, the present invention describes a source program storing means for storing a source program to be modified, and a modification description language for each different modification description language. Conversion rule storage means for storing a rule for converting the corrected image into the description language of the source program, correction history storage means for storing a correction history, designation of a correction point of the source program, and application to the correction point. Correction information including a correction image to be corrected and a designation of a correction description language used for description of the correction image is input, and the correction image is stored in conversion rule storage means corresponding to the correction description language used for the description. Is converted into the description language of the source program by using the rules described above, and the designated correction point of the source program is specified in the converted image after the conversion. With positive to, and a program correcting section for outputting an image before and after correction of the corrected portion to the modification history storage means.

【0010】また、本発明は以下のような構成をも採用
している。
The present invention also employs the following configurations.

【0011】修正イメージ中に単純なミス(例えばEN
Dと記述すべきをEMDと記述するようなミス等)が存
在することにより原始プログラムの記述言語へ変換でき
なかった場合、そのミスを対話的な方法で修正して原始
プログラムの修正作業を進めることができるようにする
ことを目的として、前記プログラム修正部は、前記ルー
ルによって言語変換が行えなかった修正イメージを表示
装置に表示して指示を促し、表示された修正イメージが
修正された後に再変換が指示されることにより、修正後
の修正イメージに対して言語変換を実行する構成を有し
ている。
A simple mistake (eg EN
If the source language cannot be converted into the description language of the source program due to the existence of a mistake such as the description of D as EMD), the mistake is corrected by an interactive method to proceed with the source program correction work. For the purpose of enabling the above, the program correction section displays a correction image that cannot be language-converted according to the rule on a display device to prompt an instruction, and re-corrects it after the displayed correction image is corrected. When the conversion is instructed, the language conversion is performed on the corrected image after correction.

【0012】修正履歴記憶手段に保存された修正前後の
イメージを用いることにより、修正前の状態に原始プロ
グラムを復元することは手作業によっても可能である
が、それを自動的に行い得るようにすることを目的とし
て、前記修正履歴記憶手段に保存された修正履歴を入力
し、前記原始プログラム記憶手段中の原始プログラムを
修正前の状態に復元するプログラム復元部を備えてい
る。
By using the images before and after the correction stored in the correction history storage means, it is possible to restore the original program to the state before the correction by hand, but it is possible to do it automatically. For this purpose, a program restoration unit is provided for inputting the revision history stored in the revision history storage means and restoring the source program in the source program storage means to the state before the revision.

【0013】[0013]

【作用】本発明の原始プログラム修正装置においては、
原始プログラム記憶手段が修正対象となる原始プログラ
ムを保持すると共に、変換ルール記憶手段が、それぞれ
異なる修正記述言語毎に、その修正記述言語で記述され
た修正イメージを前記原始プログラムの記述言語に変換
するルールを保持しており、原始プログラム修正時に外
部から、原始プログラムの修正箇所の指定とこの修正箇
所へ適用すべき修正イメージとこの修正イメージの記述
に使用された修正記述言語の指定とを含む修正情報が入
力されると、プログラム修正部が、その修正イメージ
を、その記述に使用された修正記述言語に対応する変換
ルール記憶手段中のルールを用いて原始プログラムの記
述言語に変換し、この変換後の修正イメージで原始プロ
グラムの指定された修正箇所を修正すると共に、修正箇
所の修正前後のイメージを修正履歴記憶手段に出力す
る。
In the source program modifying device of the present invention,
The source program storage means holds the source program to be corrected, and the conversion rule storage means converts, for each different correction description language, a correction image described in the correction description language into the description language of the source program. A rule which holds rules and which includes, from the outside when the source program is modified, the designation of the portion of the source program to be modified, the modification image to be applied to this modification portion, and the specification language of the modification description used to describe this modification image. When the information is input, the program correction unit converts the correction image into the description language of the source program using the rule in the conversion rule storage means corresponding to the correction description language used for the description, and this conversion is performed. In the later modification image, the specified modification part of the source program is modified, and the image before and after the modification part is modified. Outputs the stage in the modification history storage means.

【0014】[0014]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0015】図1を参照すると、本発明の原始プログラ
ム修正装置の一実施例は、処理装置4と、この処理装置
4に接続された、原始プログラム記憶手段5,修正情報
記憶手段6,複数の変換ルール記憶手段7−1〜7−
n,履歴情報記憶手段8および利用者端末9で構成され
ている。
Referring to FIG. 1, an embodiment of a source program modifying device of the present invention includes a processor 4 and a source program storing means 5, a correction information storing means 6, and a plurality of source information storing means 6 connected to the processor 4. Conversion rule storage means 7-1 to 7-
n, history information storage means 8 and user terminal 9.

【0016】原始プログラム記憶手段5,修正情報記憶
手段6,変換ルール記憶手段7−1〜7−nおよび履歴
情報記憶手段8は、例えば磁気ディスク装置で構成さ
れ、原始プログラム記憶手段5は修正対象となる原始プ
ログラムを、修正情報記憶手段6は原始プログラムの修
正に使用する修正イメージ等を含む修正情報を、それぞ
れ記憶している。また、変換ルール記憶手段7−1〜7
−nは、それぞれ異なる所定の修正記述言語毎に設けら
れており、各々は、或る修正記述言語で記述された修正
イメージを原始プログラム記憶手段5に記憶された原始
プログラムの記述言語に変換するルールを記憶してい
る。更に、修正履歴記憶手段8は、処理装置4によって
修正された原始プログラムの修正箇所の修正前後のイメ
ージを含む修正履歴を保存するために用意されている。
The source program storing means 5, the correction information storing means 6, the conversion rule storing means 7-1 to 7-n and the history information storing means 8 are composed of, for example, a magnetic disk device, and the source program storing means 5 is a correction target. The modification information storage means 6 stores modification information including a modification image used for modifying the source program. Further, the conversion rule storage means 7-1 to 7
-N is provided for each different predetermined modification description language, and each converts a modification image described in a certain modification description language into the description language of the source program stored in the source program storage means 5. I remember the rules. Further, the correction history storage means 8 is prepared to store a correction history including images before and after the correction of the correction portion of the source program corrected by the processing device 4.

【0017】利用者端末9は、処理装置4に対して各種
の指示やデータ等を入力するための入力装置たとえばキ
ーボード9aと、処理装置4から利用者に通知する情報
を表示するための表示装置たとえばCRT9bとを備え
ている。
The user terminal 9 is an input device such as a keyboard 9a for inputting various instructions and data to the processing device 4, and a display device for displaying information notified from the processing device 4 to the user. For example, a CRT 9b is provided.

【0018】処理装置4は、利用者端末9からの指示に
従って原始プログラムの修正および復元を実行する装置
であり、プログラム修正部1とプログラム復元部2と作
業域3とを含んでいる。
The processing device 4 is a device for executing the correction and restoration of the source program in accordance with the instruction from the user terminal 9, and includes a program correction section 1, a program restoration section 2 and a work area 3.

【0019】プログラム修正部1は、原始プログラムを
修正イメージに従って修正するためのもので、修正制御
手段11と言語変換手段12と修正手段13と修正履歴
作成手段14とを備えている。また、プログラム復元部
2は、一旦修正された原始プログラムを元の状態に復元
するためのもので、復元制御手段21と復元手段22と
を備えている。作業域3は、プログラム復元部2および
プログラム修正部1の双方から参照,更新可能な領域で
あり、原始プログラムの修正および復元時に種々の情報
を一時的に記憶しておくために使用される。
The program correction section 1 is for correcting the source program according to the correction image, and comprises a correction control means 11, a language conversion means 12, a correction means 13 and a correction history creation means 14. The program restoration unit 2 is for restoring the once-corrected source program to the original state, and includes a restoration control unit 21 and a restoration unit 22. The work area 3 is an area that can be referred to and updated by both the program restoration unit 2 and the program correction unit 1, and is used for temporarily storing various information when the original program is corrected and restored.

【0020】図2は原始プログラム記憶手段5に記憶さ
れている原始プログラムの一例を示す。この例の原始プ
ログラムは、COBOL/Sという言語で記述されてお
り、行番号0100から行番号0210の部分に同図に
示すようなソース行(テキスト)を含むプログラム本体
52を有し、更に、この原始プログラムの名前がAであ
り、その記述言語がCOBOL/Sであり、そのバージ
ョンが0、つまり最初に作成された原始プログラムであ
ることを示す管理情報51が付加されている。
FIG. 2 shows an example of the source program stored in the source program storage means 5. The source program of this example is written in the language COBOL / S, and has a program body 52 including a source line (text) as shown in FIG. The name of this source program is A, its description language is COBOL / S, and its version is 0, that is, management information 51 indicating that it is the source program created first is added.

【0021】図3は修正情報記憶手段6に記憶されてい
る修正情報の一例を示す。この例の修正情報は、当該修
正情報の修正イメージの記述言語を示す管理情報61
と、修正イメージ63とを含み、修正イメージ63には
その修正イメージを適用する修正箇所の情報62が付加
されている。この例の修正イメージ63は、図2に示し
た原始プログラム本体52の行番号0130から行番号
0200までの箇所の修正用として作業者によって作成
されたものであり、COBOL74という言語で記述さ
れており、行番号0130から行番号0170までの合
計5行のテキストから構成されている。なお、2以上の
修正イメージを使用する場合には、修正イメージ63の
後に修正箇所の情報,修正イメージの組が順次記憶され
る。
FIG. 3 shows an example of the correction information stored in the correction information storage means 6. The modification information in this example is management information 61 indicating the description language of the modification image of the modification information.
And a correction image 63, and the correction image 63 is added with information 62 of a correction portion to which the correction image is applied. The correction image 63 of this example is created by an operator for correction of the line number 0130 to the line number 0200 of the source program body 52 shown in FIG. 2, and is written in the language COBOL74. , Line number 0130 to line number 0170, which is a total of five lines of text. When two or more correction images are used, the correction image information and the set of correction images are sequentially stored after the correction image 63.

【0022】図4は変換ルール記憶手段7−1の内容例
を示す。この変換ルール記憶手段7−1は、COBOL
74で記述された修正イメージをCOBOL/Sに変換
するための複数のルールR1,R2,…を含むルール部
71と、COBOL74の予約語一覧72とを含んでい
る。各ルールR1,R2,…は、IF(条件部)THE
N(実行部)という形式であり、条件部に合致するテキ
ストは、実行部に示される形式に変換すべきことを示し
ている。なお、条件部および実行部に現れる#は任意の
ユーザ語列を示す。変換ルール記憶手段7−1以外の変
換ルール記憶手段7−n等も同様の構成であるが、それ
が受け持つ言語変換の種別に応じて、予約語一覧と各ル
ールの内容は相違する。即ち、Xという言語をCOBO
L/Sに変換するための変換ルール記憶手段では、言語
Xの予約語一覧と、言語Xで記述された修正イメージを
COBOL/Sに変換するための複数のルールを含んで
いる。
FIG. 4 shows an example of the contents of the conversion rule storage means 7-1. This conversion rule storage means 7-1 is a COBOL
A rule part 71 including a plurality of rules R1, R2, ... For converting the modified image described in S74 into COBOL / S, and a reserved word list 72 of COBOL74 are included. Each rule R1, R2, ... Is IF (conditional part) THE
The format is N (execution part), and the text that matches the condition part indicates that the text should be converted into the format shown in the execution part. Note that # appearing in the condition part and the execution part indicates an arbitrary user word string. The conversion rule storage unit 7-n and the like other than the conversion rule storage unit 7-1 also have the same configuration, but the reserved word list and the contents of each rule differ depending on the type of language conversion that it handles. That is, the language X is COBO
The conversion rule storage means for converting to L / S includes a reserved word list of language X and a plurality of rules for converting a modified image described in language X into COBOL / S.

【0023】なお、本実施例では、修正対象とするプロ
グラムがCOBOL/Sで記述されていることを前提と
しているため、各変換ルールは全てCOBOL/Sへ修
正イメージを変換するためのものであるが、修正対象と
するプログラムがCOBOL/S以外の言語の場合に
は、修正イメージを修正対象とする原始プログラムのそ
の記述言語に変換するためのルールが用意される。
In this embodiment, since it is premised that the program to be modified is written in COBOL / S, all the conversion rules are for converting the modified image into COBOL / S. However, when the program to be modified is a language other than COBOL / S, a rule is prepared for converting the modified image into the description language of the source program to be modified.

【0024】次に、このように構成された本実施例の原
始プログラム修正装置の動作を説明する。先ず最初に、
図2に示した原始プログラムを図3に示した修正情報で
修正する場合を例にして、原始プログラムの修正時の動
作を説明する。
Next, the operation of the source program modifying device of this embodiment having the above-described structure will be described. First of all,
The operation when modifying the source program shown in FIG. 2 will be described with reference to the case where the source program shown in FIG. 2 is modified by the modification information shown in FIG.

【0025】作業者が利用者端末9のキーボード9aか
ら、修正対象とする原始プログラム名Aを指定して修正
の開始を指示すると、処理装置4のプログラム修正部1
における修正制御手段11が動作を開始する。
When the operator designates the source program name A to be corrected and instructs the start of the correction from the keyboard 9a of the user terminal 9, the program correction unit 1 of the processing device 4 is executed.
The correction control means 11 in 1 starts the operation.

【0026】修正制御手段11は、図5のフローチャー
トに示すように、先ず、修正情報記憶手段6中から図3
に示した管理情報61を入力して、その記述言語がCO
BOL74であることを識別する(S1)。次に、指示
された原始プログラム名Aの図2に示した原始プログラ
ムを原始プログラム記憶手段5から入力し、作業域3に
展開する(S2)。次に、図2の管理情報51中のプロ
グラム名Aおよびバージョン0をキーとして修正履歴記
憶手段8を検索し、今回の原始プログラムに対応する修
正履歴を作業域3に展開する(S3)。
As shown in the flow chart of FIG. 5, the correction control means 11 first reads the correction information storage means 6 from FIG.
Input the management information 61 shown in, and the description language is CO
It is identified as BOL74 (S1). Next, the source program shown in FIG. 2 having the designated source program name A is input from the source program storage means 5 and developed in the work area 3 (S2). Next, the correction history storage means 8 is searched by using the program name A and version 0 in the management information 51 of FIG. 2 as a key, and the correction history corresponding to the source program of this time is expanded in the work area 3 (S3).

【0027】今の場合、修正対象となる原始プログラム
のバージョンは0なので、1度も修正は行われていな
い。この場合は、図6(a)に示すような原始プログラ
ム名Aとそのバージョン0の記録のみが、その原始プロ
グラムの原始プログラム記憶手段5への登録時に修正履
歴記憶手段8に登録されており、従って、その内容に次
のバージョンの記述、即ちバージョン1の記述を加えた
図6(b)に示すような内容を作業域3に展開する。
In this case, since the version of the source program to be modified is 0, it has never been modified. In this case, only the record of the source program name A and its version 0 as shown in FIG. 6A is registered in the correction history storage means 8 when the source program is registered in the source program storage means 5, Accordingly, the contents of the next version, that is, the contents of version 1 are added to the contents, and the contents as shown in FIG.

【0028】次に修正制御手段11は、修正記述言語と
原始プログラムの記述言語とが同一であるか否かを判別
し(S4)、同一であれば、ステップS5へ移行し、相
違すればステップS10へ移行する。今の場合、修正記
述言語はCOBOL74,原始プログラムの記述言語は
COBOL/Sで、両者は相違するので、ステップS1
0へ進み、COBOL74で記述された修正イメージを
COBOL/Sに言語変換するための図4に示した変換
ルール記憶手段7−1の内容を作業域3に展開する。
Next, the modification control means 11 determines whether or not the modification description language and the description language of the source program are the same (S4). If they are the same, the process proceeds to step S5, and if they are different, the step is executed. The process proceeds to S10. In this case, the modified description language is COBOL74 and the description language of the source program is COBOL / S, which are different from each other.
0, the contents of the conversion rule storage means 7-1 shown in FIG. 4 for converting the modified image described in COBOL74 into COBOL / S are expanded in the work area 3.

【0029】次に、修正制御手段11は、修正情報記憶
手段6から図3に示した修正情報中の1番目の修正イメ
ージ63をそれに付加された修正箇所の情報62と共に
入力し(S11)、そのうちの修正イメージ63を言語
変換手段12に通知して言語変換を要求し、その変換結
果を待つ(S12)。
Next, the modification control means 11 inputs the first modification image 63 in the modification information shown in FIG. 3 from the modification information storage means 6 together with the modification location information 62 added thereto (S11), The corrected image 63 is notified to the language conversion means 12 to request the language conversion, and the result of the conversion is waited (S12).

【0030】図7は言語変換手段12の処理例を示すフ
ローチャートである。言語変換手段12は、先ず、通知
された修正イメージ中の1番目のテキスト、即ち図3に
示した行番号0130のテキスト「IF A > B」
に注目する(S31)。そして、作業域3に展開されて
いる図4の予約語一覧72を参照して、当該テキストを
予約語と予約語以外のユーザ定義語とに分類し、検索用
テキストとして、予約語の箇所はそのまま記載し、ユー
ザ定義語の箇所は#に置き換えた「IF #」を生成す
る(S32)。次に、検索用テキストの内容を条件部に
持つルールを、作業域3に展開されている図4のルール
R1,R2…から検索する(S33)。
FIG. 7 is a flowchart showing a processing example of the language converting means 12. The language conversion means 12 firstly, the first text in the notified correction image, that is, the text “IF A> B” of the line number 0130 shown in FIG.
Pay attention to (S31). Then, with reference to the reserved word list 72 of FIG. 4 expanded in the work area 3, the text is classified into a reserved word and a user-defined word other than the reserved word. An "IF #" is generated by writing it as it is, and replacing the user-defined word portion with # (S32). Next, a rule having the content of the search text in the condition part is searched from the rules R1, R2 ... In FIG. 4 which are expanded in the work area 3 (S33).

【0031】今の場合、図4に示したルールRiが見つ
かるので、検索が成功し(S34でYES)、検索した
ルールRiに従って、言語変換したテキストを生成する
(S35)。今の場合、ルールRiの実行部は「IF:
#」となっており、#は変換前のテキストの「A >
B」に相当するので、言語変換したテキストとして、
「IF: A > B」を生成する。
In this case, since the rule Ri shown in FIG. 4 is found, the search is successful (YES in S34), and the language-converted text is generated according to the searched rule Ri (S35). In this case, the execution part of the rule Ri is "IF:
"#", Where # is "A>" in the text before conversion.
Since it corresponds to "B", as the language-converted text,
"IF: A>B" is generated.

【0032】言語変換手段12は1つのテキストの言語
変換を終了すると、次のテキストに注目を移し(S3
6)、次のテキストが存在すれば(S37でNO)、ス
テップS32に戻って当該テキストに対して上述と同様
な処理を繰り返す。従って、図3の修正イメージ63の
場合、次には行番号0140のテキストが、その次に行
番号0150のテキストが、更にその次に行番号016
0のテキストが処理され、最後に行番号0170のテキ
ストが処理される。そして、全てのテキストを言語変換
し終えると(S37でYES)、言語変換後の修正イメ
ージを修正制御手段11に通知し(S38)、今回の修
正イメージに対する言語変換処理を終了する。
When the language conversion means 12 completes the language conversion of one text, the language conversion means 12 shifts attention to the next text (S3).
6) If the next text exists (NO in S37), the process returns to step S32 and the same processing as described above is repeated for the text. Therefore, in the case of the modified image 63 of FIG. 3, the text at line number 0140 is next, the text at line number 0150 is next, and then the line number 016.
The text at 0 is processed, and finally the text at line number 0170 is processed. Then, when the language conversion of all the texts is completed (YES in S37), the correction image after the language conversion is notified to the correction control means 11 (S38), and the language conversion process for the current correction image ends.

【0033】図8に、図3の修正イメージ63を言語変
換した結果を示す。ここで、行番号0130は前述した
ように図4のルールRiによって言語変換されたテキス
トを示し、行番号0140,0150,0160,01
70はルールR1,Rj,R1,Rkによってそれぞれ
言語変換されたテキストを示す。
FIG. 8 shows the result of language conversion of the modified image 63 of FIG. Here, the line number 0130 indicates the text that has been language-converted by the rule Ri of FIG. 4 as described above, and the line numbers 0140, 0150, 0160, 01.
Reference numeral 70 indicates texts that have undergone language conversion according to rules R1, Rj, R1, and Rk.

【0034】以上の動作例では、修正イメージ63中の
各テキストの言語変換がうまく行われたが、例えば修正
イメージ63中の行番号0170のテキストが作業者の
ミスにより「EMD.」と記載されていると、「EM
D.」が予約語一覧に存在しないことからユーザ定義語
と判断され、検索用テキストとして「#」が生成される
ことから、適用可能なルールが検索されないことにな
る。即ち、ステップS34の結果がNOとなる。このよ
うな場合、言語変換手段12は、修正イメージ63全体
と行番号0170の箇所が変換不能であるメッセージと
をCRT9bに表示して、指示を促す(S39)。そし
て、作業者がCRT9b上で「EMD.」を「EN
D.」に修正して再変換をキーボード9aから指示する
と(S40でYES)、ステップS32に進んで、修正
後のテキストに対して変換動作を試みる。これにより、
修正イメージ中の単純なミスを会話形式で修正しながら
処理を進めることが可能となる。なお、作業者が再変換
でなく修正中止をキーボード9aから指定したときは
(S40でNO)、言語変換手段12は当該修正イメー
ジの言語変換を中止して、修正制御手段11に対して修
正中止を通知する(S41)。
In the above operation example, the language conversion of each text in the modified image 63 was successfully performed. For example, the text at the line number 0170 in the modified image 63 is described as "EMD." By the operator's mistake. And then "EM
D. Since it is not in the reserved word list, it is determined to be a user-defined word, and since “#” is generated as the search text, the applicable rule is not searched. That is, the result of step S34 is NO. In such a case, the language conversion unit 12 displays the entire corrected image 63 and a message indicating that the line number 0170 cannot be converted on the CRT 9b to prompt an instruction (S39). Then, on the CRT 9b, the operator selects "END."
D. When the re-conversion is instructed from the keyboard 9a (YES in S40), the process proceeds to step S32 to try the conversion operation on the corrected text. This allows
It becomes possible to proceed while correcting a simple mistake in the correction image in a conversational manner. When the operator designates the correction stop instead of the reconversion from the keyboard 9a (NO in S40), the language conversion unit 12 stops the language conversion of the correction image and cancels the correction for the correction control unit 11. Is notified (S41).

【0035】さて、言語変換手段12に言語変換を要求
してその結果を待っていた修正制御手段11は、言語変
換手段12から修正中止の通知を受けたときは(図5の
S13でYES)、当該修正イメージによる修正を中止
し、次の修正イメージによる修正へ進む。他方、言語変
換手段12から言語変換された修正イメージを受けたと
きは(S13でNO)、この言語変換後の修正イメージ
とその適用箇所とを通知して修正手段13に修正を要求
する(S14)。従って、図3の修正イメージ63の場
合、図8に示したような修正イメージと図3の修正箇所
の情報とが修正手段13に通知されて修正が要求され
る。
The correction control means 11 which has requested the language conversion means 12 to perform the language conversion and is waiting for the result, receives the notification of the correction cancellation from the language conversion means 12 (YES in S13 of FIG. 5). , The correction by the correction image is stopped, and the process proceeds to the correction by the next correction image. On the other hand, when the language-converted correction image is received from the language conversion means 12 (NO in S13), the correction image after the language conversion and its application portion are notified and the correction means 13 is requested to correct (S14). ). Therefore, in the case of the correction image 63 in FIG. 3, the correction means 13 is notified of the correction image as shown in FIG. 8 and the information on the correction portion in FIG. 3, and the correction is requested.

【0036】修正手段13は、図9に示すように、先
ず、作業域3に展開されている修正対象の原始プログラ
ムから、修正箇所の情報が示す行番号0130〜020
0の箇所を検索して修正前のイメージを内部に保持し
(S51)、次に作業域3上の上記検索した箇所を言語
変換後の図8に示した修正イメージで更新する(S5
2)。これにより、COBOL74で記述された修正イ
メージ63がCOBOL/Sに言語変換されて、修正箇
所に適用されたことになる。そして、修正手段13は、
内部に保持していた修正前のイメージと修正後のイメー
ジとを修正制御手段11に通知し(S53)、処理を終
了する。
As shown in FIG. 9, the correction means 13 first reads line numbers 0130 to 020 indicated by the information of the correction point from the source program to be corrected developed in the work area 3.
0 is searched and the image before correction is held inside (S51), and then the searched part on the work area 3 is updated with the corrected image shown in FIG. 8 after language conversion (S5).
2). As a result, the modified image 63 described in COBOL74 is language-converted into COBOL / S and applied to the modified part. And the correction means 13
The pre-correction image and the post-correction image held inside are notified to the correction control means 11 (S53), and the processing is ended.

【0037】修正制御手段11は修正手段13による修
正が終了すると、修正手段13から通知された修正前の
イメージと修正後のイメージとを修正履歴作成手段14
に通知し、修正履歴作成手段14はこの通知された修正
前のイメージと修正後のイメージとを1つの修正箇所に
かかる修正履歴として作業域3に展開されている修正履
歴に追加する(S15)。これにより、前述した修正イ
メージ63による修正が行われた場合、作業域3の修正
履歴は図6(c)に示すようになる。ここで、修正
(1)の修正前イメージには図2の原始プログラムの行
番号0130〜0200の部分が設定され、修正後イメ
ージには図8の言語変換後の修正イメージが設定され
る。
When the correction control means 11 finishes the correction by the correction means 13, the correction history generation means 14 sets the image before correction and the image after correction notified from the correction means 13.
And the correction history creating means 14 adds the notified image before correction and image after correction to the correction history developed in the work area 3 as the correction history for one correction point (S15). . As a result, when the above-described correction image 63 is used for correction, the correction history of the work area 3 becomes as shown in FIG. 6C. Here, the part of line numbers 0130 to 0200 of the source program of FIG. 2 is set in the before-correction image of the correction (1), and the corrected image after language conversion of FIG. 8 is set in the after-correction image.

【0038】修正制御手段11は、1番目の修正イメー
ジ63の処理を終えると、次の修正イメージを修正情報
記憶手段6から入力し(S16)、次の修正イメージが
あれば(S17でNO)、ステップS12に戻ってその
修正イメージに基づいて先の修正イメージ63と同様の
動作を繰り返し、次の修正イメージがなければ(S17
でYES)、作業域3に存在する修正済の原始プログラ
ムを出力して原始プログラム記憶手段5中の元のバージ
ョン0の原始プログラムを修正後のバージョン1の原始
プログラムとして置き換える(S18)。そして最後
に、作業域3に存在する修正履歴を修正履歴記憶手段8
に出力して元の修正履歴と置き換え(S19)、今回の
プログラム修正処理を終了する。
When the correction control means 11 finishes the processing of the first correction image 63, the next correction image is input from the correction information storage means 6 (S16), and if there is a next correction image (NO in S17). Then, the procedure returns to step S12, and the same operation as the previous correction image 63 is repeated based on the correction image. If there is no next correction image (S17).
YES), the modified source program existing in the work area 3 is output to replace the original version 0 source program in the source program storage means 5 with the modified version 1 source program (S18). Finally, the correction history existing in the work area 3 is stored in the correction history storage means 8
And the original correction history is replaced (S19), and the current program correction processing is terminated.

【0039】以上は、修正記述言語が原始プログラムの
言語と相違する場合の動作であり、言語が同一の場合
は、前述したように修正制御手段11は、図5のステッ
プS4からステップS5へ進む。このステップS5で
は、1番目の修正イメージを修正情報記憶手段6から入
力し、修正イメージと修正箇所の情報とを修正手段13
に通知して原始プログラムの修正を行わせ(S6)、修
正前のイメージと修正後のイメージとを修正履歴作成手
段14に通知して履歴の作成を行わせる(S7)。そし
て、次の修正イメージを入力し(S8)、次の修正イメ
ージがあれば(S9でNO)、ステップS6に戻って上
述した処理を繰り返し、なければステップS18,S1
9の処理を行って、今回のプログラム修正処理を終了す
る。
The above is the operation when the modification description language is different from the language of the source program. When the languages are the same, the modification control means 11 proceeds from step S4 to step S5 of FIG. 5 as described above. . In this step S5, the first correction image is input from the correction information storage means 6, and the correction image and the information on the correction location are input to the correction means 13.
To the revision history creating means 14 to let the revision history creating means 14 create the history (S7). Then, the next correction image is input (S8), and if there is a next correction image (NO in S9), the process returns to step S6 to repeat the above-described processing, and if not, steps S18 and S1.
The process of 9 is performed and the program correction process of this time is ended.

【0040】次に、図3に示した修正情報で修正されて
原始プログラム記憶装置5に記憶されているバージョン
1の原始プログラムを、元のバージョン0の原始プログ
ラムに復元する場合を例にして、原始プログラムの復元
時の動作を説明する。なお、この場合、修正履歴記憶手
段8には図6(c)に示すような修正履歴が記憶されて
いるものとする。
Next, as an example, a version 1 source program modified by the modification information shown in FIG. 3 and stored in the source program storage device 5 is restored to the original version 0 source program. The operation of restoring the source program will be described. In this case, it is assumed that the correction history storage unit 8 stores the correction history as shown in FIG.

【0041】作業者が利用者端末9のキーボード9aか
ら、修正対象とする原始プログラム名Aおよび復元した
いバージョン0を指定して復元の開始を指示すると、処
理装置4のプログラム復元部2における復元制御手段2
1が動作を開始する。
When the operator designates the source program name A to be corrected and the version 0 to be restored from the keyboard 9a of the user terminal 9 and gives an instruction to start the restoration, the restoration control in the program restoration unit 2 of the processing device 4 is performed. Means 2
1 starts operation.

【0042】復元制御手段21は、図10のフローチャ
ートに示すように、先ず、原始プログラム名Aをキーに
して修正履歴記憶手段8から図6(c)に示した修正履
歴を検索して作業域3に展開する(S61)。次に、原
始プログラム5から原始プログラム名Aの原始プログラ
ムを検索して作業域3に展開する(S62)。この展開
された原始プログラムはバージョン1のものである。そ
して、復元手段22による復元を行わせる(S63)。
As shown in the flow chart of FIG. 10, the restoration control means 21 first retrieves the correction history shown in FIG. 6 (c) from the correction history storage means 8 using the source program name A as a key to search the work area. 3 (S61). Next, the source program having the source program name A is retrieved from the source program 5 and expanded in the work area 3 (S62). This expanded source program is version 1. Then, the restoration is performed by the restoration means 22 (S63).

【0043】図11は復元手段22の処理例を示すフロ
ーチャートである。先ず復元手段22は、作業域3に展
開された原始プログラムのバージョン1から、指定され
た復元対象のバージョン0を引いた値「1」を変数Nに
代入し(S71)、変数N=1とする。そして、変数N
の値が正か負かを判別し(S72)、今の場合、正なの
でステップS73〜S80の処理を実行する。
FIG. 11 is a flow chart showing a processing example of the restoring means 22. First, the restoration means 22 substitutes a value "1" obtained by subtracting the specified restoration target version 0 from the version 1 of the source program expanded in the work area 3 into the variable N (S71), and sets the variable N = 1. To do. And the variable N
It is determined whether the value of is positive or negative (S72). In this case, since it is positive, the processes of steps S73 to S80 are executed.

【0044】先ず、変数iを0に初期化し(S73)、
作業域3に展開された図6(c)の修正履歴における、
原始プログラムのバージョン1−iのバージョン、つま
りバージョン1の修正履歴に注目する(S74)。そし
て、このバージョン1の修正履歴における1番目の修正
箇所に注目する(S75)。
First, the variable i is initialized to 0 (S73),
In the correction history of FIG. 6C expanded in the work area 3,
Attention is paid to the version 1-i version of the source program, that is, the revision history of version 1 (S74). Then, pay attention to the first correction location in the version 1 correction history (S75).

【0045】図6(c)の1番目の修正箇所の修正前イ
メージには前述したように図2の行番号0130〜02
00のイメージが設定されており、修正後イメージには
図3の行番号0130〜0170のイメージが設定され
ている。そこで、復元手段3は、作業域3に展開されて
いるバージョン1の原始プログラムにおける修正後のイ
メージである行番号0130〜0170の箇所を、修正
前のイメージである行番号0130〜0200のイメー
ジに変更する(S76)。これにより、当該修正箇所が
バージョン0の状態に復元される。
As described above, the line numbers 0130 to 02 in FIG. 2 are added to the image before correction of the first correction point in FIG. 6C.
The image of 00 is set, and the images of line numbers 0130 to 0170 of FIG. 3 are set as the corrected image. Therefore, the restoration unit 3 replaces the positions of the line numbers 0130 to 0170, which are the images after correction, in the source program of version 1 expanded in the work area 3, with the images of the line numbers 0130 to 0200, which is the image before correction. Change (S76). As a result, the corrected portion is restored to the version 0 state.

【0046】次に復元手段22は、作業域3におけるバ
ージョン1の修正履歴の次の修正箇所に注目し(S7
7)、次の修正箇所があれば(S78でNO)、ステッ
プS76に戻って上述した処理を繰り返し、次の修正箇
所がなければ(S78でYES)、変数iを+1して、
iがNと等しくなったか否かを判別する(S79,S8
0)。今の場合、iを+1すると1であり、Nは1なの
で、i=Nとなり、ステップS80の結果はYESとな
るので、復元手段22はプログラム復元処理を終了す
る。
Next, the restoration means 22 pays attention to the next correction location of the revision history of version 1 in the work area 3 (S7).
7) If there is a next correction point (NO in S78), return to step S76 and repeat the above-described processing. If there is no next correction point (YES in S78), increment the variable i by 1,
It is determined whether i has become equal to N (S79, S8).
0). In this case, if i is incremented by 1, it is 1 and N is 1. Therefore, i = N and the result of step S80 is YES. Therefore, the restoration unit 22 ends the program restoration process.

【0047】他方、i=Nでなければ、ステップS74
に戻って上述した処理を繰り返す。このような場合が生
じるのは、原始プログラム記憶手段5に記憶された原始
プログラムのバージョンが例えば2であり、復元したい
バージョンが例えば0の場合等、バージョンの差が2以
上の場合に生じる。
On the other hand, if i = N is not satisfied, step S74.
Then, the process described above is repeated. Such a case occurs when the version of the source program stored in the source program storage unit 5 is 2, and the version to be restored is 0, for example, and the difference between the versions is 2 or more.

【0048】さて、復元手段22を起動した復元制御手
段21は、復元手段22の処理が終了すると、作業域3
に存在する復元済の原始プログラムを原始プログラム記
憶手段5に出力して、元のバージョン1の原始プログラ
ムを復元後のバージョン0の原始プログラムとして置き
換える(S64)。これで、バージョン0の原始プログ
ラムが復元できたことになる。
Now, the restoration control means 21 which has started the restoration means 22, when the processing of the restoration means 22 is completed, is made into the work area 3
The restored source program existing in the above is output to the source program storage means 5 to replace the original version 1 source program with the restored version 0 source program (S64). This completes the restoration of the version 0 source program.

【0049】以上は、バージョン番号の大きな原始プロ
グラムからバージョン番号の小さな原始プログラムを復
元する場合の動作であるが、一旦復元した原始プログラ
ムを再度元の状態に復元したい場合もあるので、本実施
例ではそのような逆の復元も可能にしている。例えば、
上述したようにして原始プログラム記憶手段5に記憶さ
れていたバージョン1の原始プログラムをバージョン0
の原始プログラムに復元した後、再びバージョン1の原
始プログラムに復元する場合、作業者はキーボード9a
から、修正対象とする原始プログラム名Aおよび復元し
たいバージョン1を指定して復元の開始を指示すると、
処理装置4のプログラム復元部2における復元制御手段
21が動作を開始する。
The above is the operation for restoring a source program having a small version number from a source program having a large version number. However, there is a case where the source program once restored may be restored to its original state. Then, the reverse restoration is also possible. For example,
The source program of version 1 stored in the source program storage means 5 as described above is converted to version 0.
When restoring to the original program of version 1 again after restoring to the original program of
Then, when you specify the source program name A to be modified and the version 1 you want to restore and instruct to start the restoration,
The restoration control means 21 in the program restoration unit 2 of the processing device 4 starts operation.

【0050】復元制御手段21は、図10のフローチャ
ートに示すように、前述と同様に、修正履歴記憶手段8
から図6(c)に示した修正履歴を検索して作業域3に
展開し(S61)、次に、原始プログラム記憶手段5か
ら原始プログラム名Aの原始プログラムを検索して作業
域3に展開する(S62)。この展開された原始プログ
ラムはバージョン0のものである。そして、復元手段2
2による復元を行わせる(S63)。
As shown in the flowchart of FIG. 10, the restoration control means 21 has the correction history storage means 8 in the same manner as described above.
6C, the correction history shown in FIG. 6C is searched and expanded in the work area 3 (S61), and then the source program having the source program name A is searched from the source program storage means 5 and expanded in the work area 3. (S62). This expanded source program is of version 0. And the restoration means 2
The restoration by 2 is performed (S63).

【0051】復元手段22は、作業域3に展開された原
始プログラムのバージョン0から、指定された復元対象
のバージョン1を引いた値「−1」を変数Nに代入し
(S71)、変数N=−1とする。そして、変数Nの値
が正か負かを判別し(S72)、今の場合、負なのでス
テップS81〜S88の処理を実行する。
The restoring means 22 substitutes a value "-1" obtained by subtracting the specified version 1 to be restored from the version 0 of the source program expanded in the work area 3 into the variable N (S71). = -1. Then, it is determined whether the value of the variable N is positive or negative (S72), and since it is negative in this case, the processes of steps S81 to S88 are executed.

【0052】先ず、変数iを1に初期化し(S81)、
作業域3に展開された図6(c)の修正履歴における、
原始プログラムのバージョン0+iのバージョン、つま
りバージョン1の修正履歴に注目する(S82)。そし
て、このバージョン1の修正履歴における1番目の修正
箇所に注目する(S83)。
First, the variable i is initialized to 1 (S81),
In the correction history of FIG. 6C expanded in the work area 3,
Attention is paid to the version 0 + i version of the source program, that is, the revision history of version 1 (S82). Then, pay attention to the first correction location in the revision history of this version 1 (S83).

【0053】図6(c)の1番目の修正箇所の修正前イ
メージには前述したように図2の行番号0130〜02
00のイメージが設定されており、修正後イメージには
図3の行番号0130〜0170のイメージが設定され
ている。そこで、復元手段22は、作業域3に展開され
ているバージョン0の原始プログラムにおける修正前の
イメージである行番号0130〜0200を、修正後の
イメージである行番号0130〜0170に変更する
(S84)。これにより、当該修正箇所がバージョン1
の状態に復元される。
As described above, the line numbers 0130 to 02 in FIG. 2 are added to the image before correction of the first correction point in FIG. 6C.
The image of 00 is set, and the images of line numbers 0130 to 0170 of FIG. 3 are set as the corrected image. Therefore, the restoration unit 22 changes the line numbers 0130 to 0200, which is the image before correction, in the source program of version 0 expanded in the work area 3 to the line numbers 0130 to 0170, which is the image after correction (S84). ). As a result, the modified part is version 1
Is restored to its original state.

【0054】次に復元手段22は、作業域3におけるバ
ージョン1の修正履歴の次の修正箇所に注目し(S8
5)、次の修正箇所があれば(S86でNO)、ステッ
プS84に戻って上述した処理を繰り返し、次の修正箇
所がなければ(S86でYES)、変数iを+して、i
がNの絶対値より大きくなったか否かを判別する(S8
7,S88)。今の場合、iを+1すると2であり、N
の絶対値は1なので、i>Nの絶対値となり、ステップ
S88の結果はYESとなるので、復元手段22はプロ
グラム復元処理を終了する。
Next, the restoration means 22 pays attention to the next correction portion of the version 1 correction history in the work area 3 (S8).
5) If there is a next correction point (NO in S86), return to step S84 and repeat the above-described processing. If there is no next correction point (YES in S86), increment the variable i to i.
Is determined to be greater than the absolute value of N (S8).
7, S88). In this case, if i is incremented by 1, the result is 2.
Since the absolute value of is 1, the absolute value of i> N, and the result of step S88 is YES, so that the restoring unit 22 ends the program restoring process.

【0055】他方、i>Nの絶対値でなければ、ステッ
プS82に戻って上述した処理を繰り返す。このような
場合が生じるのは、原始プログラム記憶手段5に記憶さ
れた原始プログラムのバージョンが例えば0であり、復
元したいバージョンが例えば2の場合等、バージョンの
差が2以上の場合に生じる。
On the other hand, if i> N is not an absolute value, the process returns to step S82 and the above-described processing is repeated. Such a case occurs when the version of the source program stored in the source program storage means 5 is 0 and the version to be restored is 2, for example, and when the difference between the versions is 2 or more.

【0056】以上本発明の実施例について説明したが、
本発明は以上の実施例にのみ限定されず、その他各種の
付加変更が可能である。例えば、修正情報は磁気ディス
ク装置等の修正情報記憶手段6からプログラム修正部1
に入力するようにしたが、キーボード等の他の入力手段
からプログラム修正部1に入力するようにしても良い。
The embodiment of the present invention has been described above.
The present invention is not limited to the above embodiments, and various other additions and changes can be made. For example, the correction information is stored in the program correction unit 1 from the correction information storage means 6 such as a magnetic disk device.
However, it is also possible to input to the program correction section 1 from another input means such as a keyboard.

【0057】[0057]

【発明の効果】以上説明したように本発明の原始プログ
ラム修正装置によれば、以下のような効果を得ることが
できる。
As described above, according to the source program modifying device of the present invention, the following effects can be obtained.

【0058】原始プログラムの修正をその記述言語と異
なる他の言語で記述された修正イメージを使用して実施
でき、然も、言語変換作業を別作業として実施する必要
がなく、更に、修正箇所の修正前後のイメージを修正履
歴として自動的に保存するために修正前の原始プログラ
ムが存在しなくても修正後の原始プログラムから元の原
始プログラムを復元することができる。
The modification of the source program can be carried out by using a modification image described in another language different from the description language, and it is not necessary to carry out the language conversion work as a separate work. Since the images before and after the modification are automatically saved as the modification history, the original program can be restored from the modified source program even if the unmodified source program does not exist.

【0059】プログラム修正部は、言語変換が行えなか
った修正イメージを表示装置に表示して指示を促し、表
示された修正イメージが修正された後に再変換が指示さ
れることにより、修正後の修正イメージに対して言語変
換を実行するようにしたので、修正イメージ中の単純な
ミスを対話的に修正して原始プログラムの修正作業を続
行することができる。
The program correction section displays a correction image which could not be converted into a language on the display device to prompt an instruction, and after the displayed correction image is corrected, an instruction for re-conversion is made. Since the language conversion is performed on the image, it is possible to interactively correct a simple mistake in the corrected image and continue the correction work of the source program.

【0060】修正履歴記憶手段に保存された修正履歴を
入力して原始プログラム記憶手段中の原始プログラムを
修正前の状態に復元するプログラム復元部を備えている
ので、修正前の原始プログラムの復元を自動的に行うこ
とができる。
Since the correction history stored in the correction history storage means is input to restore the source program in the source program storage means to the state before the correction, a program restoring section is provided. It can be done automatically.

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

【図1】本発明の原始プログラム修正装置の一実施例の
ブロック図である。
FIG. 1 is a block diagram of an embodiment of a source program modifying device of the present invention.

【図2】修正対象となる原始プログラムの一例を示す図
である。
FIG. 2 is a diagram showing an example of a source program to be modified.

【図3】修正イメージを含む修正情報の一例を示す図で
ある。
FIG. 3 is a diagram showing an example of correction information including a correction image.

【図4】言語変換ルール記憶手段の内容例を示す図であ
る。
FIG. 4 is a diagram showing an example of contents of a language conversion rule storage unit.

【図5】修正制御手段の処理例を示すフローチャートで
ある。
FIG. 5 is a flowchart showing a processing example of a correction control means.

【図6】修正履歴情報の説明図である。FIG. 6 is an explanatory diagram of correction history information.

【図7】言語変換手段の処理例を示すフローチャートで
ある。
FIG. 7 is a flowchart showing a processing example of a language conversion unit.

【図8】言語変換された修正イメージの例を示す図であ
る。
FIG. 8 is a diagram showing an example of a language-converted modified image.

【図9】修正手段の処理例を示すフローチャートであ
る。
FIG. 9 is a flowchart showing a processing example of a correction unit.

【図10】復元制御手段の処理例を示すフローチャート
である。
FIG. 10 is a flowchart showing a processing example of the restoration control means.

【図11】復元手段の処理例を示すフローチャートであ
る。
FIG. 11 is a flowchart showing a processing example of a restoring unit.

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

1…プログラム修正部 11…修正制御手段 12…言語変換手段 13…修正手段 14…修正履歴作成手段 2…プログラム復元部 21…復元制御手段 22…復元手段 3…作業域 4…処理装置 5…原始プログラム記憶手段 6…修正情報記憶手段 7−1〜7−n…変換ルール記憶手段 8…修正履歴記憶手段 9…利用者端末 9a…キーボード 9b…CRT DESCRIPTION OF SYMBOLS 1 ... Program correction part 11 ... Correction control means 12 ... Language conversion means 13 ... Correction means 14 ... Correction history creation means 2 ... Program restoration part 21 ... Restoration control means 22 ... Restoration means 3 ... Work area 4 ... Processing device 5 ... Primitive Program storage means 6 ... Correction information storage means 7-1 to 7-n ... Conversion rule storage means 8 ... Correction history storage means 9 ... User terminal 9a ... Keyboard 9b ... CRT

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 修正対象となる原始プログラムを格納す
る原始プログラム記憶手段と、 それぞれ異なる修正記述言語毎に、その修正記述言語で
記述された修正イメージを前記原始プログラムの記述言
語に変換するルールを記憶する変換ルール記憶手段と、 修正履歴を保存する修正履歴記憶手段と、 前記原始プログラムの修正箇所の指定と該修正箇所へ適
用すべき修正イメージと該修正イメージの記述に使用さ
れた修正記述言語の指定とを含む修正情報を入力して、
その修正イメージを、その記述に使用された修正記述言
語に対応する変換ルール記憶手段中のルールを用いて前
記原始プログラムの記述言語に変換し、該変換後の修正
イメージで前記原始プログラムの指定された修正箇所を
修正すると共に、修正箇所の修正前後のイメージを前記
修正履歴記憶手段に出力するプログラム修正部とを備え
ることを特徴とする原始プログラム修正装置。
1. A source program storage means for storing a source program to be modified, and a rule for converting a modified image described in the modified description language into a description language of the source program for each different modified description language. Conversion rule storage means for storing, correction history storage means for storing a correction history, specification of a correction point of the source program, a correction image to be applied to the correction point, and a correction description language used for description of the correction image Enter the correction information including the designation of
The modified image is converted into the description language of the source program by using a rule in the conversion rule storage unit corresponding to the modified description language used for the description, and the source program is designated by the converted modified image. And a program correction section for correcting the correction points and outputting images before and after the correction points to the correction history storage means.
【請求項2】 前記プログラム修正部は、前記ルールに
よって言語変換が行えなかった修正イメージを表示装置
に表示して指示を促し、表示された修正イメージが修正
された後に再変換が指示されることにより、修正後の修
正イメージに対して言語変換を実行する構成を有するこ
とを特徴とする請求項1記載の原始プログラム修正装
置。
2. The program correction unit displays a correction image, which has not been language-converted according to the rule, on a display device to prompt an instruction, and after the displayed correction image is corrected, an instruction for re-conversion is given. 3. The source program modifying device according to claim 1, further comprising a structure for performing language conversion on the modified image after modification.
【請求項3】 前記修正履歴記憶手段に保存された修正
履歴を入力し、前記原始プログラム記憶手段中の原始プ
ログラムを修正前の状態に復元するプログラム復元部を
備えることを特徴とする請求項2記載の原始プログラム
修正装置。
3. A program restoration unit for inputting the revision history stored in the revision history storage means and restoring the original program in the original program storage means to the state before the revision. The described primitive program correction device.
JP6076677A 1994-03-23 1994-03-23 Source program modification device Expired - Fee Related JP2940394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6076677A JP2940394B2 (en) 1994-03-23 1994-03-23 Source program modification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6076677A JP2940394B2 (en) 1994-03-23 1994-03-23 Source program modification device

Publications (2)

Publication Number Publication Date
JPH07261995A true JPH07261995A (en) 1995-10-13
JP2940394B2 JP2940394B2 (en) 1999-08-25

Family

ID=13612069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6076677A Expired - Fee Related JP2940394B2 (en) 1994-03-23 1994-03-23 Source program modification device

Country Status (1)

Country Link
JP (1) JP2940394B2 (en)

Also Published As

Publication number Publication date
JP2940394B2 (en) 1999-08-25

Similar Documents

Publication Publication Date Title
JP4313422B2 (en) Method and apparatus for presenting alternatives for selection using adaptive learning
US4455619A (en) Interactive equipment for computer programming by linkage of labeled block representations of arithmetic/logical subprograms
US4949253A (en) Method and apparatus for automatically generating program
KR101038395B1 (en) Active content wizard: execution of tasks and structured content
AU648253B2 (en) Document generation apparatus and methods
JPH07311677A (en) Operation processor
JPH07261995A (en) Source program correction device
JP2000353083A (en) Demand specification description support device, method therefor and recording medium
JPH0728827A (en) Drawing explanatory sentence generator
JP3174886B2 (en) Morphological analysis cost creation support device
JP2616451B2 (en) Data check device
JPH042961B2 (en)
JP2601533B2 (en) Data processing device
JPS6289137A (en) Program dialog system
JPH0954688A (en) Gui design supporting method
JPH0581005A (en) Program converter
JP3007248B2 (en) Programming device
JPH0581316A (en) Method and device extracting semantics of natural language sentence
JPH06214789A (en) Device for supporting fuzzy rule development
JPH04263318A (en) General-purpose software generator
JP3259181B2 (en) Program editing device
JPH07175791A (en) Document converter
JPH0315779B2 (en)
JPH0546509A (en) Communication circuit defining system
JPH07121528A (en) Document preparing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees