JP3216660B2 - Data type and data constant expansion method - Google Patents

Data type and data constant expansion method

Info

Publication number
JP3216660B2
JP3216660B2 JP21873292A JP21873292A JP3216660B2 JP 3216660 B2 JP3216660 B2 JP 3216660B2 JP 21873292 A JP21873292 A JP 21873292A JP 21873292 A JP21873292 A JP 21873292A JP 3216660 B2 JP3216660 B2 JP 3216660B2
Authority
JP
Japan
Prior art keywords
data
information
data type
name
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP21873292A
Other languages
Japanese (ja)
Other versions
JPH0651994A (en
Inventor
孝夫 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP21873292A priority Critical patent/JP3216660B2/en
Publication of JPH0651994A publication Critical patent/JPH0651994A/en
Application granted granted Critical
Publication of JP3216660B2 publication Critical patent/JP3216660B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は原始プログラムを目的プ
ログラムに変換する言語処理系におけるデータ型展開処
理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data type expansion processing method in a language processing system for converting a source program into a target program.

【0002】詳しくは、それぞれが同一のデータ定義を
行いかつ、それぞれのデータ定義で利用可能な定数をデ
ータ定義に固定化するようなデータ処理プログラムにお
いて有効なデータ型およびデータ定数の展開処理方式に
関する。
More specifically, the present invention relates to a data type and a data constant expansion processing method which are effective in a data processing program in which each performs the same data definition and fixes a constant usable in each data definition to the data definition. .

【0003】[0003]

【従来の技術】従来、この種のデータ型展開処理方式及
びデータ定数展開処理方式では、個々のプログラムの中
でプログラム言語仕様で規定された範囲内のデータ型を
個々のデータごとに記述し目的プログラムに変換してい
た。
2. Description of the Related Art Conventionally, in this type of data type expansion processing method and data constant expansion processing method, a data type within a range specified by a program language specification is described for each individual data in each program. Was converted to a program.

【0004】またデータ型で利用可能な定数についても
プログラム言語仕様で規定された範囲で個々の等価条件
比較文のなかで記述していた。
[0004] In addition, constants that can be used as data types are also described in individual equivalent condition comparison statements within the range specified by the programming language specification.

【0005】以降具体的な例をあげて従来技術について
説明する。
Hereinafter, the prior art will be described with a specific example.

【0006】例えば以下に示す型および値を持つ支店番
号を共通のデータとして参照するプログラム群からなる
システムを考える。
For example, consider a system consisting of a group of programs that refer to branch numbers having the following types and values as common data.

【0007】 01 支店番号 PIC 9(5).…(1) データ支店番号の属性は、外部10進の5桁 取りうる値 00,01,02,05 :東北地区の支店番号…(2) 10,11,18,20 :関東地区の支店番号…(3) 30以上38以下の数字 :中部地区の支店番号…(4) 上記の共通データである支店番号を参照しているプログ
ラムでは記述文(1)のデータ定義を正確に行う必要が
ある。システムを構成するプログラムが数本と少ない場
合はあまり負担とはならないが、数百本、数千本のプロ
グラムからなるシステムでは多大の工数を要する。また
記述誤りも生じやすいためシステムの信頼性を低下させ
る要因となる。また共通データである支店番号の値が論
理的に関東地区の支店番号であるかどうか判断するプロ
グラム記述は、以下に示す記述となる。
01 Branch number PIC 9 (5). … (1) The attribute of the data branch number is a 5-digit external decimal value that can be taken 00,01,02,05: Branch number in Tohoku area… (2) 10,11,18,20: Branch number in Kanto area ... (3) Numbers of 30 or more and 38 or less: Branch numbers in the Chubu area ... (4) In programs that refer to the branch numbers that are the common data described above, it is necessary to accurately define the data in the description (1). . When the number of programs constituting the system is as small as a few, the burden is not so large, but a system composed of hundreds or thousands of programs requires a great deal of man-hours. In addition, a description error is likely to occur, which causes a reduction in system reliability. The program description for determining whether the value of the branch number as the common data is logically the branch number in the Kanto area is as follows.

【0008】 IF 支店番号 = 10 OR 支店番号 = 11 OR 支店番号 = 18 OR 支店番号 = 20 THEN 〜〜 …(5) 支店番号が論理的に関東地区であるかどうか判定するプ
ログラムは全て正確に記述文(5)の記述をおこなわな
ければならない。システムを構成するプログラムが数本
と少ない場合はあまり負担とはならないが、数百本、数
千本のプログラムからなるシステムでは多大の工数を要
する。また記述誤りも生じやすいためシステムの信頼性
を低下させる要因となる。
IF branch number = 10 OR branch number = 11 OR branch number = 18 OR branch number = 20 THEN ... (5) All programs that determine whether the branch number is logically located in the Kanto area are accurately described. Statement (5) must be described. When the number of programs constituting the system is as small as a few, the burden is not so large, but a system composed of hundreds or thousands of programs requires a great deal of man-hours. In addition, a description error is likely to occur, which causes a reduction in system reliability.

【0009】さらに上記共通データである支店番号の属
性が従来の外部10進の5桁では不足してきたために、
外部10進の8桁に拡張された場合には、システムを構
成するプログラムの共通データである支店番号の定義を
全て修正しなければならない。システムを構成するプロ
グラムが数本と少ない場合はあまり負担とはならない
が、数百本、数千本のプログラムからなるシステムでは
多大の工数を要する。また記述誤りも生じやすいためシ
ステムの信頼性を低下させる要因となる。
Further, since the attribute of the branch number, which is the common data, is insufficient with the conventional five digits of the external decimal,
If the number is expanded to eight digits in external decimal, all the definitions of the branch numbers, which are common data of the programs constituting the system, must be corrected. When the number of programs constituting the system is as small as a few, the burden is not so large, but a system composed of hundreds or thousands of programs requires a great deal of man-hours. In addition, a description error is likely to occur, which causes a reduction in system reliability.

【0010】同様に上記共通データである支店番号の取
りうる値のうち関東地区にあらたに支店番号15を持つ
支店が追加された場合には、前記の論理的に支店番号が
関東地区であるかどうか判断するプログラム記述文
(5)は以下に示すように変更しなければならない。
Similarly, if a branch having a branch number 15 is newly added to the Kanto area among the possible values of the branch number as the common data, it is determined whether the branch number is logically the Kanto area. The program description (5) for determining whether or not to do so must be changed as shown below.

【0011】 IF 支店番号 = 10 OR 支店番号 = 11 OR 支店番号 = 18 OR 支店番号 = 15 OR 支店番号 = 20 THEN 〜〜 …(6) (5)の記述文から(6)の記述文に変更する作業は、
システムを構成するプログラムが数本と少ない場合はあ
まり負担とはならないが、数百本、数千本のプログラム
からなるシステムでは多大の工数を要する。また記述誤
りも生じやすいためシステムの信頼性を低下させる要因
となる。
IF branch number = 10 OR branch number = 11 OR branch number = 18 OR branch number = 15 OR branch number = 20 THEN ... ~ (6) The description sentence (5) is changed to the description sentence (6). The task to do is
When the number of programs constituting the system is as small as a few, the burden is not so large, but a system composed of hundreds or thousands of programs requires a great deal of man-hours. In addition, a description error is likely to occur, which causes a reduction in system reliability.

【0012】図をもちいて従来技術による方式を具体例
に関して説明する。
The method according to the prior art will be described with reference to the drawings.

【0013】図11は従来技術でのシステム構成を示す
図である。
FIG. 11 is a diagram showing a system configuration according to the prior art.

【0014】図12は従来技術でのデータ型の解析処理
の処理プログラムを表す図である。図13は、従来技術
での等価条件比較文の解析処理の処理プロセスを表す図
である。なお、図14は同じく等価条件比較文の処理プ
ロセスを示す図であるが、図14については実施例の中
で比較説明する。
FIG. 12 is a diagram showing a processing program of a data type analysis process according to the prior art. FIG. 13 is a diagram illustrating a processing process of an analysis process of an equivalent condition comparison statement according to the related art. FIG. 14 is a diagram showing a process of processing an equivalent condition comparison statement, but FIG. 14 will be described in comparison in the embodiments.

【0015】図12に示すようにデータ型の解析処理で
は、原始プログラムを入力すると先ず語彙解析手段によ
り語彙解析処理を行いトークン列T091〜T095を
生成し、次いでトークン列に対してデータ解析手段によ
り言語処理系の構文規則に従ってデータ構文解析を行い
正しい構文に対して内部形式に変換していた。
As shown in FIG. 12, in the data type analysis processing, when a source program is input, the lexical analysis processing is first performed by the lexical analysis means to generate token strings T091-T095, and then the token strings are analyzed by the data analysis means. Data parsing was performed according to the syntax rules of the language processing system, and the correct syntax was converted to an internal format.

【0016】従来技術でのデータ記述文(1)は、語彙
解析手段による語彙解析の結果5個のトークンT09
1、T092、T093、T094、T095に展開さ
れ、データ構文解析手段により構文解析される。トーク
ンT091は、01を表す数字トークン、トークンT0
92は、支店番号を表す利用者語トークン、トークンT
093は、PICを表す予約語トークン、トークンT0
94は、S9(5)を表す文字列トークン、T095
は、.を表す予約語トークンである。
The data description sentence (1) according to the prior art is obtained by vocabulary analysis by the vocabulary analysis means.
1, T092, T093, T094, and T095, and are parsed by data parsing means. Token T091 is a numeric token representing 01, token T0
92 is a user language token representing a branch number, and a token T
093 is a reserved word token representing PIC, token T0
94 is a character string token representing S9 (5), T095
Is. Is a reserved word token representing.

【0017】同様に図13に示すように等価条件比較文
の解析処理では、原始プログラムを入力すると先ず語彙
解析手段により語彙解析処理を行いトークン列T101
〜T1017を生成し、次いでトークン列に対して手続
き解析手段により言語処理系の構文規則に従った手続き
構文解析を行い正しい構文に対して内部形式に変換して
いた。
Similarly, as shown in FIG. 13, in the analysis processing of the equivalent condition comparison sentence, when the source program is input, first, the vocabulary analysis means performs vocabulary analysis processing to perform a token sequence T101.
TT1017, and then the procedural analysis means performs procedural syntax analysis on the token sequence in accordance with the syntax rules of the language processing system, and converts the correct syntax into an internal format.

【0018】従来技術での等価条件比較文(6)はそれ
ぞれ17個のトークンT101,T102,…T101
7に展開されそれぞれのトークンの表す情報は、図13
に示す通りである。
The equivalent condition comparison statement (6) in the prior art is composed of 17 tokens T101, T102,.
7, the information represented by each token is shown in FIG.
It is as shown in FIG.

【0019】[0019]

【発明が解決しようとする課題】このような従来方式で
は共通のデータ参照やデータ設定を行う大規模システム
構築時にはそれぞれのプログラム中の共通データの定義
記述をそれぞれのプログラムに作成者が意識的にコーデ
ィングする必要があり多大な工数を必要とし、かつ誤り
が発生しやすいためにシステムの信頼性を低下させると
いう問題点がある。
In such a conventional method, when constructing a large-scale system in which common data reference and data setting are performed, the creator intentionally writes the definition of common data in each program into each program. There is a problem that coding requires a large number of man-hours and that errors tend to occur, thereby lowering the reliability of the system.

【0020】また共通データで利用できる論理的な値に
ついては何ら制限がなくそれぞれのプログラム中で等価
条件比較文記述での共通データ参照時に論理的に比較可
能な値を意識的に記述する必要があり、多大な工数を必
要とし、かつ誤りが発生しやすいためにシステムの信頼
性を低下させるという問題点がある。
There is no restriction on the logical values that can be used in the common data, and it is necessary to consciously describe the logically comparable values when referring to the common data in the description of the equivalent condition comparison statement in each program. There is a problem that a large number of man-hours are required, and errors tend to occur, thereby lowering the reliability of the system.

【0021】同様に共通データの型の変更や、共通デー
タで取りうる値の拡張や変更が生じた場合には、それぞ
れのプログラム中の共通データの定義文を修正し、かつ
共通データの等価条件比較文に記述した値をそれぞれに
拡張や変更しなければならず、修正に多大な工数を必要
とし、かつ誤りが発生しやすいためにシステムの信頼性
を低下させるという問題点がある。
Similarly, when the type of the common data is changed, or the value that can be taken by the common data is expanded or changed, the definition statement of the common data in each program is corrected, and the equivalent condition of the common data is changed. The values described in the comparison sentence must be expanded or changed individually, which requires a large number of man-hours for correction, and causes a problem that errors tend to occur, thereby lowering the reliability of the system.

【0022】したがって本発明の目的は、第1にデータ
型及びそのデータ型で利用可能な値をデータベースに記
憶しておき、システム全体で共通に利用するデータ項目
の型定義および等価条件比較式での利用可能な値の展開
に利用することによりシステム全体で共通に利用するデ
ータ項目の型定義および等価条件比較式で利用可能な値
の記述を容易にし、かつ各プログラム間の記述上の不正
合によるシステムの信頼性の低下を防止し、システム全
体で共通に利用するデータ項目の型定義および等価条件
比較式での利用可能な値の変更または値の追加時のプロ
グラムの修正を容易にし保守性を向上させるデータ型及
びデータ定数展開方式を提供することである。
Therefore, an object of the present invention is to first store a data type and a value usable in the data type in a database, and use a type definition and an equivalence condition comparison expression of a data item commonly used in the entire system. To facilitate the description of the types of data items commonly used throughout the system and the description of the values that can be used in the equality condition comparison expressions, and to use the information in each program To prevent the system reliability from deteriorating, and to make it easy to change the type of data items commonly used in the entire system and to change the available values in the equivalent condition comparison expression or to modify the program when adding values, and to maintainability. It is to provide a data type and a data constant expansion method for improving the data type.

【0023】[0023]

【課題を解決するための手段】上記目的を達成するた
め、本発明のデータ型及びデータ定数展開方式は、原始
プログラムを目的プログラムに変換する言語処理系にお
けるデータ型展開処理において、データ定義に必要なデ
ータ型情報の内部表現形式及びデータ型情報の名称から
なるデータ型情報をエントリとするデータベースを設
け、前記原始プログラムではデータ項目の定義での型の
名称として前記データ型の名称を記述しておき、該原始
プログラムを入力すると型情報変換手段により前記デー
タ型名称をキーとして前記データベースを読み出して得
られた前記データ型情報を前記目的プログラムの形式に
変換することを特徴とする。
In order to achieve the above object, a data type and data constant expansion method according to the present invention are required for data definition in a data type expansion process in a language processing system for converting a source program into a target program. A database is provided with entries of data type information including the internal representation format of the data type information and the name of the data type information, and the source program describes the name of the data type as the type name in the definition of the data item. When the source program is input, the data type information obtained by reading the database using the data type name as a key is converted by the type information conversion means into the format of the target program.

【0024】また、データ定義に必要なデータ型情報及
び前記データ型情報の名称に対してそのデータ型で利用
可能な取り得る値情報及び前記データ型で利用可能な取
り得る値情報の名称のエントリを前記データ型情報のエ
ントリの従属エントリとして登録したデータベースを設
け前記原始プログラムを入力すると前記データ型情報に
よりデータ定義されたデータ項目を型情報テーブル作成
手段により、データ項目名とデータ型情報の対応テーブ
ルを作成し、前記原始プログラムでは前記データ型情報
によりデータ定義されたデータ項目を比較項目とした等
価条件比較文の比較相手として前記取り得る値情報の名
称を記述しておき、該原始プログラムを入力すると値情
報変換手段により前記データ型情報によりデータ定義さ
れたデータ項目のデータベース上のデータ型情報エント
リに従属する取り得る値情報のエントリの名称と前記等
価比較条件に記述した取り得る値情報の名称が一致する
かどうか判定したあと、正しく取り得る値情報の名称が
一致した場合には該原始プログラムに記述された前記取
り得る値の名称をキーとして前記データベースを読み出
して得られた取り得る値情報から前記等価条件比較文を
目的プログラムの形式に変換することを特徴とする。
In addition, data type information necessary for data definition and possible value information usable for the data type and an entry of possible value information name usable for the data type for the name of the data type information Is provided as a subordinate entry of the data type information entry, and when the source program is input, the data item defined by the data type information is associated with the data item name and the data type information by the type information table creating means. A table is created, and in the source program, the name of the possible value information is described as a comparison partner of an equivalence condition comparison statement using a data item defined by the data type information as a comparison item, and the source program is When input, the value information conversion means of the data item defined by the data type information After determining whether the name of the possible value information entry dependent on the data type information entry on the database matches the name of the possible value information described in the equivalent comparison condition, the name of the possible value information matches. In this case, the equivalent condition comparison statement is converted into a target program format from possible value information obtained by reading the database with the possible value name described in the source program as a key. I do.

【0025】また、データ型での取り得る値の情報を二
つ以上の離散値として設定し、前記取り得る値情報と複
数の離散値からなる、取り得る値情報の名称をエントリ
したデータベースを設け、前記取り得る値の名称をキー
として前記データベースを読出して得られた取り得る値
情報から前記等価条件比較文を前記目的プログラムの形
式に変換することを特徴とする。
[0025] Further, information of possible values in a data type is set as two or more discrete values, and a database is provided which includes the possible value information and a plurality of discrete values. The equivalence condition comparison statement is converted into the format of the target program from possible value information obtained by reading the database using the name of the possible value as a key.

【0026】また、データ型での取り得る値の情報を上
限値及び下限値で表現される連続値として設定し、前記
取り得る値情報と上限値及び下限値で表現される連続値
からなる、取り得る値情報の名称をエントリとしたデー
タベースを設け、前記取り得る値の名称をキーとして前
記データベースを読出して得られた取り得る値情報から
前記等価条件比較文を目的プログラムの形式に変換する
ことを特徴とする。
Further, information of a possible value in a data type is set as a continuous value represented by an upper limit value and a lower limit value, and the possible value information is composed of a continuous value represented by an upper limit value and a lower limit value. Providing a database having names of possible value information as entries, and converting the equivalence condition comparison statement into a target program format from possible value information obtained by reading the database using the possible value names as keys. It is characterized by.

【0027】[0027]

【作用】上記構成によれば、データ定義に必要なデータ
型情報の内部表現形式及びデータ型情報の名称からなる
データ型情報をエントリとするデータベースを設けて、
投入する原始プログラムではデータ項目の定義での型の
名称として、システム全体で共通に利用するデータベー
スのエントリのデータ型の名称を記述しておく。このよ
うな原始プログラムを入力して型情報変換手段によりデ
ータ型名称をキーとしてデータベースを読出して得られ
るデータ型情報を目的プログラムの形式に変換する。
According to the above construction, there is provided a database having entries of data type information consisting of an internal representation form of data type information necessary for data definition and a name of the data type information,
In the source program to be input, the name of the data type of the entry of the database commonly used in the entire system is described as the type name in the definition of the data item. Such a source program is input, and the data type information obtained by reading the database with the data type name as a key by the type information conversion means is converted into the format of the target program.

【0028】あるいは、データ型で利用可能な取り得る
値情報、利用可能な取り得る値情報の名称のエントリを
データ型情報のエントリの従属エントリとして登録した
データベースを設け、データ型情報によりデータ定義さ
れたデータ項目から、データ項目名とデータ型情報の対
応テーブルを作成し、投入する原始プログラムではデー
タ項目を比較項目とした等価条件比較文の比較相手とし
てデータベースの従属エントリの取り得る値情報の名称
を記述しておく。
Alternatively, a database is provided in which entries of available value information that can be used in a data type and names of available available value information are registered as subordinate entries of data type information entries, and data is defined by the data type information. Creates a correspondence table of data item names and data type information from the data items that have been added, and in the source program to be input, the name of the value information that can be taken by the dependent entry of the database as the comparison partner of the equivalence condition comparison statement that uses the data items as comparison items Is described.

【0029】このような原始プログラムを入力して値情
報変換手段により、データベース上の取り得る値情報の
エントリの名称と原始プログラムで等価比較条件に記述
した取り得る値情報の名称が一致するかを判定する。
By inputting such a source program, the value information conversion means determines whether or not the name of the possible value information entry in the database matches the name of the possible value information described in the equivalent comparison condition in the source program. judge.

【0030】名称が一致した場合は、取り得る値の名称
をキーとしてデータベースを読出して得られる、取り得
る値情報から等価条件比較文を目的プログラムの形式に
変換するので、システム全体で共通に利用するデータ項
目の型定義および等価条件比較式で利用可能な値の記述
が容易になり、各プログラム間の記述上の不正合による
信頼性の低下が防止できるとともに、システム全体で共
通に利用するデータ項目の型定義、等価条件比較式での
利用可能な値の変更、追加時のプログラムの修正を容易
にすることができる。
If the names match, the equivalent condition comparison statement is converted into the form of the target program from the possible value information obtained by reading the database using the possible name of the value as a key. This makes it easy to describe the types of data items that can be used and to describe the values that can be used in the equivalence condition comparison expression, prevent the reliability from being lowered due to incorrect descriptions in the programs, and use the data that is shared by the entire system. This makes it easy to change the type definition of an item, change an available value in an equality condition comparison expression, and modify a program when adding it.

【0031】[0031]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0032】図1は本発明の一実施例をしめすシステム
構成を示す構成図である。
FIG. 1 is a configuration diagram showing a system configuration showing an embodiment of the present invention.

【0033】図1のシステムは、原始プログラムSPと
言語処理系CP、知識データベースDB、目的プログラ
ムOP、ワークステーションWS、型情報テーブルTT
BL1からなる。
The system shown in FIG. 1 comprises a source program SP, a language processing system CP, a knowledge database DB, a target program OP, a workstation WS, and a type information table TT.
BL1.

【0034】ワークステーションWSは原始プログラム
を言語処理系CPに投入するためのものであり、言語処
理系CPは語彙解析手段、型情報変換手段、データ解析
手段、値情報変換手段、手続き解析手段、目的プログラ
ム生成手段、型情報テーブルTTBL1で構成されてお
り、原始プログラムSPを目的プログラムOPに変換す
る。
The workstation WS is for inputting a source program to the language processing system CP. The language processing system CP includes vocabulary analysis means, type information conversion means, data analysis means, value information conversion means, procedure analysis means, It is composed of a target program generating means and a type information table TTBL1, and converts a source program SP into a target program OP.

【0035】知識データベースDBには、図2に示すよ
うなデータ型名及びデータ型情報からなるデータ型情報
エントリ及び図3に示す各データ型で取り得る値の名称
及びデータ型で取り得る値情報からなる取りうる値情報
エントリを予め格納している。
The knowledge database DB has a data type information entry including a data type name and data type information as shown in FIG. 2 and a value name and a value information which can be obtained in each data type shown in FIG. The possible value information entry consisting of is stored in advance.

【0036】図2を参照すると、知識データベースDB
のデータ型情報エントリは、キー部及び属性部及び有効
桁部および取りうる値情報名部からなる。キー部は、デ
ータ型に対する名前であるとともに、知識データベース
DBの参照キーである。属性部は、キー部で命名された
データ型の属性(例えば外部10進数、内部10進数、
2進数、英数字文字、日本語文字等)を示すビット列B
1,B2,B3,…B31,B32からなる。有効桁部
は、属性部で示されるデータ属性の有効桁数を示す。た
とえば属性部がビット属性であればビット数を示し、属
性部が英数字文字であればバイト数を示す。取り得る値
情報名部は、そのデータ型で利用可能な値に対する名称
を示し、1つまたは2つ以上の名称の列からなる。この
取りうる値情報の名称は、知識データベースDBの取り
うる値情報エントリを参照する時のキーとして利用され
る。
Referring to FIG. 2, the knowledge database DB
The data type information entry includes a key part, an attribute part, a significant digit part, and a possible value information name part. The key part is a name for the data type and a reference key for the knowledge database DB. The attribute part is an attribute of the data type named in the key part (for example, an external decimal number, an internal decimal number,
Bit string B indicating binary numbers, alphanumeric characters, Japanese characters, etc.)
1, B2, B3,... B31, B32. The significant digit portion indicates the number of significant digits of the data attribute indicated by the attribute portion. For example, if the attribute part is a bit attribute, it indicates the number of bits, and if the attribute part is an alphanumeric character, it indicates the number of bytes. The possible value information name part indicates a name for a value available in the data type, and is composed of one or more columns of names. The name of the possible value information is used as a key when referring to the possible value information entry of the knowledge database DB.

【0037】図3に示す知識データベースDBの取りう
る値情報エントリは、キー部及び形式部及び取りうる値
の数及び値部からなる。
A possible value information entry of the knowledge database DB shown in FIG. 3 includes a key portion, a format portion, and the number and value portions of possible values.

【0038】キー部は命名された取りうる値の名前であ
ると共に、知識データベースDBの参照キーである。形
式部は、取りうる値の形式(たとえば、単一の値からな
る、上限値及び下限値からなる連続値、複数の値からな
る離散値)を示すビット列BB1,BB2,BB3,…
BB31,BB32からなる。取り得る値の数は、以降
に続く値部の数を示す。例えば取りうる値形式が、単一
の値を示していれば1を表し、取りうる値形式が、連続
値を示していれば2を表し、取りうる値形式が、離散値
を示していれば2以上を表す。値部は、取りうる値数で
示される数だけ繰り返され、それぞれは物理的な値を示
す。
The key part is a name of a value that can be named and a reference key of the knowledge database DB. The format part is a bit string BB1, BB2, BB3,... Indicating a possible value format (for example, a single value, a continuous value including an upper limit and a lower limit, and a discrete value including a plurality of values).
BB31 and BB32. The number of possible values indicates the number of subsequent value parts. For example, if the possible value format indicates a single value, it indicates 1, if the possible value format indicates a continuous value, it indicates 2, and if the possible value format indicates a discrete value, Represents 2 or more. The value part is repeated by the number indicated by the number of possible values, and each indicates a physical value.

【0039】以降の説明のために具体的に図4に示すよ
うなデータ属性エントリ(キー名称が店番号)と、図5
に示すような取りうる値情報エントリ(キー名称が東北
地区、関東地区、中部地区)が予め知識データベースD
Bに登録されているとする。
For the following description, data attribute entries (key names are store numbers) as shown in FIG. 4 and FIG.
Possible value information entries (key names are Tohoku area, Kanto area, Chubu area) as shown in
B is assumed to be registered.

【0040】つぎに本発明の第1実施例によるデータ型
展開方式について処理動作を説明する。
Next, the processing operation of the data type expansion system according to the first embodiment of the present invention will be described.

【0041】図6は、本発明の第1実施例によるデータ
型展開方式の処理のプロセスを示す。以下、図6及び図
4、図5とを参照しながら本発明の方式によるデータ型
展開方式の処理の流れを説明する。
FIG. 6 shows a process of a data type expansion system according to the first embodiment of the present invention. Hereinafter, the flow of processing of the data type expansion method according to the method of the present invention will be described with reference to FIGS. 6, 4, and 5.

【0042】まず、原始プログラムではデータ項目の定
義時には、データ型としてプログラム言語で規定された
データ型記述ではなく知識データベースDBに予め登録
されたデータ型名を記述する。先に掲げた記述文(1)
に対応して示せば次のようになる。
First, when defining a data item in a source program, a data type name registered in advance in the knowledge database DB is described instead of a data type description defined in a programming language as a data type. Description sentence (1) listed above
It is as follows if shown corresponding to.

【0043】 01 支店番号 USAGE 店番号 . …(7) 記述文(7)において、店番号とはデータ項目支店番号
のデータ属性の名称である。記述文(7)のように記述
された原始プログラムを言語処理系CPに入力すると、
図6に示すように、先ず語彙解析手段により語彙解析が
行われ記述文(7)は5個のトークンT1〜T5に変換
される。トークンT1は記述文(7)中の数字01に対
応する数字トークン、トークンT2とT3とT4はそれ
ぞれ利用者語支店番号と予約語USAGEと利用者語店
番号に対応する利用者語及び予約語トークン。トークン
T5は、.に対応する予約語トークンである。
01 branch number USAGE store number. (7) In the description (7), the store number is the name of the data attribute of the data item branch number. When a source program described as a description sentence (7) is input to the language processing system CP,
As shown in FIG. 6, first, vocabulary analysis is performed by the vocabulary analysis means, and the description sentence (7) is converted into five tokens T1 to T5. The token T1 is a numeric token corresponding to the numeral 01 in the description (7), and the tokens T2, T3, and T4 are user words and reserved words corresponding to the user word branch number, the reserved word USAGE, and the user word store number, respectively. token. The token T5 is: Is a reserved word token corresponding to.

【0044】次に、このトークン列T1〜T5に対して
型情報変換手段が起動され型情報変換が行われる。
Next, type information conversion means is activated for these token strings T1 to T5, and type information conversion is performed.

【0045】型情報変換処理では、トークン列T1〜T
5を入力してトークンT3のUSAGEを表す予約語ト
ークンの次の利用者語トークンの利用者語名“店番号”
をキーにして知識データベースDBをアクセスし、図4
に示すデータ型情報エントリTI1を入力する。TI1
から店番号に対応する属性部及び有効桁を解析し、入力
したトークンT3及びトークンT4を、予約語PICを
表すトークンT6及び、データの型及び有効桁を表す文
字9 (5)を表す文字のトークンT7に変換する。
In the type information conversion process, the token strings T1 to T
Enter "5" and the user word name "store number" of the user word token next to the reserved word token representing the USAGE of the token T3.
Access to the knowledge database DB by using
Of the data type information entry TI1 shown in FIG. TI1
, The attribute part and the significant digit corresponding to the store number are analyzed, and the input token T3 and token T4 are replaced with the token T6 representing the reserved word PIC and the character 9 (5) representing the data type and the significant digit 9 (5). Convert to token T7.

【0046】結果的に型情報変換処理で生成されたトー
クン列は、T1,T2,T6,T7,T5のトークン列
となる。トークン列T1,T2,T6,T7,T5は、
次のデータ構文解析の入力となる。このトークン列は、
図12に示した従来方式での記述文(1)に対応する語
彙解析の出力したトークン列T091,T092,T0
93,T094,T095と一致していることから本発
明方式のデータ型展開処理により記述文(7)が従来技
術の記述文(1)と同様に解析されることがわかる。
As a result, the token sequence generated by the type information conversion process is a token sequence of T1, T2, T6, T7, and T5. The token sequences T1, T2, T6, T7, T5 are
It is the input for the next data parsing. This token sequence is
The token strings T091, T092, T0 output by the vocabulary analysis corresponding to the description sentence (1) in the conventional method shown in FIG.
93, T094, and T095, it is understood that the description sentence (7) is analyzed in the same manner as the description sentence (1) of the prior art by the data type expansion processing of the method of the present invention.

【0047】なお、この場合の型情報処理では、以降に
説明する値情報変換処理のためにデータ名を示すトーク
ンT2及び予約語USAGEの次のデータ型情報のキー
を示すトークンT4から、データ名及びデータ型情報名
の対応テーブルであるTTBL1を作成する。
In the type information processing in this case, the token T2 indicating the data name and the token T4 indicating the key of the data type information next to the reserved word USAGE are used for the value information conversion processing described below. TTBL1 which is a correspondence table between the data type information name and the data type information name is created.

【0048】次に本発明の第2実施例による等価条件比
較文の解析でのデータ定数の展開方式を説明する。
Next, a description will be given of a method of expanding data constants in the analysis of an equivalence condition comparison statement according to the second embodiment of the present invention.

【0049】従来技術の説明で使用した記述文(5)
は、データ名支店番号が論理的に関東地区の支店番号で
あるかを判定していた。この判定と同じことを本発明の
方式で記述することを考える。原始プログラムには予め
以下の等価条件比較文を記述しておく。
Description sentence (5) used in the description of the prior art
Has determined whether the data name branch number is logically a branch number in the Kanto area. The same thing as this determination will be described by the method of the present invention. The following equivalent condition comparison statement is described in advance in the source program.

【0050】 IF 支店番号 = 関東地区 THEN 〜 …(8) 記述文(8)は従来技術で説明した記述文(5)と等価
にデータ名支店番号の値が関東地区の支店番号に等しい
ことを表現している。記述文(8)を記述文(5)と等
価に処理する本発明の方式について図7を参照して説明
する。
IF branch number = Kanto district THEN ~ ... (8) The description sentence (8) is equivalent to the description sentence (5) explained in the prior art, and the value of the data name branch number is equal to the branch number in the Kanto area. expressing. The method of the present invention for processing the description sentence (8) equivalently to the description sentence (5) will be described with reference to FIG.

【0051】図7は、本発明の方式の第2実施例による
等価条件比較文のデータ定数展開方式の処理のプロセス
を示す。図7においてまず語彙解析処理が行われ、あら
かじめ原始プログラムに記述された記述文(8)は、ト
ークン列T51,T52,T53,T54,T55に展
開される。次に値情報変換処理手段が起動されトークン
列T51,T52,T53,T54,T55を入力す
る。
FIG. 7 shows a process of processing the data constant expansion method of the equivalent condition comparison statement according to the second embodiment of the present invention. In FIG. 7, first, vocabulary analysis processing is performed, and a description sentence (8) described in advance in the source program is expanded into token strings T51, T52, T53, T54, and T55. Next, the value information conversion processing means is activated and inputs the token strings T51, T52, T53, T54, T55.

【0052】値情報変換処理では、入力したトークン列
を解析し予約語IFのあとに出現する利用者語トークン
T52と=を表す予約語トークンT53及び、利用者語
トークンT54から等価比較条件文を抽出する。次に=
を示す予約語トークンT53の直前/直後に出現する利
用者語トークンT52とT54が、型情報テーブルTT
BL1のデータ名として登録されているかを検索する。
正しい記述では、どちらか一方が登録されているか、ま
たは両方が登録されていないかであるため、両方が登録
されている場合については、エラーを表示し、両方が登
録されていない場合については、値情報変換を終了して
次のトークン列の入力を行う。本実施例では、支店番号
は型情報テーブルTTBL1に登録されているが、関東
地区は、登録されていない。このため支店番号で示され
るデータは、あらかじめ型情報名の記述によってデータ
定義されていることが分かる。次に型情報テーブルTT
BL1から支店番号に対応するデータ型情報名店番号を
得る。次にデータ型情報名店番号をキーとして知識デー
タベースDBを検索する。知識データベースDBには、
予め図4に示すようなエントリが登録されているため、
データ型情報エントリTI1が参照される。
In the value information conversion process, the input token sequence is analyzed, and a user word token T52 appearing after the reserved word IF and a reserved word token T53 representing = and an equivalent comparison condition statement are obtained from the user word token T54. Extract. Then =
The user word tokens T52 and T54 appearing immediately before / after the reserved word token T53 indicating the type information table TT
A search is made to see if the data is registered as the data name of BL1.
The correct statement is that either one is registered or both are not registered, so if both are registered, an error will be displayed, and if both are not registered, End the value information conversion and input the next token string. In this embodiment, the branch number is registered in the type information table TTBL1, but the Kanto area is not registered. Therefore, it is understood that the data indicated by the branch number is defined in advance by the description of the type information name. Next, the type information table TT
The data type information name store number corresponding to the branch number is obtained from BL1. Next, the knowledge database DB is searched using the data type information name store number as a key. In the knowledge database DB,
Since an entry as shown in FIG. 4 is registered in advance,
The data type information entry TI1 is referred to.

【0053】次にTI1中の値情報部の名称中に等価条
件比較文の他方のトークンで示される名称が存在するか
どうかチェックし、存在しなければエラーを表示して次
のトークン列の処理を実施する。本実施例では、トーク
ンT54で示される関東地区は存在する。次に関東地区
をキーにして知識データベースDBを検索する。同様の
操作により図5のように値情報エントリCI2が検索さ
れる。このCI2の形式部が、離散型であるためデータ
名“支店番号”に対しての等価比較条件文の比較相手を
値情報エントリの値部に対応させた等価比較条件文のト
ークン列を、論理結合子ORを示す予約語トークンで結
びつけて値情報エントリの取りうる値の数の数分だけ生
成する。この結果、図7に示すように値変換処理により
トークン列T51,T52,T53,T54,T55
は、トークン列T51,T56,T57,T58,T5
9,T510,T511,T512,T513,T51
4,T515,T516,T517,T518,T51
9,T520,T55に変換される。この変換された結
果のトークン列は、従来技術で説明した図13に示した
語彙解析の出力であるトークン列T101…T1017
と同じである。以上から本方式による記述文(8)は、
従来技術での記述文(5)と同じに解釈されることが分
かり、データ名支店番号は論理的に関東地区の支店であ
ることが判定できることがわかる。
Next, it is checked whether or not the name indicated by the other token of the equivalence condition comparison statement exists in the name of the value information section in TI1, and if not, an error is displayed and processing of the next token string is performed. Is carried out. In this embodiment, the Kanto area indicated by the token T54 exists. Next, the knowledge database DB is searched using the Kanto area as a key. By the same operation, the value information entry CI2 is searched as shown in FIG. Since the format part of this CI2 is a discrete type, the token string of the equivalent comparison condition statement in which the comparison partner of the equivalent comparison condition statement for the data name "branch number" is made to correspond to the value part of the value information entry is logically By linking with a reserved word token indicating a connector OR, the same number of values as the value information entry can take is generated. As a result, as shown in FIG. 7, the token strings T51, T52, T53, T54, T55
Are token strings T51, T56, T57, T58, T5
9, T510, T511, T512, T513, T51
4, T515, T516, T517, T518, T51
9, T520 and T55. The converted token sequence is a token sequence T101... T1017 which is an output of the vocabulary analysis shown in FIG.
Is the same as From the above, the description sentence (8) by this method is
It can be seen that it is interpreted in the same manner as the description sentence (5) in the prior art, and it can be understood that the data name branch number can be logically determined to be a branch in the Kanto area.

【0054】以上は2つ以上の離散値として取りうる値
情報を設定した場合のデータ定数展開方式について第3
の実施例も併せて説明したが、つぎに取りうる値の情報
を上限値及び下限値で表現される連続値として設定した
場合についての第4の実施例を説明する。前述の記述文
(1)で示すデータ名支店番号が記述(4)に示す中部
地区の支店であるかどうかを考える。従来技術での記述
は、以下のようになる。
The above is a description of the data constant expansion method in the case where value information that can be taken as two or more discrete values is set.
The fourth embodiment has been described above, but a fourth embodiment will be described in which information of possible values is set as a continuous value expressed by an upper limit and a lower limit. Consider whether or not the data name branch number shown in the description (1) is a branch in the Chubu district shown in the description (4). The description in the prior art is as follows.

【0055】 IF 支店番号 >= 30 AND 支店番号 <= 38 THEN 〜 …(9) 記述文(9)に対する従来技術での語彙解析処理結果
は、図14の語彙解析処理の出力するトークン列T11
2,T113,T114,T115,T116,T11
7,T118,T119,T1110のようになる。本
方式での記述文(9)と論理的に同じ記述は、以下のよ
うになる。
IF branch number> = 30 AND branch number <= 38 THEN... (9) The result of the vocabulary analysis process of the description sentence (9) according to the conventional technique is a token string T11 output by the vocabulary analysis process of FIG.
2, T113, T114, T115, T116, T11
7, T118, T119, and T1110. The description that is logically the same as the description sentence (9) in this method is as follows.

【0056】 IF 支店番号 = 中部地区 THEN 〜 …(10) 以降本方式により記述文(9)と記述文(10)が同じ
に解釈されることを示す。本方式による記述文(10)
の処理を図8に示す。図8を参照して説明すると、語彙
解析処理は、予め記述された記述文(10)を入力しト
ークン列T61,T62,T63,T64,T65を展
開する。次に値情報変換処理手段が起動されトークン列
T61,T62,T63,T64,T65を入力する。
IF branch number = Chubu district THEN ... (10) This means that the description sentence (9) and the description sentence (10) are interpreted in the same manner by this method. Description sentence by this method (10)
8 is shown in FIG. Referring to FIG. 8, in the vocabulary analysis process, a description sentence (10) described in advance is input, and token strings T61, T62, T63, T64, and T65 are developed. Next, the value information conversion processing means is activated and inputs the token strings T61, T62, T63, T64, T65.

【0057】値情報変換処理では、入力したトークン列
を解析し予約語IFのあとに出現する利用者語トークン
T62と=を表す予約語トークンT63及び、利用者語
トークンT64から等価比較条件文を抽出する。次に=
を示す予約語トークンT63の直前/直後に出現する利
用者語トークンT62とT64について型情報テーブル
TTBL1のデータ名として登録されているかを検索す
る。正しい記述では、どちらか一方が登録されている
か、両方が登録されていないかであるため、両方が登録
されている場合については、エラーを表示し、両方が登
録されていない場合については、値情報変換を終了して
次のトークン列の入力を行う。本実施例では、支店番号
は、型情報テーブルTTBL1に登録されているが、中
部地区は、登録されていない。このため支店番号で示さ
れるデータは、あらかじめ型情報名の記述によってデー
タ定義されていることが分かる。次に型情報テーブルT
TBL1から支店番号に対応するデータ型情報名店番号
を得る。次にデータ型情報名店番号をキーとして知識デ
ータベースDBを検索する。知識データベースDBに
は、予め図4に示すようなエントリが登録されているた
めデータ型情報エントリに対応するデータ型情報エント
リTI1が参照される。次にTI1中の値情報部の名称
中に等価条件比較文の他方のトークンで示される名称が
存在するかどうかチェックし、存在しなければエラーを
表示して次のトークン列の処理を実施する。本実施例で
は、トークンT64で示され中部地区は存在する。次に
中部地区をキーとして知識データベースDBを検索す
る。同様の操作により図5に示す値情報エントリCI3
が検索される。このCI3の形式部が、連続型であるた
めデータ名“支店番号”に対しての大なり条件の比較条
件文の下限値を値情報エントリの値部に対応させた比較
条件文のトークン列を、論理結合子ANDを示す予約語
トークンで結びつけて、データ名“支店番号”に対して
の小なり条件の比較条件文の上限値を値情報エントリの
2番目の値部に対応させた比較条件文のトークン列を生
成する。この結果、図8に示すように値変換処理により
トークン列T61,T62,T63,T64,T65
は、トークン列T61,T66,T67,T68,T6
9,T610,T611,T612,T65に変換され
る。この変換された結果のトークン列は、従来技術で説
明した図14に示した語彙解析の出力であるトークン列
T111…T1110と同じである。以上から本方式に
よる記述文(10)は、従来技術での記述文(9)と同
じ解釈されることが分かり、データ名、支店番号が論理
的に中部地区の支店であることが判定できることがわか
る。
In the value information conversion processing, the input token sequence is analyzed, and a user word token T62 appearing after the reserved word IF and a reserved word token T63 representing = and an equivalent comparison condition statement are obtained from the user word token T64. Extract. Then =
Is searched for the user word tokens T62 and T64 appearing immediately before / after the reserved word token T63 indicating whether or not they are registered as data names in the type information table TTBL1. In the correct description, either one is registered or both are not registered, so if both are registered, an error will be displayed, and if both are not registered, the value will be displayed. The information conversion is completed and the next token string is input. In this embodiment, the branch number is registered in the type information table TTBL1, but the Chubu area is not registered. Therefore, it is understood that the data indicated by the branch number is defined in advance by the description of the type information name. Next, type information table T
The data type information name store number corresponding to the branch number is obtained from TBL1. Next, the knowledge database DB is searched using the data type information name store number as a key. Since an entry as shown in FIG. 4 is registered in the knowledge database DB in advance, the data type information entry TI1 corresponding to the data type information entry is referred to. Next, it is checked whether or not the name indicated by the other token of the equivalence condition comparison statement exists in the name of the value information section in TI1, and if not, an error is displayed and the processing of the next token string is performed. . In the present embodiment, a central area indicated by the token T64 exists. Next, the knowledge database DB is searched using the Chubu district as a key. By the same operation, the value information entry CI3 shown in FIG.
Is searched. Since the format part of this CI3 is a continuous type, the token string of the comparison condition statement in which the lower limit value of the comparison condition statement of the greater-than condition for the data name "branch number" corresponds to the value part of the value information entry is described. , A comparison condition in which the upper limit value of the comparison condition statement of the less-than condition for the data name “branch number” is made to correspond to the second value part of the value information entry by linking with a reserved word token indicating a logical connector AND. Generate a token sequence for the statement. As a result, as shown in FIG. 8, the token strings T61, T62, T63, T64, T65 are subjected to the value conversion processing.
Are the token strings T61, T66, T67, T68, T6
9, T610, T611, T612, and T65. The token sequence as a result of the conversion is the same as the token sequence T111... T1110 which is the output of the vocabulary analysis shown in FIG. From the above, it can be understood that the description sentence (10) according to the present method is interpreted in the same manner as the description sentence (9) in the prior art, and that the data name and the branch number can be logically determined to be a branch in the Chubu district. Understand.

【0058】最後に支店番号で示されるデータの属性
が、従来の外部10進5桁から外部10進6桁に拡張さ
れ、且つ関東地区を示す支店番号に15が追加された場
合について説明する。
Finally, a case where the attribute of the data indicated by the branch number is extended from the conventional five-digit external decimal to six-digit external decimal, and 15 is added to the branch number indicating the Kanto area will be described.

【0059】この場合従来方式では、記述文(1)から
以下の記述に変更しなければならない。
In this case, in the conventional system, the description (1) must be changed to the following description.

【0060】 01 支店番号 PIC 9(6). …(11) またデータ名が関東地区かどうかの等価比較条件文は、
記述文(5)から記述文(6)に変更しなければならな
い。この記述変更は、システムを構成するプログラムが
数本と少ない場合はあまり負担とはならないが、数百
本、数千本のプログラムからなるシステムでは多大の工
数を要する。また記述誤りも生じやすいためシステムの
信頼性を低下させる要因となる。
01 Branch number PIC 9 (6). … (11) Also, the equivalence comparison statement for whether the data name is in the Kanto area is
The description (5) must be changed to the description (6). This description change is not a burden when the number of programs constituting the system is as small as several, but requires a great deal of man-hours in a system composed of hundreds or thousands of programs. In addition, a description error is likely to occur, which causes a reduction in system reliability.

【0061】これに対して本発明の方式では、知識デー
タベースに登録された情報を図4、図5に示す内容か
ら、図9、図10に示す内容に変更し、再度発明の方式
で翻訳すればよいことは、図4、図5の内容を図9、図
10の内容としてこれまで説明した実施例をそのまま繰
り返せば明らかである。
On the other hand, according to the method of the present invention, the information registered in the knowledge database is changed from the contents shown in FIGS. 4 and 5 to the contents shown in FIGS. What is necessary is clear if the contents of FIGS. 4 and 5 are replaced with the contents of FIGS. 9 and 10 and the embodiment described above is repeated as it is.

【0062】[0062]

【発明の効果】以上に説明したように、本発明によれば
データ型及びそのデータ型で利用可能な値をデータベー
スに記憶しておき、システム全体で共通に利用するデー
タ項目の型定義および等価条件比較式での利用可能な値
の展開に利用することによりシステム全体で共通に利用
するデータ項目の型定義および等価条件比較式で利用可
能な値の記述を容易にし、かつ各プログラム間の記述上
の不正合によるシステムの信頼性の低下を防止すること
ができる。
As described above, according to the present invention, a data type and a value usable in the data type are stored in a database, and the type definition and equivalent of a data item commonly used in the entire system are stored. It is used to expand the values that can be used in conditional comparison expressions to facilitate the type definition of data items that are commonly used throughout the system and the description of values that can be used in equivalent condition comparison expressions, and between programs. It is possible to prevent a decrease in the reliability of the system due to the above illegal combination.

【0063】また、システム全体で共通に利用するデー
タ項目の型定義および等価条件比較式での利用可能な値
の変更または値の追加時のプログラムの修正を容易にし
保守性を向上させることができるなどの効果がある。
Further, it is possible to easily change the type definition of the data item commonly used in the entire system and change the usable value in the equivalent condition comparison expression or to modify the program when adding the value, thereby improving maintainability. And so on.

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

【図1】本発明の実施例によるシステム構成図である。FIG. 1 is a system configuration diagram according to an embodiment of the present invention.

【図2】図1に示す知識データベースのデータ型情報エ
ントリを示す図である。
FIG. 2 is a diagram showing data type information entries of the knowledge database shown in FIG. 1;

【図3】図1に示す知識データベースの値情報エントリ
を示す図である。
FIG. 3 is a diagram showing a value information entry of the knowledge database shown in FIG. 1;

【図4】図2に示すデータ型情報エントリの具体例を示
す図である。
FIG. 4 is a diagram showing a specific example of the data type information entry shown in FIG. 2;

【図5】図3に示す値情報エントリの具体例を示す図で
ある。
FIG. 5 is a diagram showing a specific example of a value information entry shown in FIG. 3;

【図6】本発明の第1の実施例によるデータ型展開方式
の処理プロセスを示す図である。
FIG. 6 is a diagram showing a processing process of a data type expansion system according to the first embodiment of the present invention.

【図7】本発明の第2の実施例によるデータ定数展開方
式の処理プロセスを示す図である。
FIG. 7 is a diagram showing a processing process of a data constant expansion method according to a second embodiment of the present invention.

【図8】本発明の第4の実施例によるデータ定数展開方
式の処理プロセスを示す図である。
FIG. 8 is a diagram showing a processing process of a data constant expansion method according to a fourth embodiment of the present invention.

【図9】図4に示すデータ型情報エントリのデータ属性
拡張を示す図である。
9 is a diagram showing a data attribute extension of the data type information entry shown in FIG. 4;

【図10】図5に示す値情報エントリの値部追加を示す
図である。
FIG. 10 is a diagram showing addition of a value part of the value information entry shown in FIG. 5;

【図11】従来技術のシステム構成図である。FIG. 11 is a system configuration diagram of a conventional technique.

【図12】従来技術のデータ型の解析処理の処理プロセ
スを示す図である。
FIG. 12 is a diagram showing a processing process of a conventional data type analysis process.

【図13】従来技術での等価条件比較文の解析処理の処
理プロセスを示す図である。
FIG. 13 is a diagram showing a processing process of an analysis process of an equivalent condition comparison sentence in the related art.

【図14】従来技術での取り得る値が連続値の場合の解
析処理の処理プロセスを示す図である。
FIG. 14 is a diagram showing a processing process of an analysis process in a case where possible values are continuous values in the related art.

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

SP 原始プログラム WS ワークステーション CP 言語処理系 DB 知識データベース OP 目的プログラム TTBL1 型情報テーブル TI1〜TI2 データ型情報エントリ CI1〜CI4 値情報エントリ T1〜T1110 トークン SP source program WS workstation CP language processing system DB knowledge database OP target program TTBL1 type information table TI1 to TI2 data type information entry CI1 to CI4 value information entry T1 to T1110 token

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 9/45 G06F 9/06 G06F 9/44 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 9/45 G06F 9/06 G06F 9/44

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原始プログラムを目的プログラムに変換
する言語処理系におけるデータ型展開方式において、 データ定義に必要なデータ型情報及び前記データ型情報
の名称に対してそのデータ型で利用可能な取り得る値情
報及び前記データ型で利用可能な前記取り得る値情報の
名称のエントリを前記データ型情報のエントリの従属エ
ントリとして登録したデータベースと、 前記原始プログラムを入力すると前記データ型情報を用
いてデータ定義されたデータ項目の定義の記述からデ
タ項目名と前記データ型情報の対応テーブルを作成する
型情報テーブル作成手段と、 前記原始プログラムでは前記データ型情報により前記
ータ定義された前記データ項目を比較項目とした等価条
件比較文の比較相手として前記取り得る値情報の名称を
記述する値情報変換手段と、 記値情報変換手段により前記データ型情報によりデー
タ定義された前記データ項目の前記データベース上の
データ型情報エントリに従属する取り得る値情報の
エントリの名称と前記等価条件比較文の比較条件に記述
した前記取り得る値情報の名称が一致するかどうか
する判定手段と、 前記判定の後、 前記取り得る値情報の名称が一致した場
合には該原始プログラムに記述された前記取り得る値の
名称をキーとして前記データベースを読み出して得られ
前記取り得る値情報から前記等価条件比較文を前記
的プログラムの形式に変換する変換手段とを備えたこと
を特徴とするデータ展開方式。
1. A source program is converted into a target program.
In Data type expansion method in the language processing system for data type information and said take-up available at the possible value information and the available data types in data type for the name of the data type information necessary for data definition A database in which the entry of the name of the value information to be obtained is registered as a subordinate entry of the entry of the data type information , and the data type information is used when the source program is input .
To create a description Karade over <br/> data item name definition data defined data items have a correspondence table of the data type information
And type information table generating means, in said source program name of the take-up possible value information as a comparison partner equivalence condition comparison statement that the comparison item the data item of which de <br/> over data defined by the data type information and values describing information converting means, prior to the said database of said data items that are data defined by the data type information by the previous SL value information converting means
Determining the name of the serial data type information the up get value information describing the comparison condition with the name entry in the dependent possible values information the equivalent condition comparison statement entry is whether determine <br/> constant or consistent means and, after said determination, said take-up to obtain the value information name if a match was obtained by reading the database the name of the take-up possible values described in the raw starting programs as the key of the winding obtained value information data type expansion method, characterized by comprising converting means for converting the equivalent condition compared statement format of the eye <br/> programs from.
【請求項2】 請求項に記載のデータ展開方式にお
いて、データ型での前記取り得る値の情報を二つ以上の
離散値として設定し、前記取り得る値情報と複数の離散
値からなる前記取り得る値情報の名称をエントリとした
第2のデータベースを設け、前記取り得る値の名称をキ
ーとして前記第2のデータベースを読み出して得られた
前記取り得る値情報から前記等価条件比較文を前記目的
プログラムの形式に変換することを特徴とするデータ
展開方式。
2. The data type expansion system according to claim 1 , wherein the information on the possible values in the data type is set as two or more discrete values, and the information comprises the possible value information and a plurality of discrete values. and an entry name of the take-up possible value information
A second database is provided and obtained by reading out the second database using the name of the possible value as a key
Datatype <br/> expansion method, characterized by converting said up possible value information the equivalent condition compared statement format of the object program.
【請求項3】 請求項に記載のデータ展開方式にお
いて、データ型での前記取り得る値の情報を上限値及び
下限値で表現される連続値として設定し、前記取り得る
値情報と前記上限値及び下限値で表現される連続値から
なる前記取り得る値情報の名称をエントリとした第3の
データベースを設け、前記取り得る値の名称をキーとし
て前記第3のデータベースを読み出して得られた前記
り得る値情報から前記等価条件比較文を前記目的プログ
ラムの形式に変換することを特徴とするデータ型展開方
式。
In Data type expansion method as claimed in claim 1, further comprising: setting the information of the up possible values of the data type as a continuous value represented by the upper and lower limit values, the said take-up to obtain the value information the third <br/> database with the name of the take-up possible values information of contiguous value represented by the upper limit value and the lower limit value and an entry is provided, the third database name of the take-up obtained value as a key data type expansion method, characterized in that conversion from the preparative <br/> Ri obtained value information obtained by reading the equivalent condition compared statement format of the object program.
JP21873292A 1992-07-27 1992-07-27 Data type and data constant expansion method Expired - Fee Related JP3216660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21873292A JP3216660B2 (en) 1992-07-27 1992-07-27 Data type and data constant expansion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21873292A JP3216660B2 (en) 1992-07-27 1992-07-27 Data type and data constant expansion method

Publications (2)

Publication Number Publication Date
JPH0651994A JPH0651994A (en) 1994-02-25
JP3216660B2 true JP3216660B2 (en) 2001-10-09

Family

ID=16724571

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21873292A Expired - Fee Related JP3216660B2 (en) 1992-07-27 1992-07-27 Data type and data constant expansion method

Country Status (1)

Country Link
JP (1) JP3216660B2 (en)

Also Published As

Publication number Publication date
JPH0651994A (en) 1994-02-25

Similar Documents

Publication Publication Date Title
US7305404B2 (en) Data structure and management system for a superset of relational databases
CN101036141B (en) A database management system with persistent, user- accessible bitmap values
US5930806A (en) Method and system for data migration from network database to relational database
US6374252B1 (en) Modeling of object-oriented database structures, translation to relational database structures, and dynamic searches thereon
KR960706138A (en) SEMANTIC OBJECT MODELING SYSTEM FOR CREATING RELATIONAL DATABASE SCHEMAS
US20030195873A1 (en) Identifier vocabulary data access method and system
JPH10505440A (en) Programming language-computer-based information access method and apparatus enabling SQL-based manipulation of concrete data files
KR20010090596A (en) Method for maintaining exception tables for a check utility
Chan Learn SQL Using MySQL in One Day and Learn It Well: SQL for Beginners with Hands-On Project
EP1687741A1 (en) Data structure and management system for a superset of relational databases
US7730471B2 (en) Method and system for processing COBOL language record description entries that specify data items that include a varying length characteristic and computer readable storage medium for storing instructions for performing the method
JP3216660B2 (en) Data type and data constant expansion method
JP4562749B2 (en) Document compression storage method and apparatus
US20070239794A1 (en) Method and system for updating logical information in databases
US8447791B1 (en) Systems and methods for altering limit key values
US5819277A (en) Method for generating SQL commands to create an integrated global schema
Schildt Herb Schildt's C++ programming cookbook
JP6361472B2 (en) Correspondence information generation program, correspondence information generation apparatus, and correspondence information generation method
US5065335A (en) Decoding type select logic generating method
JPH06131232A (en) Multiple definition correction assisting device for data dictionary
CA1301366C (en) Interactive error handling means in database management
US8849866B2 (en) Method and computer program product for creating ordered data structure
US20240232149A9 (en) Relational database system
JP2722684B2 (en) File system search device
JPH11232149A (en) File comparison processing method and device, and medium storing file comparison processing program

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070803

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080803

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080803

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090803

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20090803

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100803

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees