JPH05324343A - Program conversion system - Google Patents

Program conversion system

Info

Publication number
JPH05324343A
JPH05324343A JP15423592A JP15423592A JPH05324343A JP H05324343 A JPH05324343 A JP H05324343A JP 15423592 A JP15423592 A JP 15423592A JP 15423592 A JP15423592 A JP 15423592A JP H05324343 A JPH05324343 A JP H05324343A
Authority
JP
Japan
Prior art keywords
conversion
program
data
information
source
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
JP15423592A
Other languages
Japanese (ja)
Inventor
Kazuyuki Osawa
和之 大澤
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 Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
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 Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP15423592A priority Critical patent/JPH05324343A/en
Publication of JPH05324343A publication Critical patent/JPH05324343A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To improve the productivity and the quality of a conversion work by detecting the respective items of the program source of a conversion object by analyzing the difference of the expression type from the program source and data before/after conversion and converting another program source and data through their relating information. CONSTITUTION:The program source and data which are converted into a desired type are given from a converted program file 1 for a conversion information preparation device 4 and simultaneously the program source and data of conversion object are given from a preconversion program file 2 for the conversion information preparation device 4, which analyzes the difference of two program sources and data to generate correlating information to store it in a conversion information data file 6. Next, the program source of the conversion object is read to give it for a program converter 9 and the program source and data with different expression type are converted into the specification of different type.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラムのコンバー
ト処理を行うプログラムコンバートシステムに関し、特
に、情報処理システムにおいて表現形式の異なるプログ
ラムソースおよびデータをある1つの仕様を持つプログ
ラムソースおよびデータに変換するプログラムコンバー
トシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program converting system for converting a program, and more particularly to converting a program source and data having different expression formats into a program source and data having a certain specification in an information processing system. It relates to a program conversion system.

【0002】[0002]

【従来の技術】従来、表現形式が異なるプログラムソー
スおよびデータをある1つの表現形式のプログラムソー
スおよびデータに変換する場合には、その変換対象物の
相互の相違を抽出し、その相違から変換の規則性を見つ
け出し、変換プログラムを作成し、その変換プログラム
によりコンバート処理を実行する。この場合、更に、変
換プログラムにより変換できなかった部分は、変換プロ
グラムによるコンバート処理の後に人手による手修正に
より変換する作業を行う。
2. Description of the Related Art Conventionally, when converting a program source and data having different expression formats into a program source and data having a certain expression format, the differences between the objects to be converted are extracted and the conversion is performed from the differences. The regularity is found, a conversion program is created, and the conversion process is executed by the conversion program. In this case, further, the portion that could not be converted by the conversion program is converted by the conversion program and then manually converted by hand.

【0003】この種のプログラム変換方法に関しては、
例えば、特開昭64−31233号公報に開示されたプ
ログラミング言語自動変換方法が知られている。このプ
ログラミング言語自動変換方法は、低級言語で記述され
たプログラムを高級言語プログラムに変換する場合のよ
うに、必ずしも1対1に対応しない文法で表現された2
つのプログラミング言語の自動変換方法に関するもので
あり、ここでは、1対1に対応しない文法で表現された
第1言語の変換対象文を、前方または後方の文のうち少
なくとも一方の文から抽出した特徴的な情報を用いて場
合分けし、同じ内容の対応する第2言語のプログラム文
に変換する方法を開示している。
Regarding this kind of program conversion method,
For example, a programming language automatic conversion method disclosed in Japanese Patent Laid-Open No. 64-31233 is known. This automatic programming language conversion method is expressed by a grammar that does not necessarily correspond one-to-one, as in the case of converting a program written in a low-level language into a high-level language program.
The present invention relates to an automatic conversion method for two programming languages, in which a conversion target sentence of a first language expressed by a grammar that does not correspond one-to-one is extracted from at least one of forward and backward sentences. The method is classified by using specific information and converted into a corresponding second language program sentence having the same content.

【0004】[0004]

【発明が解決しようとする課題】ところで、上記従来の
技術におけるプログラミング言語自動変換方法では、プ
ログラムソースおよびデータの表現形式の相違を抽出
し、その変換の規則性を摘出できたものについてのみ
が、プログラム化が可能であり、自動変換が可能である
が、規則性を摘出できなかったものについては、手作業
によるコンバート処理が必要となっている。
By the way, in the above-mentioned conventional programming language automatic conversion method, only the method for extracting the difference in the expression form of the program source and the data and extracting the regularity of the conversion, Although it can be programmed and can be automatically converted, if it is not possible to extract the regularity, manual conversion processing is required.

【0005】このため、大量のプログラムソースおよび
データを変換する場合は、変換の規則性の摘出およびそ
のプログラム化に時間がかかり、手作業によるコンバー
トの作業量が膨大となり、コンバート処理における生産
性が低下する。その上、手作業によるコンバート処理
は、品質面でも問題が残る。
Therefore, when converting a large amount of program sources and data, it takes time to extract the regularity of conversion and program the conversion, and the amount of manual conversion work becomes enormous, resulting in high productivity in the conversion process. descend. Moreover, the manual conversion process has a problem in terms of quality.

【0006】本発明は、このような問題点を解決するた
めになされたものであり、本発明の目的は、情報処理シ
ステムにおいて表現形式の異なるプログラムソースおよ
びデータをある1つの仕様を持つプログラムソースおよ
びデータにコンバートする処理を効率よく行い、コンバ
ート作業の生産性を向上させ、また、コンバートした変
換物の品質の向上を可能とするプログラムコンバートシ
ステムを提供することにある。
The present invention has been made in order to solve such a problem, and an object of the present invention is to provide a program source having a different representation format and a program source having a certain specification in an information processing system. Another object of the present invention is to provide a program conversion system capable of efficiently performing a process of converting data and data, improving the productivity of the conversion work, and improving the quality of the converted product.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明のプログラムコンバートシステムは、表現形
式の異なるプログラムソースおよびデータを所望形式の
プログラムソースおよびデータの仕様に変換するプログ
ラムコンバートシステムであって、目的とする表現形式
のプログラムソースおよびデータと変換対象の表現形式
のプログラムソースおよびデータの差異を解析してその
関連情報を作成する変換情報作成手段と、変換情報作成
手段により作成した関連情報に基づいて変換対象の表現
形式のプログラムソースおよびデータを変換するプログ
ラム変換処理手段とを備えることを特徴とする。
In order to achieve the above object, the program conversion system of the present invention is a program conversion system for converting program sources and data having different expression formats into program source and data specifications of a desired format. And the related information created by the conversion information creating means for analyzing the difference between the program source and the data of the desired expression format and the program source and the data of the expression format to be converted and creating the related information. And a program conversion processing means for converting data based on the expression format of the conversion target and data.

【0008】[0008]

【作用】本発明のプログラムコンバートシステムにおい
ては、変換情報作成手段と、プログラム変換処理手段が
備えられる。変換情報作成手段が目的とする表現形式の
プログラムソースおよびデータと変換対象の表現形式の
プログラムソースおよびデータとの差異を解析してその
関連情報を作成すると、プログラム変換処理手段が、変
換情報作成手段により作成した関連情報に基づいて変換
対象の表現形式のプログラムソースおよびデータを変換
するコンバート処理を行う。
In the program conversion system of the present invention, conversion information creating means and program conversion processing means are provided. When the difference between the program source and data of the expression format intended by the conversion information creating means and the program source and data of the expression format of the conversion target is analyzed and related information is created, the program conversion processing means creates the conversion information creating means. A conversion process for converting the program source and data of the expression format to be converted is performed based on the related information created by.

【0009】このように、本発明のプログラムコンバー
トシステムでは、人手により表現形式の相違からその規
則性を摘出して、プログラム化を図っていくのではな
く、変換すべきプログラムソースの各々の項目を変換前
後のプログラムソースおよびデータよりその表現形式の
相違を解析して検出し、その関連情報をファイルに蓄積
し、蓄積した関連情報を利用して、他の同類なプログラ
ムソースおよびデータを変換する処理を行う。これによ
り、コンバート作業における生産性が向上し、また、生
成した変換物の品質の向上が図かれる。
As described above, in the program conversion system of the present invention, the regularity is not manually extracted from the difference in the expression form to make it into a program, but each item of the program source to be converted is selected. A process that analyzes and detects the difference in expression format from the program source and data before and after conversion, stores the related information in a file, and uses the stored related information to convert other similar program sources and data I do. Thereby, the productivity in the conversion work is improved, and the quality of the generated conversion product is improved.

【0010】すなわち、本発明のプログラムコンバート
システムでは、まず、基となる変換指針を与える関連情
報の作成のため、所望形式となっているプログラムソー
スおよびデータまたは変換済のプログラムソースおよび
データと変換前のプログラムソースおよびデータを用意
する。この2つのプログラムソースおよびデータをコン
バートシステムに入力し、その相違を解析して、その相
関の関係情報をファイルに蓄積させる。次回からのコン
バート処理では、前回蓄積した相関の関係情報ファイル
を利用して処理を行う。また、今回のコンバート処理に
より、作成した変換後プログラムソースおよびデータに
対して更に手作業により修正箇所を加えた場合、その変
換にかかる関係情報を更に前回作成した関係情報のファ
イルに蓄積し、次のコンバート処理に活用する。
That is, in the program conversion system of the present invention, first, in order to create the related information that gives the basic conversion guideline, the program source and data in the desired format or the converted program source and data and the pre-conversion Prepare the program source and data of. These two program sources and data are input to the conversion system, the difference is analyzed, and the correlation related information is stored in a file. In the conversion process from the next time, the process is performed by using the correlation related information file accumulated last time. In addition, when the converted source and data after conversion created by this conversion process are manually modified, the related information related to the conversion is further stored in the previously created related information file. It is used for the conversion process of.

【0011】ここでのプログラムコンバートシステムで
は、変換前後のプログラムソースおよびデータを入力し
て、その相関関係にかかわる関係情報をファイルに格納
し蓄積するが、その蓄積した関係情報のファイルには、
変換対象となる項目のキーワードまたは変換パターンを
記録し、その変換方法および変換内容を格納する。この
結果、蓄積した相関関係を定義した関連情報により、他
の同等な変換を必要とするプログラムソースおよびデー
タのコンバート処理が行えることになり、同等な表現形
式のプログラムソースおよびデータの変換を簡易な操作
で行うことができる。
In the program conversion system here, the program source and data before and after conversion are input, and the relation information relating to the correlation is stored and accumulated in a file.
The keyword or conversion pattern of the item to be converted is recorded, and the conversion method and conversion content are stored. As a result, the related information that defines the accumulated correlation enables conversion processing of program sources and data that require other equivalent conversions, and facilitates conversion of program sources and data with equivalent representation formats. It can be done by operation.

【0012】相関関係を定義した関係情報のファイルに
は、プログラムコンバートシステムに入力した変換前後
の情報からその相関関係を生成するのみではなく、既に
周知されている変換情報を外部から与えることもでき
る。複数の変換前後のプログラムソースおよびデータを
入力し、その共通な変換項目のみを相関関係を定義した
関係情報のファイルに格納し蓄積することもできる。
In the file of the relation information defining the correlation, not only the correlation is generated from the information before and after the conversion inputted to the program conversion system, but also the conversion information already known can be given from the outside. .. It is also possible to input a plurality of program sources and data before and after conversion and to store and accumulate only common conversion items in a file of relation information defining correlation.

【0013】[0013]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は本発明の一実施例にかかるプログラムコ
ンバートシステムの全体のシステム構成を示すブロック
図である。図1において、1は所望の表現形式を有する
ソースプログラムおよびデータが格納されている既変換
プログラムファイル、2は変換対象のプログラムが格納
されている変換前プログラムファイル、3は入力装置、
4は変換情報作成装置、5は出力装置、6は相関関係を
定義した変換情報を格納する変換情報データファイルで
ある。また、8は入力装置、9はプログラム変換装置、
10は出力装置、11は表現形式を変換されたプログラ
ムが格納される変換後プログラムファイルである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the overall system configuration of a program conversion system according to an embodiment of the present invention. In FIG. 1, 1 is a converted program file in which a source program and data having a desired expression format are stored, 2 is a pre-conversion program file in which a conversion target program is stored, 3 is an input device,
Reference numeral 4 is a conversion information creating device, 5 is an output device, and 6 is a conversion information data file for storing conversion information defining a correlation. Further, 8 is an input device, 9 is a program conversion device,
Reference numeral 10 is an output device, and 11 is a converted program file in which a program whose expression format has been converted is stored.

【0014】このプログラムコンバートシステムの動作
の概略を説明すると、まず、基となる表現形式の変換の
指針を与える関連情報の作成のため、所望形式となって
いるプログラムソースおよびデータまたは既に所望形式
に変換済のプログラムソースおよびデータを、既変換プ
ログラムファイル1から入力装置3を介して変換情報作
成装置4に与え、同時に、ここで与える変換済のプログ
ラムソースおよびデータに対応した変換対象のプログラ
ムソースおよびデータを変換前プログラムファイル2か
ら入力装置3を介して変換情報作装置4に与える。これ
により、変換情報作成装置4では、後に詳述するよう
に、与えられた2つのプログラムソースおよびデータか
ら、その相違を解析し、その相関の関係情報を生成し
て、出力装置5を介して出力し、その関係情報を変換情
報として変換情報データファイル6に蓄積する。
The operation of this program conversion system will be briefly described. First, in order to create related information that gives a guideline for conversion of an underlying expression format, a program source and data in a desired format or an already desired format are created. The converted program source and data are given from the already-converted program file 1 to the conversion information creating device 4 via the input device 3, and at the same time, the converted program source and the conversion target program source corresponding to the data and Data is given from the pre-conversion program file 2 to the conversion information creating device 4 via the input device 3. As a result, the conversion information creating device 4 analyzes the difference from the given two program sources and data, generates correlation relationship information, and outputs it via the output device 5, as will be described later. The converted information is output and stored as conversion information in the conversion information data file 6.

【0015】次に、変換対象のプログラムソースを変換
前プログラムデータファイル2から読み出し、入力装置
8を介してプログラム変換装置9に与えると、プログラ
ム変換装置9が、変換情報データファイル6に蓄積され
た変換情報データを利用し、表現形式の異なるプログラ
ムソースおよびデータを所望形式のプログラムソースお
よびデータの仕様に変換する処理を行う。このプログラ
ム変換装置9が実行するコンバートの処理においては、
前段階で作成した変換情報データファイル6の変換情報
データを用いた変換処理を行う。ここでの変換情報とし
て蓄積された関係情報のファイルには、変換対象となる
項目のキーワードまたは変換パターンが記録され、ま
た、変換方法および変換内容が格納されているので、こ
れらの変換情報データの内容により、変換対象のプログ
ラムソースおよびデータの変換処理を行う。更に、蓄積
された相関関係を定義した関連情報の変換情報データに
従って、他の同等な変換を必要とするプログラムソース
およびデータのコンバート処理を行なう。次に、具体例
として、A仕様で記述されたCOBOL言語ソースプロ
グラムをB仕様のCOBOL言語ソースプログラムに変
換する場合のコンバート処理例について説明する。
Next, when the program source to be converted is read from the pre-conversion program data file 2 and given to the program converting device 9 via the input device 8, the program converting device 9 is stored in the conversion information data file 6. The conversion information data is used to convert the program sources and data having different expression formats into the specifications of the program source and data of the desired format. In the conversion process executed by the program conversion device 9,
A conversion process is performed using the conversion information data of the conversion information data file 6 created in the previous stage. In the file of the related information accumulated as the conversion information here, the keyword or the conversion pattern of the item to be converted is recorded, and the conversion method and the conversion content are stored. Depending on the contents, conversion processing of the program source and data to be converted is performed. Further, according to the conversion information data of the related information defining the accumulated correlation, the conversion processing of the program source and the data which requires other equivalent conversion is performed. Next, as a specific example, a conversion processing example in the case of converting a COBOL language source program described in the A specification into a COBOL language source program in the B specification will be described.

