JPH11353162A - Program correction result comparing method - Google Patents

Program correction result comparing method

Info

Publication number
JPH11353162A
JPH11353162A JP15558198A JP15558198A JPH11353162A JP H11353162 A JPH11353162 A JP H11353162A JP 15558198 A JP15558198 A JP 15558198A JP 15558198 A JP15558198 A JP 15558198A JP H11353162 A JPH11353162 A JP H11353162A
Authority
JP
Japan
Prior art keywords
correction
program
syntax
result
corrected
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
JP15558198A
Other languages
Japanese (ja)
Inventor
Koichi Hatogai
浩一 鳩貝
Yutaka Wada
和田  裕
Fumiyoshi Suzuki
史芳 鈴木
Hisatoshi Kobayashi
久敏 小林
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP15558198A priority Critical patent/JPH11353162A/en
Publication of JPH11353162A publication Critical patent/JPH11353162A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily judge whether or not corrected contents are correct and to easily perform secure correcting operation by registering the contents of the correcting operation in advance and displaying a difference result the contents before and after the correction according to the registered correction contents after a program is corrected. SOLUTION: An arithmetic processor 105 previously defines correction contents before the program is corrected. Then definitions of correction contents inputted from a user are inputted. In response to the user's indications, a comparison result and a place of correction content discrepancy are displayed on a display device 101 to make an inquiry about whether or not the program has been corrected correctly. After the user defines the correction contents, the program is actually corrected. After the correcting operation, the programs before and after the correcting operation are compared this time and the user is inquired of on the display device 101 about whether or not the correcting operation is done correctly. According to a user's answer, it is determined whether or not the corrections are actually reflected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ソフトウェア修正
後に正しく修正が行われたか否かの確認を修正以前に定
義した修正内容と照合し、ユーザに修正箇所の正否の問
い合わせを対話的に行う方法及びそれに基づくソフトウ
ェア開発支援ツールのプログラム修正結果比較方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for interactively inquiring a user as to whether or not a correction has been made correctly after checking the correctness of the correction with software. And a method for comparing program modification results of a software development support tool based thereon.

【0002】[0002]

【従来の技術】従来のテキスト編集ツールをベースとし
たソフトウェア開発作業では、プログラムやデータの一
部を文字列としてキーボードから入力し、全体のソフト
ウェアを構築する手法が採用されている。この場合、文
字列を入力するツールとしては、いわゆるエディタと呼
ばれる、テキスト編集機能を備えたものが多い。このよ
うなエディタを用いてプログラムを開発する際には、ソ
フトウェアの機能仕様が詳細に決定されるに伴い、プロ
グラムの修正,拡張を逐次行うような作業形態となるこ
とが多い。そして、テキストエディタ機能を用いたプロ
グラムの開発及び修正作業後の修正内容の確認作業で
は、修正の前後でプログラムやデータの照合を行うこと
により修正作業の妥当性を判定し、ソフトウェア開発作
業上の管理情報として記録することになる。修正結果の
確認方法としては、修正前後のプログラムのテキストフ
ァイルを一行毎に比較照合し、行の文字列が一致しない
箇所を探して修正箇所を検出していた。
2. Description of the Related Art In a conventional software development work based on a text editing tool, a method of inputting a part of a program or data as a character string from a keyboard and constructing the entire software is employed. In this case, many tools for inputting a character string have a text editing function, which is a so-called editor. When a program is developed using such an editor, a work form in which the program is corrected and expanded in a sequential manner is often used as the functional specifications of the software are determined in detail. In the development of the program using the text editor function and the confirmation of the modification contents after the modification work, the validity of the modification work is determined by comparing the program and data before and after the modification, and the software development work is performed. It will be recorded as management information. As a method of checking the correction result, the text file of the program before and after the correction was compared and collated line by line, and a correction portion was detected by searching for a portion where the character strings of the lines did not match.

【0003】しかし、この方法では、プログラムの修正
処理が機能仕様の変更と分かれており、修正内容が機能
仕様の変更点と対応しているかどうかについては分から
なかった。そこで、特開平8−115210 号公報に記載のよ
うに、仕様書とプログラムの対応関係を管理し、仕様書
に変更が加わった場合には、プログラムの対応する箇所
を表示する技術が開示されている。
However, in this method, the process of correcting the program is separated from the change of the functional specification, and it is not known whether the corrected content corresponds to the change of the functional specification. Therefore, as disclosed in Japanese Patent Application Laid-Open No. 8-115210, a technique for managing the correspondence between a specification and a program and displaying a corresponding portion of the program when the specification is changed has been disclosed. I have.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記従来技術
では、仕様の変更に伴うプログラムの変更箇所は分かる
ものの、プログラムの修正処理が仕様の変更に対応して
いるかどうかは確認できなかった。また、プログラム全
体にわたり、ある一つの方針に基づいての修正が必要に
なった場合、修正結果の妥当性を確認するためには、一
行毎の照合結果と修正前後のプログラム全体とを調べる
必要があった。
However, according to the above-mentioned prior art, although the changed portion of the program due to the change of the specification is known, it cannot be confirmed whether or not the process of correcting the program corresponds to the change of the specification. Also, if it is necessary to make corrections based on a certain policy throughout the program, it is necessary to examine the collation results of each line and the entire program before and after the correction in order to confirm the validity of the correction results. there were.

【0005】本発明の目的は、修正作業の事後にその修
正結果の確認を確実なものとするため、修正内容をプロ
グラムの構文と対応させて指示する表現形式で定義し、
この定義と実際の修正内容を比較し、更に比較した結
果、修正が正しいかの判断をユーザに促す機能を備えた
ソフトウェア開発ツールを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to define a correction content in an expression format instructing the content of the correction in correspondence with the program syntax in order to ensure confirmation of the correction result after the correction work.
It is an object of the present invention to provide a software development tool having a function of comparing this definition with the actual contents of correction and further prompting a user to determine whether the correction is correct as a result of the comparison.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明によるソフトウェア開発ツールでは、プログ
ラムの構文情報と修正前後の構文パターンにより変更作
業を定義し、修正作業前と後のプログラムを構文解析
し、予め定義された変更作業の修正前の構文パターンと
修正作業前のプログラムの構文解析結果を比較して、比
較結果が一致する箇所に相当する修正作業後のプログラ
ムの構文解析結果が、予め定義された変更作業の修正後
の構文パターンと一致するか調べ、修正後の構文パター
ンとの比較結果を元にユーザに修正作業の確認を促す。
In order to achieve the above object, in a software development tool according to the present invention, a change operation is defined by syntax information of a program and a syntax pattern before and after correction, and a program before and after the correction operation is defined. Analyzes the syntax, compares the pre-correction syntax pattern of the pre-defined modification work with the pre-correction program syntax analysis result, and obtains the post-correction program syntax analysis result corresponding to the location where the comparison result matches. Then, it checks whether or not the pre-defined modification work matches the modified syntax pattern, and prompts the user to confirm the modification work based on the comparison result with the modified syntax pattern.

【0007】[0007]

【発明の実施の形態】以下、本発明の一実施例であるプ
ログラム編集システムを以下に説明する。本実施例で
は、特に、ソフトウェア開発者がグラフィック画面とマ
ウス等のポインティングデバイスを備えた装置を用い、
対話的にプログラムを開発する際に、設計仕様を反映し
開発の途上にあるソフトウェアを修正する作業に本発明
を用いた場合の構成及び動作を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a program editing system according to one embodiment of the present invention will be described. In this embodiment, in particular, the software developer uses an apparatus having a graphic screen and a pointing device such as a mouse,
A configuration and operation when the present invention is used in an operation of modifying software under development while reflecting design specifications when interactively developing a program will be described.

【0008】図1は、本発明によるプログラム修正結果
比較機能を実現したプログラム編集システムの構成を示
したものである。演算処理装置105は、修正定義情報
解析部105b,入力部105c,画像データ出力部1
05d,開発プログラム入出力部105f,修正定義情
報DB入出力部105h,修正結果解析部105iより
構成されている。画像データ記憶装置103は、演算処
理装置105の画像データ出力部105dから出力され
た画像データ、即ちプログラムの表示内容である文字デ
ータ,修正定義情報解析部105b及び修正結果解析部
105iの処理結果に基づくメニュー表示、並びにプロ
グラムの修正を比較した結果である文字データを記憶す
る。画像表示制御装置102は、表示する文字データ及
びメニューデータを画像データ記憶装置103から読み
込み、ディスプレイ装置101に文字や画像を映像とし
て表示する。
FIG. 1 shows a configuration of a program editing system which realizes a program correction result comparison function according to the present invention. The arithmetic processing unit 105 includes a correction definition information analysis unit 105b, an input unit 105c, and an image data output unit 1.
05d, a development program input / output unit 105f, a modification definition information DB input / output unit 105h, and a modification result analysis unit 105i. The image data storage device 103 stores the image data output from the image data output unit 105d of the arithmetic processing unit 105, that is, the character data as the display contents of the program, the processing results of the correction definition information analysis unit 105b, and the correction result analysis unit 105i. Based on the menu display, and character data as a result of comparing the program modifications. The image display control device 102 reads character data and menu data to be displayed from the image data storage device 103, and displays characters and images on the display device 101 as images.