【0016】図2は、A仕様で記述されたCOBOL言
語ソースプログラムをB仕様のCOBOL言語ソースプ
ログラムに変換する処理の一例を示す説明図である。図
2において、上部側にはA仕様で記述されたCOBOL
言語ソースプログラムの一例を示し、下部側にはB仕様
のCOBOL言語ソースプログラムの一例を示してい
る。ここでの上部側のA仕様ソースプログラム21と下
部側のB仕様ソースプログラム22とにおけるCOBO
L言語の相違は、プログラム内使用エリアの属性規定
(21a,21bと22a,22b)と、プログラム間
エリア定義(21cと22c)と、コーリングシーケン
ス(21dと22d)となっている。
FIG. 2 is an explanatory diagram showing an example of processing for converting a COBOL language source program described in the A specification into a COBOL language source program in the B specification. In FIG. 2, the COBOL described in the A specification is on the upper side.
An example of a language source program is shown, and an example of a B specification COBOL language source program is shown on the lower side. COBO in the upper A specification source program 21 and the lower B specification source program 22
The difference in the L language is the attribute definition of the use area in the program (21a, 21b and 22a, 22b), the inter-program area definition (21c and 22c), and the calling sequence (21d and 22d).

【0017】図3は、変換情報データを作成する変換情
報作成装置の要部の構成を更に詳細に示すブロック図で
ある。変換情報作成装置4は、図3に示すように、プロ
グラム比較処理部31,差分情報取得処理部32,差分
情報解析処理部33,および変換情報生成処理部34か
ら構成される。このような各々のサブ処理部から構成さ
れる変換情報作成装置4に対して、変換前プログラムフ
ァイル2からのA仕様プログラムソース(X)21と、
既変換プログラムファイル1からのB仕様のプログラム
ソース(X’)22とが、入力装置3を介して与えられ
ると、変換情報作成装置4が、2つのプログラムソース
の相違を解析し、その相関の関係情報を抽出して、変換
情報を作成する処理を行う。
FIG. 3 is a block diagram showing in more detail the configuration of the main part of the conversion information creating apparatus for creating the conversion information data. As shown in FIG. 3, the conversion information creation device 4 includes a program comparison processing unit 31, a difference information acquisition processing unit 32, a difference information analysis processing unit 33, and a conversion information generation processing unit 34. With respect to the conversion information creating apparatus 4 including the sub-processing units as described above, the A specification program source (X) 21 from the pre-conversion program file 2 and
When the B-specification program source (X ′) 22 from the already-converted program file 1 is given via the input device 3, the conversion information creating device 4 analyzes the difference between the two program sources and determines the correlation between them. A process of extracting relational information and creating conversion information is performed.

【0018】まず、プログラム比較処理部31が、A仕
様プログラムソース(X)21とB仕様プログラムソー
ス(X’)22との比較を行い、その相違を取得する
と、次に、差分情報取得処理部32が、比較処理で不一
致となった箇所よりその変更情報を取得する差分情報取
得処理を行う。次に、差分情報解析処理部33が、差分
情報から、プログラムソースのテキスト単位での解析を
行う。すなわち、取得された差分情報をデータ部と手続
き部に分け、その変更情報を解析し、変更条件を決定す
る処理を行う。次に、変換情報生成処理部34が差分情
報解析処理の結果により、変換条件および変換情報を作
成する処理を行い、その変換すべき変換文字列に対する
変換方法および変換内容などが各々の項目内容ごとに分
けられた変換情報データレコード30として作成され
る。そして、出力装置5を介して生成された変換情報デ
ータレコード30が、変換情報データファイル6に順次
に格納される。ここでの変換情報データレコード30と
しては、例えば、A仕様プログラムソース21における
デー属性の「COMP」,プログラム間エリア定義の「COMMON-
STORAGE」,CALL命令の「CALL」などが、B仕様プログ
ラムソース22においては「COMP-3」,「LINKAGE」,「USRL
K…」と置換され、また、必要なプログラムソースのデー
タが追加されるように、その変換方法および該当変換文
字列の内容が、生成され蓄積される(図4参照)。
First, the program comparison processing section 31 compares the A specification program source (X) 21 and the B specification program source (X ') 22 and acquires the difference, and then the difference information acquisition processing section. 32 performs difference information acquisition processing for acquiring the change information from the disagreement portion in the comparison processing. Next, the difference information analysis processing unit 33 analyzes the program source in text units from the difference information. That is, the acquired difference information is divided into a data part and a procedure part, the change information is analyzed, and a process of determining a change condition is performed. Next, the conversion information generation processing unit 34 performs processing for creating conversion conditions and conversion information based on the result of the difference information analysis processing, and the conversion method and conversion content for the conversion character string to be converted are for each item content. Is created as the conversion information data record 30 divided into Then, the conversion information data records 30 generated via the output device 5 are sequentially stored in the conversion information data file 6. As the conversion information data record 30 here, for example, the data attribute “COMP” in the A specification program source 21 and “COMMON-” in the inter-program area definition are used.
"STORAGE", "CALL" of the CALL instruction, etc. in the B specification program source 22 are "COMP-3", "LINKAGE", "USRL".
The conversion method and the content of the corresponding conversion character string are generated and accumulated so that the data of the necessary program source is added (see FIG. 4).

【0019】図4は変換情報データレコードの変換情報
の内容の具体例を説明する説明図である。変換情報デー
タレコード41のレコード形式は、図4に示すように、
区分フィールド41a,キー/パターンフィールド41
b,変換方法フィールド41c,変換前文字列フィール
ド41d,変換後文字列フィールド41e,および継続
フィールド41fの各フィールドから構成されており、
それぞれのフィールドに、変換方法および変換内容の各
項目の内容データが格納される。他の変換情報データレ
コード42〜47も同様なレコード形式の構成をとり、
それぞれの変換情報の各項目の内容データが格納され
る。
FIG. 4 is an explanatory view for explaining a concrete example of the contents of the conversion information of the conversion information data record. The record format of the conversion information data record 41 is as shown in FIG.
Classification field 41a, key / pattern field 41
b, a conversion method field 41c, a pre-conversion character string field 41d, a post-conversion character string field 41e, and a continuation field 41f.
The content data of each item of the conversion method and the conversion content is stored in each field. The other conversion information data records 42 to 47 have the same record format structure,
The content data of each item of each conversion information is stored.

【0020】例えば、変換情報データレコード41は、
キー/パターンフィールド41bで指定する「XX1」
文字をキーとして、プログラム内使用エリア属性を規定
するデータ定義文を探索し、当該データ定義文の文字列
「COMP」を文字列「COMP−3」で置き換える変
換内容を定義している。このため、キー/パターンフィ
ールド41bには文字列「XX1」を格納し、変換方法
フィールド41cでは「文字列置換」と指定する。そし
て、変換前文字列フィールド41dには文字列「COM
P」を格納し、変換後文字列フィールド41eに、文字
列「COMP−3」を格納する。なお、継続フィールド
41fは、1つの変換情報データレコードで、変換情報
が格納できない場合のレコードデータの継続の有無を指
示するフィールドである。ここでの変換情報データレコ
ード41は、これまでの各フィールドの内容により変換
内容が全て定義できているので、継続フィールド41f
には「なし」が指示されている。
For example, the conversion information data record 41 is
"XX1" specified in the key / pattern field 41b
A character is used as a key to search for a data definition statement that defines the use area attribute in the program, and the conversion content that replaces the character string "COMP" of the data definition statement with the character string "COMP-3" is defined. Therefore, the key / pattern field 41b stores the character string "XX1", and the conversion method field 41c specifies "character string replacement". Then, the character string "COM
P ”is stored, and the character string“ COMP-3 ”is stored in the converted character string field 41e. The continuation field 41f is a field for instructing the continuation of record data when one piece of conversion information data record cannot store conversion information. In the conversion information data record 41 here, since the conversion contents can all be defined by the contents of the fields so far, the continuation field 41f
Is instructed to "none".

【0021】変換情報データレコード42は、変換情報
データレコード41と同じく、プログラム内使用エリア
属性を規定するデータ定義文の変換を指示する変換情報
となっている。また、変換情報データレコード43は、
プログラム間エリア定義を変換するための変換情報であ
る。また、変換情報データレコード44〜47は、コー
リングシーケンスを変換するための変換情報となってお
り、継続フィールドが「あり」とされて複数のテータレ
コードが一連の変換情報となっている。次に、このよう
な変換情報データレコードを用いて、プログラムソース
の表現形式を変換するコンバート処理を行う際の変換処
理例について説明する。
The conversion information data record 42, like the conversion information data record 41, is conversion information for instructing the conversion of a data definition statement that defines the in-program use area attribute. Further, the conversion information data record 43 is
This is conversion information for converting the inter-program area definition. Further, the conversion information data records 44 to 47 are conversion information for converting the calling sequence, and the continuation field is set to “present” and the plurality of data records are a series of conversion information. Next, an example of conversion processing when performing conversion processing for converting the expression format of the program source using such conversion information data records will be described.

【0022】図5は、プログラムソースの表現形式を変
換するコンバート処理を行うプログラム変換装置の要部
の構成を更に詳細に示すブロック図である。プログラム
変換装置9は、図5に示すように、プログラム解析処理
部51,変換情報検索処理部52,およびプログラム変
換処理部53から構成されており、ここでのプログラム
変換装置9が、先に生成した変換情報データファイル6
にレコード形式で蓄積されている変換情報データレコー
ドを利用して、例えば、図6に示すように、A仕様プロ
グラムソース(Y)をB仕様プログラムソース(Y’)
に変換する処理を行う。
FIG. 5 is a block diagram showing in more detail the structure of the main part of the program conversion device for performing the conversion process for converting the expression format of the program source. As shown in FIG. 5, the program conversion device 9 is composed of a program analysis processing unit 51, a conversion information search processing unit 52, and a program conversion processing unit 53, and the program conversion device 9 here generates first. Conversion information data file 6
By using the conversion information data record stored in the record format in A, the A specification program source (Y) is changed to the B specification program source (Y ′) as shown in FIG.
Process to convert to.

【0023】図6はA仕様で記述されたCOBOL言語
ソースプログラムをプログラム変換装置を使用してB仕
様のCOBOL言語ソースプログラムに変換する処理の
結果の一例を示す説明図である。図6を参照して、図5
に示すに示すプログラム変換装置における変換処理の動
作を、次に説明する。
FIG. 6 is an explanatory diagram showing an example of the result of the process of converting the COBOL language source program described in the A specification into a COBOL language source program in the B specification by using the program conversion device. Referring to FIG. 6, FIG.
The operation of the conversion process in the program conversion device shown in will be described below.

【0024】ここでは、A仕様プログラムソース(Y)
をB仕様プログラムソース(Y’)に変換する場合の過
程のその例として説明する。まず、A仕様のプログラム
ソース(Y)が格納されている変換前プログラムファイ
ル2から、変換対象のA仕様のプログラムソース(Y)
が入力装置8を介して、プログラム変換装置9に入力す
る。プログラムソースの入力がなされると、プログラム
変換装置9では、プログラム解析処理部51が入力され
た変換前プログラムソースのテキストを解析する。次
に、変換情報検索処理部52が、A仕様とB仕様のプロ
グラムソースの相関関係を定義した変換情報データファ
イル6を参照して、変換情報データファイルに格納され
ている変換情報データレコードの各々の変換項目が変換
前プログラムに存在するか否かをチェックする。すなわ
ち、変換対象のプログラム中に同一変換を行うべき情報
が存在するかをチェックする。そして、変換情報が存在
した場合、次に、プログラム変換処理部53が、その変
換規則に従い変換前プログラムソースを変換し、その変
換結果を出力装置10を介して、変換後プログラムファ
イル11に出力する。
Here, the A specification program source (Y)
Will be described as an example of the process of converting the B specification program source (Y ′). First, from the pre-conversion program file 2 in which the A specification program source (Y) is stored, the A specification program source (Y) to be converted
Input to the program conversion device 9 via the input device 8. When the program source is input, in the program conversion device 9, the program analysis processing unit 51 analyzes the input text of the pre-conversion program source. Next, the conversion information search processing unit 52 refers to the conversion information data file 6 that defines the correlation between the program sources of the A specification and the B specification, and references each of the conversion information data records stored in the conversion information data file. Check whether the conversion item of exists in the program before conversion. That is, it is checked whether or not the information to be subjected to the same conversion exists in the conversion target program. When the conversion information is present, the program conversion processing unit 53 then converts the pre-conversion program source according to the conversion rule, and outputs the conversion result to the post-conversion program file 11 via the output device 10. ..

【0025】この結果、図4に示されるような変換情報
データレコード41〜47のレコードデータが用いられ
て、図6に示すように、例えば、A仕様のプログラムソ
ース(Y)61のデータ定義61a,61bや、プログ
ラム間共通エリア定義61cや、コーリングシーケンス
61dなどが、それぞれに、B仕様のプログラムソース
(Y’)62のデータ定義62a,62bや、プログラ
ム間共通エリア定義62cや、コーリングシーケンス6
2dなどに変換される。上述の説明で明らかなように、
オペレータは、ここでのプログラムソース変換のための
格別の作業を要することなく、容易な操作でソースプロ
グラムの変換作業を行うことができる。
As a result, the record data of the conversion information data records 41 to 47 as shown in FIG. 4 is used, and as shown in FIG. 6, for example, the data definition 61a of the program source (Y) 61 of the A specification is used. , 61b, an inter-program common area definition 61c, a calling sequence 61d, etc., respectively, a data definition 62a, 62b of a B specification program source (Y ') 62, an inter-program common area definition 62c, a calling sequence 6
2d etc. are converted. As is clear from the above description,
The operator can perform the conversion work of the source program by an easy operation without requiring any special work for converting the program source here.

【0026】このように、本実施例のプログラムコンバ
ートシステムにおいては、人手により表現形式の相違の
規則性を摘出し、プログラム化を図っていくのではな
く、目的の表現形式を有するプログラムソース(既変換
プログラムソース)から、変換すべきプログラムソース
の各々の項目に対して、変換前後のプログラムソースお
よびデータによりその表現形式の相違を解析して検出
し、その関連情報を変換情報データファイルに蓄積す
る。そして、蓄積した関連情報を利用して、他の同様な
変換となるプログラムソースおよびデータの変換処理を
行う。これにより、プログラムソースおよびデータのコ
ンバート作業における生産性が向上し、また、人手を介
在させることなく変換作業が行えるので、生成した変換
物の品質の向上が図かれる。
As described above, in the program conversion system of the present embodiment, the regularity of the difference in the expression form is not manually extracted and programmed, but the program source having the desired expression form (existing From the conversion program source), for each item of the program source to be converted, the difference between the expression formats is analyzed and detected by the program source and the data before and after conversion, and the related information is accumulated in the conversion information data file. .. Then, by using the accumulated related information, the conversion processing of the program source and data, which is another similar conversion, is performed. As a result, the productivity in converting the program source and the data is improved, and the conversion work can be performed without human intervention, so that the quality of the generated conversion product can be improved.

【0027】なお、ここでの相関関係を定義した関係情
報を格納している変換情報データファイルには、プログ
ラムコンバートシステムに入力した変換前後の情報から
その相関関係を生成するのみではなく、既に周知されて
いる変換情報を外部から与えることもできる。また、複
数の変換前後のプログラムソースおよびデータを入力
し、その共通な変換項目のみを相関関係を定義した関係
情報のファイルに格納し蓄積することもできる。
It should be noted that the conversion information data file storing the relationship information defining the correlation here not only generates the correlation from the information before and after the conversion input to the program conversion system, but is already well known. It is also possible to provide the conversion information that has been converted from the outside. Further, it is also possible to input a plurality of program sources and data before and after conversion and store and accumulate only common conversion items in a file of relation information defining correlation.

【0028】この結果、ここでの蓄積された変換情報デ
ータファイルのレコードデータを用いることにより、例
えば、図6に示すように、A仕様のプログラムソース
(Y)61のデータ定義61a,61bや、プログラム
間共通エリア定義61cや、コーリングシーケンス61
dなどを、格別の作業を要することなく、それぞれB仕
様のプログラムソース(Y’)62のデータ定義62
a,62bや、プログラム間共通エリア定義62cや、
コーリングシーケンス62dなどに、容易な操作で変換
できる。
As a result, by using the record data of the accumulated conversion information data file here, for example, as shown in FIG. 6, the data definitions 61a and 61b of the A specification program source (Y) 61, and Inter-program common area definition 61c and calling sequence 61
The data definition 62 of the program source (Y ′) 62 of the B specification, etc., without any special work.
a, 62b, inter-program common area definition 62c,
It can be converted into a calling sequence 62d or the like by a simple operation.

【0029】[0029]

【発明の効果】以上説明したように、本発明によれば、
特に人手により表現形式の異なるプログラムソース間の
コンバート規則およびデータ間のコンバート規則を摘出
してプログラム化することなく、プログラムソースおよ
びデータのコンバート処理が可能となる。また、規則性
の摘出漏れなどによる手作業のコンバート作業を大幅に
削減でき、均一なプログラム変換が可能となる。これに
より、コンバート作業における生産性および品質の向上
が図れる。
As described above, according to the present invention,
In particular, the conversion processing of the program source and the data can be performed without manually extracting the conversion rules between the program sources and the conversion rules between the data having different expression formats and programming them. In addition, manual conversion work due to omission of regularity can be significantly reduced, and uniform program conversion can be performed. As a result, productivity and quality in the conversion work can be improved.

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

【図1】図1は本発明の一実施例にかかるプログラムコ
ンバートシステムの全体のシステム構成を示すブロック
図、
FIG. 1 is a block diagram showing the overall system configuration of a program conversion system according to an embodiment of the present invention,

【図2】図2はA仕様で記述されたCOBOL言語ソー
スプログラムをB仕様のCOBOL言語ソースプログラ
ムに変換する処理の一例を示す説明図、
FIG. 2 is an explanatory diagram showing an example of a process of converting a COBOL language source program described in A specifications into a COBOL language source program in B specifications;

【図3】図3は変換情報データを作成する変換情報作成
装置の要部の構成を更に詳細に示すブロック図、
FIG. 3 is a block diagram showing in more detail a configuration of a main part of a conversion information creating apparatus for creating conversion information data;

【図4】図4は変換情報データレコードの変換情報の内
容の具体例を説明する説明図、
FIG. 4 is an explanatory diagram illustrating a specific example of the content of conversion information of a conversion information data record,

【図5】図5はプログラムソースの表現形式を変換する
コンバート処理を行うプログラム変換装置の要部の構成
を更に詳細に示すブロック図、
FIG. 5 is a block diagram showing in more detail the configuration of the main part of a program conversion device that performs conversion processing for converting the expression format of a program source;

【図6】図6はA仕様で記述されたCOBOL言語ソー
スプログラムをプログラム変換装置を使用してB仕様の
COBOL言語ソースプログラムに変換する処理の結果
の一例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example of a result of processing for converting a COBOL language source program described in the A specification into a COBOL language source program in the B specification using a program conversion device.

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

1…既変換プログラムファイル 2…変換前プログラムファイル 3…入力装置 4…変換情報作成装置 5…出力装置 6…変換情報データファイル 8…入力装置 9…プログラム変換装置 10…出力装置 11…変換後プログラムファイル 21…A仕様ソースプログラム 22…B仕様ソースプログラム 30…変換情報データレコード 31…プログラム比較処理部 32…差分情報取得処理部 33…差分情報解析処理部 34…変換情報生成処理部 41〜47…変換情報データレコード 41a…区分フィールド 41b…キー/パターンフィールド 41c…変換方法フィールド 41d…変換前文字列フィールド 41e…変換後文字列フィールド 41f…継続フィールド 51…プログラム解析処理部 52…変換情報検索処理部 53…プログラム変換処理部 1 ... Already converted program file 2 ... Pre-conversion program file 3 ... Input device 4 ... Conversion information creating device 5 ... Output device 6 ... Conversion information data file 8 ... Input device 9 ... Program conversion device 10 ... Output device 11 ... Post conversion program File 21 ... A specification source program 22 ... B specification source program 30 ... Conversion information data record 31 ... Program comparison processing section 32 ... Difference information acquisition processing section 33 ... Difference information analysis processing section 34 ... Conversion information generation processing section 41-47 ... Conversion information data record 41a ... Classification field 41b ... Key / pattern field 41c ... Conversion method field 41d ... Pre-conversion character string field 41e ... Post-conversion character string field 41f ... Continuation field 51 ... Program analysis processing section 52 ... Conversion information retrieval processing section 53 ... Program Conversion processing unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 表現形式の異なるプログラムソースおよ
びデータを所望形式のプログラムソースおよびデータの
仕様に変換するプログラムコンバートシステムであっ
て、目的とする表現形式のプログラムソースおよびデー
タと変換対象の表現形式のプログラムソースおよびデー
タの差異を解析してその関連情報を作成する変換情報作
成手段と、変換情報作成手段により作成した関連情報に
基づいて変換対象の表現形式のプログラムソースおよび
データを変換するプログラム変換処理手段とを備えるこ
とを特徴とするプログラムコンバートシステム。
1. A program conversion system for converting program sources and data having different expression formats into specifications of a program source and data of a desired format, the program source and data having a target expression format and the expression format to be converted. Conversion information creating means for analyzing differences between program sources and data and creating related information thereof, and program conversion processing for converting program sources and data of an expression format to be converted based on the related information created by the conversion information creating means. A program conversion system comprising means.
JP15423592A 1992-05-22 1992-05-22 Program conversion system Pending JPH05324343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15423592A JPH05324343A (en) 1992-05-22 1992-05-22 Program conversion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15423592A JPH05324343A (en) 1992-05-22 1992-05-22 Program conversion system

Publications (1)

Publication Number Publication Date
JPH05324343A true JPH05324343A (en) 1993-12-07

Family

ID=15579803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15423592A Pending JPH05324343A (en) 1992-05-22 1992-05-22 Program conversion system

Country Status (1)

Country Link
JP (1) JPH05324343A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004051470A1 (en) * 2002-12-05 2004-06-17 System's Co.,Ltd. Program automatic converting method and program automatic converting device
JP2012053657A (en) * 2010-09-01 2012-03-15 Systems:Kk Information processor, information processing method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004051470A1 (en) * 2002-12-05 2004-06-17 System's Co.,Ltd. Program automatic converting method and program automatic converting device
US7831964B2 (en) 2002-12-05 2010-11-09 System's Co., Ltd. Program automatic converting method and program automatic converting device
JP2012053657A (en) * 2010-09-01 2012-03-15 Systems:Kk Information processor, information processing method, and program

Similar Documents

Publication Publication Date Title
US6338034B2 (en) Method, apparatus, and computer program product for generating a summary of a document based on common expressions appearing in the document
US6219831B1 (en) Device and method for converting computer programming languages
US5185867A (en) Method and apparatus for automatically generating software specifications
US7401070B2 (en) Flow data generation method, flow data generation apparatus, and flow data generation program product
US5303147A (en) Computer aided planning method and system
US5734889A (en) Method and apparatus for retrieving data and inputting retrieved data to spreadsheet including descriptive sentence input means and natural language interface means
JP3828379B2 (en) Test specification generation support apparatus, method, program, and recording medium
US6965856B1 (en) Process for the automatic generation of a textual expression from a semantic representation using a computer system
JP3251203B2 (en) JCL program conversion device, JCL program conversion method, and recording medium
JPH05324343A (en) Program conversion system
CN101388034A (en) Arrangement and method for processing data base
US5551036A (en) Method and system for generating operation specification object information
JP3529301B2 (en) Automatic data file converter
JPH06214777A (en) Method and device for developiig program
JPH03164834A (en) System for mutual conversion between programming languages
JPH04273534A (en) Precompile system
JPH02112024A (en) Method for estimating program processing pattern
JPH07182347A (en) Sentence analyzing device
JPH03141427A (en) Preparation of information on standard record specifications
JP2724235B2 (en) Variable name inference device
CN112347121A (en) Configurable method and system for converting natural language into sql
JP3087699B2 (en) Standard information simple input system and standard information simple input method
JPH10232803A (en) Program conversion system
JPH07104989A (en) Data item definition standardizing device
JPH01120625A (en) Output processing system for comment sentence