【0009】演算処理装置105では、入力部105c
によってマウス,キーボード等の入力装置104からの
キー入力あるいはポインティング入力を受け付ける。最
初にソフトウェア開発者が入力装置104により入力し
た情報に基づき、開発プログラムが編集され、その結果
がディスプレイ装置に文字データとしてリスト表示さ
れ、更に、開発ソフトウェア記憶DB106に格納され
る。次に、このプログラムの修正作業を行う前に、修正
作業の定義を行う。この時、修正定義情報解析部105
bにて定義情報を解析し、修正定義情報DB入出力部1
05hを介して修正定義情報記憶DB107に定義情報
を記憶する。一方、プログラム編集/修正時には、開発
プログラム入出力部105fを介して、開発ソフトウェ
ア記憶DB106にプログラムの編集内容を記憶する。
また、修正結果確認指示を受けて修正結果解析部105
iにて、修正定義情報とプログラム修正内容を比較す
る。以上の処理の過程において発生するウィンドウの表
示及び文字の表示等は画像データ出力部105dを介し
て行われる。
In the arithmetic processing unit 105, an input unit 105c
Receives a key input or a pointing input from the input device 104 such as a mouse or a keyboard. First, the development program is edited based on the information input by the software developer using the input device 104, the results are displayed as a list on the display device as character data, and further stored in the development software storage DB. Next, before the modification work of this program is performed, the modification work is defined. At this time, the modification definition information analysis unit 105
b, the definition information is analyzed, and the modified definition information DB input / output unit 1
The definition information is stored in the modification definition information storage DB 107 via the interface 05h. On the other hand, when the program is edited / modified, the edited contents of the program are stored in the development software storage DB 106 via the development program input / output unit 105f.
Further, upon receiving the correction result confirmation instruction, the correction result analysis unit 105
At i, the modification definition information is compared with the program modification contents. The display of windows, the display of characters, and the like that occur in the course of the above processing are performed via the image data output unit 105d.

【0010】演算処理装置105では、まず、編集シス
テムの編集メニュー機能に同期して、プログラムの修正
以前に修正内容を予め定義するため図2に示すチェック
条件定義ウィンドウを表示する。次に、表示されたチェ
ック条件定義ウィンドウにおいて、ユーザから入力され
る修正内容の定義を取り込む。そして、このユーザの指
示に対応して、比較結果及び修正内容不一致の箇所を図
6に示す修正チェック表示ウィンドウ803に、プログ
ラムの修正処理が正しいか否かの問い合わせをダイアロ
グ形式で表示する。ユーザにより修正内容が定義された
後、実際にプログラムの修正作業が行われる。修正作業
が終了すると、今度は修正前のプログラムと修正作業を
行った結果とを比較処理し、修正チェック表示ウィンド
ウ803によって修正作業の正否をユーザに問う。ここ
でユーザが指示した問い合わせに対する応答に基づいて
修正を実際に反映させるか否かを決定する。
The arithmetic processing unit 105 first displays a check condition definition window shown in FIG. 2 in synchronization with the editing menu function of the editing system in order to define the contents of the correction before the program is corrected. Next, in the displayed check condition definition window, the definition of the correction content input by the user is fetched. Then, in response to the user's instruction, an inquiry as to whether or not the correction processing of the program is correct is displayed in a correction check display window 803 shown in FIG. After the content of the correction is defined by the user, the program is actually corrected. When the correction work is completed, the program before the correction is compared with the result of the correction work, and the correction check display window 803 asks the user whether the correction work is correct or not. Here, it is determined whether or not to actually reflect the correction based on a response to the inquiry designated by the user.

【0011】図2は、プログラムの修正内容を取り込む
ために表示されるチェック条件定義ウィンドウ304に
よって、所望の修正内容を定義する画面の例である。本
実施例の編集システムでは、プログラム編集領域301
にソースプログラムをリスト表示し、このプログラム編
集領域301の中で一般的な修正,追加,削除等といっ
た編集作業を行う。
FIG. 2 is an example of a screen for defining a desired correction content by a check condition definition window 304 displayed to capture the correction content of the program. In the editing system of the present embodiment, the program editing area 301
In the program editing area 301, editing operations such as general correction, addition, and deletion are performed.

【0012】ここで、編集メニュー302の中から、修
正を行うプログラムの構文についての定義を行うため、
メニュー項目の修正構文定義303を指定すると、別ウ
ィンドウとしてチェック条件定義ウィンドウ304が表
示される。チェック条件定義ウィンドウ304内には、
プログラム内から修正する対象を絞り込むための構文情
報と修正パターンを設定するメニューが表示される。こ
れは、修正作業対象となるプログラムの文法上の修正単
位と修正対象の構文要素種別からなる構文情報を指定
し、指定された構文情報と一致するプログラムの構文要
素の中から修正パターンと一致する箇所に対する修正内
容パターンを指定するものである。例えば、プログラム
内のfor 文の終了条件に記述された「i<max」とい
う条件式を「i<max−1」に変更する場合には、ま
ずプログラム編集領域301の中で、マウス等の入力装
置を用いて、構文情報と修正対象のパターンを指定す
る。この時、修正単位としては“登録タイプ”の項目で
「式」を、また構文要素種別としては“種別”の項目で
「for 文−終了条件」を指定し、修正対象のパターンと
して“修正前”の項目から、文字列部分を選択すると、
修正対象となるプログラムの中から指定された構文情報
に対応するプログラム構造を抽出し、所定の文字列が提
示される。この場合、編集領域中で選択した式「i<m
ax」が自動的に修正対象パターンとして修正定義情報
記憶領域に転記されるものとなっている。チェック条件
定義ウィンドウ304では、ユーザによる登録タイプ3
05の選択から順をおって種別306の選択,修正前3
07からの構文の選択といった順に登録の際の構文を限
定していく。この際、修正前307における構文の選択
では、プログラム編集領域301に存在する構文の中か
ら登録タイプ305と種別306の条件を満たした構文
のみが表示されているため、次に、この修正前307で
選択した構文に対してどのような修正を行うかを、修正
パターン入力領域である修正後308の箇所に記述す
る。
Here, in order to define the syntax of the program to be corrected from the edit menu 302,
When the modification syntax definition 303 of the menu item is specified, a check condition definition window 304 is displayed as a separate window. In the check condition definition window 304,
A menu for setting syntax information and a correction pattern for narrowing down the target to be corrected from within the program is displayed. This specifies syntax information that consists of the grammatical modification unit of the program to be modified and the syntax element type to be modified, and matches the modification pattern from the syntax elements of the program that match the specified syntax information. This is to specify a correction content pattern for the location. For example, when the conditional expression “i <max” described in the end condition of the for statement in the program is changed to “i <max−1”, first, input of a mouse or the like is performed in the program editing area 301. Using the device, the syntax information and the pattern to be corrected are specified. At this time, “expression” is specified in the “registration type” item as the correction unit, “for statement−end condition” is specified in the “type” item as the syntax element type, and “before correction” is specified as the pattern to be corrected. If you select the character string from the item "
A program structure corresponding to the specified syntax information is extracted from the program to be corrected, and a predetermined character string is presented. In this case, the expression “i <m” selected in the editing area
“ax” is automatically transferred to the correction definition information storage area as a correction target pattern. In the check condition definition window 304, the registration type 3 by the user
Selection of type 306 in order from selection of 05, before modification 3
The syntax at the time of registration is limited in the order of selecting a syntax from 07. At this time, in the selection of the syntax before the correction 307, only the syntax that satisfies the conditions of the registration type 305 and the type 306 among the syntaxes existing in the program editing area 301 is displayed. The type of correction to be performed on the syntax selected in is described in the corrected pattern input area 308 after correction.

【0013】この図2に示す例においては、修正作業と
して「制御文for の終了条件式に含まれる式“i<
max”を“i<max−1”に変更」が指定されたも
のとなっている。これらの条件及びパターンを指定した
後、実際に修正定義情報記憶DBに定義を登録する際に
は、登録ボタン309をクリックすると、定義内容が保
存され、チェック条件定義ウィンドウ304が閉じ終了
する。また、設定を取り消す場合には、取り消しボタン
310をクリックする。ユーザがチェック条件定義ウィ
ンドウ304で設定したプログラムの修正作業定義は、
修正定義情報記憶DB107に登録されていく。
In the example shown in FIG. 2, as the correction work, the expression “i <included in the end condition expression of the control statement for
"max" is designated as "change to i <max-1". When the definition is actually registered in the modification definition information storage DB after designating these conditions and patterns, clicking the registration button 309 saves the definition contents, closes the check condition definition window 304, and ends. To cancel the setting, the user clicks a cancel button 310. The modification work definition of the program set by the user in the check condition definition window 304 is as follows:
It is registered in the modification definition information storage DB 107.

【0014】図3に、修正定義情報記憶DB107内の
修正定義情報記憶領域の構成を示す。この修正定義情報
記憶領域は、先頭アドレス401を格納する領域とチェ
ック条件定義ウィンドウ304から入力された個々の修
正定義情報を管理するテーブル402から構成される。
チェック条件定義ウィンドウ304でユーザが定義した
情報を管理するテーブル402の情報は、チェック条件
定義ウィンドウ304でユーザが設定する“登録タイ
プ”,“種別”,“修正前”,“修正後”の各項目は、
設定した登録タイプを記憶する領域402b,式の種別
を記憶する領域402c,修正対象内容を記憶する領域
402d,修正後の内容を記憶する領域402eにそれ
ぞれ格納される。各テーブル402は領域402aによ
って次のテーブルにリンクされる。新たに修正構文を登
録した場合には、新たに1定義分の情報を管理する領域
が割り当てられ、先頭アドレスから繋がった1定義分の
情報を管理する領域群の末端に領域402aによって新
規に接続される。
FIG. 3 shows the configuration of the modification definition information storage area in the modification definition information storage DB 107. The correction definition information storage area includes an area for storing the head address 401 and a table 402 for managing individual correction definition information input from the check condition definition window 304.
The information in the table 402 that manages the information defined by the user in the check condition definition window 304 includes the “registration type”, “type”, “before modification”, and “after modification” set by the user in the check condition definition window 304. Items,
The information is stored in an area 402b for storing the set registration type, an area 402c for storing the type of expression, an area 402d for storing the contents to be corrected, and an area 402e for storing the contents after correction. Each table 402 is linked to the next table by an area 402a. When a new correction syntax is registered, a new area for managing information for one definition is allocated, and a new area is connected by the area 402a to the end of the area group for managing information for one definition connected from the start address. Is done.

【0015】修正作業の結果を比較する際に対象となる
のは、ユーザが修正作業を行う以前のファイルと修正後
のファイルである。本実施例では、修正の比較対象は構
文単位であるため、これらの修正前後のファイルは事前
に構文解析を行った後比較処理を行う。また本実施例に
おいては、予め修正定義情報記憶領域に修正作業の定義
情報が記録されているため、この修正定義情報記憶領域
の修正対象内容を記録する領域402dに存在する構文
と修正後の内容を記録する領域402eに存在する構文
を加え4つの構文について比較を行う。
When comparing the result of the correction work, the target file is a file before the user performs the correction work and a file after the correction work. In this embodiment, since the comparison target of the correction is a syntax unit, the files before and after the correction are subjected to the syntax analysis in advance and then subjected to the comparison processing. Further, in this embodiment, since the definition information of the modification work is recorded in the modification definition information storage area in advance, the syntax and the contents after modification exist in the modification definition information storage area in the area 402d for recording the modification target contents. Is compared with the four syntaxes by adding the syntaxes existing in the area 402e for recording.

【0016】これらの4つの構文において、比較すべき
構文は、修正以前のファイルの構文と修正以後のファイ
ルの構文との比較をはじめ、修正以前のファイルの構文
と修正対象内容を記録する領域に存在する構文との比較
及び、修正以後のファイルの構文と修正後の内容を記録
する領域402dに存在する構文の比較についての3種
類である。図4に、修正結果解析部105iにおける比
較処理を示す。
In these four syntaxes, the syntaxes to be compared include the comparison between the syntax of the file before the correction and the syntax of the file after the correction, and the area where the syntax of the file before the correction and the contents to be corrected are recorded. There are three types of comparison with existing syntax and comparison between syntax of a file after correction and syntax existing in an area 402d for recording the content after correction. FIG. 4 shows a comparison process in the correction result analysis unit 105i.

【0017】修正前後の構文単位でのプログラム差分を
検知するには、始めに、修正前後の両プログラムに対し
て構文解析を行う(601)。構文解析によって分解さ
れた全ての構文に対して、修正前と後の比較処理を行
う。解析終了後に修正処理前のプログラムと修正対象内
容を記録する領域402dに存在する構文パターンとを
比較する(602)。修正前のプログラム中の構文と定
義した構文パターンとが一致した場合、次に構文パター
ンと一致した箇所の修正処理前後のファイル内容を、先
に求めた構文解析結果を元に比較する。この比較の結
果、修正前後のファイル内容が一致している時、つま
り、修正処理対象として定義済みの構文であるにもかか
わらず対応するプログラムの修正がなされていない場合
には、「定義された構文が修正されていません」という
メッセージを表示する(604)。一方、正前後のファ
イル内容が不一致である場合には、該当箇所の修正結果
が修正定義情報に修正内容として定義された構文パター
ンと一致するかどうかの比較をする。修正結果と修正定
義情報の修正内容の双方が一致していた場合、つまり、
事前の定義通りに修正がなされているときには、「定義
された条件にあわせて修正済み」のメッセージを表示す
る(606)。しかし、修正結果と修正定義情報の修正
内容の双方のファイルが不一致のときには、「定義され
た条件にない修正をしています」というメッセージを表
示する(607)。
In order to detect a program difference in the syntax unit before and after the correction, first, syntax analysis is performed on both the programs before and after the correction (601). Comparison processing before and after correction is performed on all the syntaxes decomposed by the syntax analysis. After the analysis is completed, the program before the correction processing is compared with the syntax pattern existing in the area 402d for recording the contents to be corrected (602). If the syntax in the program before the correction matches the defined syntax pattern, the file contents before and after the correction processing of the part that matches the syntax pattern are compared based on the previously obtained syntax analysis result. As a result of this comparison, if the file contents before and after the correction match, that is, if the corresponding program has not been modified even though the syntax is already defined as the modification target, The message "The syntax has not been modified" is displayed (604). On the other hand, if the contents of the file before and after the file do not match, a comparison is made as to whether the correction result of the corresponding portion matches the syntax pattern defined as the correction content in the correction definition information. If both the correction result and the correction content of the correction definition information match,
If the correction has been made as defined in advance, a message "corrected according to defined conditions" is displayed (606). However, when the file of both the correction result and the correction content of the correction definition information do not match, a message that "the correction is not in the defined condition" is displayed (607).

【0018】また、修正処理前のプログラムと修正対象
構文パターンとの比較処理602において、修正対象と
して定義されていない構文については、該当箇所につい
て修正前後のプログラムを比較する(608)。この比
較の結果、両者が一致している場合には、修正作業の対
象として定義されていない構文であるので、その構文に
ついての比較処理は終了するが、定義されていない構文
について、修正がなされている場合には、「定義にない
修正をしています」というメッセージを表示する(60
9)。
In the comparison processing 602 between the program before the correction processing and the syntax pattern to be corrected, for the syntax that is not defined as the correction target, the program before and after the correction is compared for the corresponding part (608). As a result of this comparison, if they match, the syntax is not defined as a target of the correction work, and the comparison process for that syntax ends, but the correction is made for the undefined syntax. Is displayed, the message "Modification not defined" is displayed (60
9).

【0019】該当するメッセージを表示する場合、メッ
セージを表示するためにプログラムの修正結果を修正結
果解析部105iの修正結果格納領域に記憶し管理する
(610)。以上の処理を全ての構文に対して行ったか
チェックし(611)、プログラム中の全ての構文に対
して比較処理を実行していれば差分検出処理は終了す
る。
When the corresponding message is displayed, the program correction result is stored and managed in the correction result storage area of the correction result analysis unit 105i to display the message (610). It is checked whether the above processing has been performed for all the syntaxes (611). If the comparison processing has been executed for all the syntaxes in the program, the difference detection processing ends.

【0020】図5に、比較処理におけるメッセージ表示
のために、修正結果を格納する修正結果格納領域の構成
を示す。修正結果格納領域は、比較処理を実行後、画像
データ出力部105dを介して比較結果を図6にある修
正チェック表示ウィンドウ803に表示するためのもの
である。修正結果格納領域は、修正定義情報と同様にリ
スト構造を取り、1エントリに1比較結果情報、即ち1
修正結果情報が対応している。リスト702は、先頭ア
ドレス701に格納されているエントリから開始され
る。各エントリは、次の比較結果情報領域の先頭ポイン
タを格納するnx702aと、該当比較結果が適用され
た修正定義情報記憶テーブルのエントリを指示するイン
デックスを格納する登録テーブル702b,プログラム
中の表示の対象になった構文を含む行の行番号を格納す
る行702c,表示するメッセージ又は所定のメッセー
ジIDを格納するメッセージ702d、そしてユーザか
らの修正指示情報を記憶するための修正可否フラグ70
2eの各領域を備える。図6に、ユーザが定義した修正
内容定義を基に修正処理内容を比較し確認するユーザイ
ンタフェースを示す。編集メニュー801から修正チェ
ック802のメニューを選択することにより、あらかじ
め定義しておいた修正定義内容と修正結果との比較結果
を表示する修正チェック表示ウィンドウ803が表示さ
れる。
FIG. 5 shows a configuration of a correction result storage area for storing a correction result for displaying a message in the comparison processing. The correction result storage area is for displaying the comparison result in the correction check display window 803 in FIG. 6 via the image data output unit 105d after executing the comparison processing. The modification result storage area has a list structure similarly to the modification definition information, and one entry has one comparison result information, that is, one comparison result information.
The correction result information corresponds. The list 702 starts from the entry stored at the start address 701. Each entry is an nx 702a that stores a head pointer of the next comparison result information area, a registration table 702b that stores an index indicating an entry of the modification definition information storage table to which the corresponding comparison result is applied, and an object to be displayed in the program. A line 702c for storing a line number of a line including the syntax that has become a message, a message 702d for storing a message to be displayed or a predetermined message ID, and a correction possibility flag 70 for storing correction instruction information from a user.
2e. FIG. 6 shows a user interface for comparing and confirming correction processing contents based on the correction content definition defined by the user. When the menu of the correction check 802 is selected from the edit menu 801, a correction check display window 803 displaying a comparison result between the correction definition contents defined in advance and the correction result is displayed.

【0021】修正チェック表示ウィンドウ803内の表
示結果の表示方法は、表示するメッセージに合わせて4
種類存在する。まず登録しておいた定義通りの修正が行
われている箇所については、修正済みのメッセージ80
4を表示する。定義に反した修正が行われているとき
は、不当な修正のメッセージ805を表示する。この
時、現状の修正でよいか,定義されている修正内容の通
りに変更するか,修正以前の状態に戻すかいずれかの選
択を促す。また、修正が漏れている箇所については、修
正漏れのメッセージ806を表示する。この時、登録し
た定義内容に修正すべきか,現状のままかを問い合わせ
る選択ボタンを表示する。そして、修正の定義がされて
いないにもかかわらず、修正が行われている箇所につい
ては、不当な修正が行われた旨のメッセージ807を表
示する。この最後のケースにおいても修正を維持すべき
か,修正箇所を元に戻すかの選択ボタンを表示する。ユ
ーザは、一連のメッセージで修正の選択をした後、修正
を実行するボタン808をクリックすると指定した修正
指示内容に基づきファイルに修正を加えてウィンドウを
終了する。また、取り消しボタン809を選択すると、
それまで修正チェック表示ウィンドウ803上で行って
いた設定をキャンセルしてウィンドウを終了する。
The display method of the display result in the correction check display window 803 is determined according to the message to be displayed.
There are kinds. First, a corrected message 80 is displayed for a portion where the correction as defined has been made.
4 is displayed. If a correction contrary to the definition is made, a message 805 of an incorrect correction is displayed. At this time, the user is prompted to select whether the current correction is sufficient, whether the correction is to be made according to the defined correction contents, or the state before the correction. In addition, a message 806 indicating that correction has been omitted is displayed for a portion where correction has been omitted. At this time, a selection button for inquiring whether to correct the registered definition content or to keep it as it is is displayed. Then, a message 807 indicating that an improper correction has been made is displayed for a portion where the correction has been made even though the correction has not been defined. In this last case, a selection button is displayed for selecting whether to maintain the correction or to undo the correction. After the user selects a correction in a series of messages and then clicks a button 808 for performing the correction, the user makes a correction to the file based on the specified correction instruction and closes the window. When the cancel button 809 is selected,
The settings made on the correction check display window 803 up to that point are canceled and the window ends.

【0022】修正チェック表示ウィンドウ803で修正
実行のボタン808をクリックした後、修正の必要があ
る構文、つまり予め定義された修正処理定義通り修正作
業が行われている箇所、及び修正チェック表示ウィンド
ウ803でユーザが修正要と確認した構文については修
正結果を、修正作業前のプログラムを構文解析した結果
に反映させ、ユーザが修正作業を行ったファイルと入れ
替える。
After clicking on a correction execution button 808 in the correction check display window 803, the syntax that needs to be corrected, that is, the part where the correction work is being performed according to the predefined correction processing definition, and the correction check display window 803 For the syntax confirmed by the user as requiring modification, the result of the modification is reflected in the result of the syntax analysis of the program before the modification work, and replaced with the file that the user has modified.

【0023】[0023]

【発明の効果】修正作業を行うプログラムの構文につい
て、事前に修正作業の内容を登録しておき、プログラム
の修正作業後に、登録した修正内容に基づき修正前後の
差分結果を表示することにより、修正した内容が正しい
か容易に判断することが可能になる。これによって容易
にかつ確実な修正作業を行うことができる。
According to the present invention, the contents of the correction work are registered in advance with respect to the syntax of the program for performing the correction work, and after the program correction work, the difference result before and after the correction is displayed based on the registered correction contents, thereby making the correction. It is possible to easily determine whether the content is correct. As a result, it is possible to easily and reliably perform the correction work.

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

【図1】本発明の一実施例における、ソフトウェア開発
ツールの概略構成図である。
FIG. 1 is a schematic configuration diagram of a software development tool according to an embodiment of the present invention.

【図2】本実施例における、修正内容を定義する画面の
一例である。
FIG. 2 is an example of a screen for defining correction contents in the embodiment.

【図3】修正定義情報記憶DB内の修正定義情報記憶テ
ーブルのテーブル構成である。
FIG. 3 is a table configuration of a modification definition information storage table in a modification definition information storage DB.

【図4】本実施例における、修正内容定義に基づき修正
内容を比較するフローチャートである。
FIG. 4 is a flowchart for comparing correction contents based on a correction content definition in the embodiment.

【図5】修正チェック表示ウィンドウを表示するために
使用する修正チェックテーブルのテーブル構成である。
FIG. 5 is a table configuration of a correction check table used to display a correction check display window.

【図6】本実施例における、修正内容定義に基づき、修
正内容を比較した表示画面の一例である。
FIG. 6 is an example of a display screen in which correction contents are compared based on a correction content definition in the embodiment.

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

105…演算処理装置、106…開発ソフトウェア記憶
DB、107…修正定義情報記憶DB、304…チェッ
ク条件定義ウィンドウ、803…修正チェック表示ウィ
ンドウ。
105: arithmetic processing unit, 106: development software storage DB, 107: correction definition information storage DB, 304: check condition definition window, 803: correction check display window.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 和田 裕 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 鈴木 史芳 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 小林 久敏 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Hiroshi Wada 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Omika Plant, Hitachi, Ltd. (72) Fumiyoshi Suzuki 5, Omikamachi, Hitachi City, Ibaraki Prefecture No. 2-1 Hitachi Process Computer Engineering Co., Ltd. (72) Inventor Hisatoshi Kobayashi 5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture Hitachi Process Computer Engineering Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】プログラム編集作業時のプログラム修正結
果比較方法において、 プログラムの構文情報と修正前後の構文パターンにより
修正作業を定義し、 修正作業前と後のプログラムを構文解析し、 予め定義された変更作業の修正前の構文パターンと修正
作業前のプログラムの構文解析結果を比較して、当該比
較結果が一致する箇所に相当する修正作業後のプログラ
ムの構文解析結果が、予め定義された変更作業の修正後
の構文パターンと一致するか調べた結果を記憶し、 当該記憶された修正後の構文パターンとの比較結果を元
にユーザに修正作業の確認を促すことを特徴とするプロ
グラム修正結果比較方法。
In a method for comparing a program correction result at the time of a program editing operation, a correction operation is defined by syntax information of a program and a syntax pattern before and after the correction, and a program before and after the correction operation is subjected to syntax analysis, and is defined in advance. The syntax pattern before the modification work is compared with the syntax analysis result of the program before the modification work, and the syntax analysis result of the program after the modification work corresponding to a portion where the comparison result matches is defined as a predefined modification work. And storing the result of checking whether the syntax pattern matches the corrected syntax pattern, and prompting the user to confirm the correction work based on the comparison result with the stored corrected syntax pattern. Method.
【請求項2】請求項1に記載のプログラム修正結果比較
方法において、 前記プログラムの構文情報は、プログラムの文法上の修
正単位と修正対象の構文要素種別からなることを特徴と
するプログラム修正結果比較方法。
2. The program correction result comparison method according to claim 1, wherein the syntax information of the program includes a grammatical correction unit of the program and a type of a syntax element to be corrected. Method.
【請求項3】請求項2のプログラム修正結果比較方法に
おいて、 前記変更作業の修正前の構文パターンは、修正作業前の
プログラムの構文解析された結果から選択することを特
徴とするプログラム修正結果比較方法。
3. The program correction result comparison method according to claim 2, wherein the pre-correction syntax pattern of the change operation is selected from a result of a syntax analysis of the program before the correction operation. Method.
JP15558198A 1998-06-04 1998-06-04 Program correction result comparing method Pending JPH11353162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15558198A JPH11353162A (en) 1998-06-04 1998-06-04 Program correction result comparing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15558198A JPH11353162A (en) 1998-06-04 1998-06-04 Program correction result comparing method

Publications (1)

Publication Number Publication Date
JPH11353162A true JPH11353162A (en) 1999-12-24

Family

ID=15609180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15558198A Pending JPH11353162A (en) 1998-06-04 1998-06-04 Program correction result comparing method

Country Status (1)

Country Link
JP (1) JPH11353162A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007280415A (en) * 2007-06-04 2007-10-25 Hitachi Electronics Service Co Ltd Management device, version management system and program version management method
JP2008262330A (en) * 2007-04-11 2008-10-30 Hitachi Ltd Program erroneous correction detection method and device
JP2012141916A (en) * 2011-01-06 2012-07-26 Hitachi Information & Control Solutions Ltd Program modification supporting method and program modification supporting apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008262330A (en) * 2007-04-11 2008-10-30 Hitachi Ltd Program erroneous correction detection method and device
JP2007280415A (en) * 2007-06-04 2007-10-25 Hitachi Electronics Service Co Ltd Management device, version management system and program version management method
JP4621709B2 (en) * 2007-06-04 2011-01-26 日立電子サービス株式会社 Version management system and program version management method
JP2012141916A (en) * 2011-01-06 2012-07-26 Hitachi Information & Control Solutions Ltd Program modification supporting method and program modification supporting apparatus

Similar Documents

Publication Publication Date Title
US6757889B1 (en) Source program checking device and program and method for same
EP1744255A1 (en) Document processing device and document processing method
JP4826120B2 (en) Business specification creation support system and method
US5907851A (en) Editing nested documents by appointing a portion for insertion with an alternative substitute
JPH11353162A (en) Program correction result comparing method
JPH06131346A (en) Document processor
JP4683535B2 (en) Job net management system
US8151242B1 (en) Description support apparatus and method for requisition sheet, and recording medium
JPH0954688A (en) Gui design supporting method
JP2706558B2 (en) Ladder program editing method
JP2534433B2 (en) Message verification method
EP0410062A2 (en) Dynamic selection of logical element data format
JP2007140774A (en) Electronic slip component development device, electronic slip component development method, electronic slip component development program and recording medium having electronic slip component development program stored therein
JP2874601B2 (en) Screen application program evaluation processing system
JPH0887403A (en) Program development support device
JPH0773030A (en) Dynamic model design support method
JPH0612542B2 (en) How to copy the mark part of structured document
JP2000112800A (en) File history management system
JPH05181661A (en) General purpose menu system for each user
JPH0689170A (en) Source program analysis method for case system
JP2002189716A (en) Document editing device
JPH10187424A (en) Correct and error judgement result display system for graphical editing program
JPH04317123A (en) System update information display controller
JPS6220040A (en) File updating system
JPH10260882A (en) Version management system