JPH05334062A - Logic description difference extracting system - Google Patents

Logic description difference extracting system

Info

Publication number
JPH05334062A
JPH05334062A JP4164366A JP16436692A JPH05334062A JP H05334062 A JPH05334062 A JP H05334062A JP 4164366 A JP4164366 A JP 4164366A JP 16436692 A JP16436692 A JP 16436692A JP H05334062 A JPH05334062 A JP H05334062A
Authority
JP
Japan
Prior art keywords
syntax
data
difference
language
conversion
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
JP4164366A
Other languages
Japanese (ja)
Inventor
Fumihiko Niimi
文彦 新美
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 JP4164366A priority Critical patent/JPH05334062A/en
Publication of JPH05334062A publication Critical patent/JPH05334062A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To facilitate the version number management of language description data by reducing the pseudo difference which is outputted as the difference because of the difference of syntax. CONSTITUTION:A syntax conversion mechanism 41 performs syntax conversion of language description data A and B based on language syntax definition data and syntax conversion rules and outputs converted data A and B. Converted data are divided into units of difference extraction and are edited by a description editing mechanism 42 to output edited data A and B, and the difference in column is extracted and outputted by a difference extracting mechanism 43. In this case, inputted language description data 33 is subjected to syntax analysis based on language syntax definition data 31. Syntax conversion rules 32 are taken out one by one to retrieve whether data subjected to structure analysis has a part having the same structure as a conversion template in the rule or not; and if it has a part having the same structure, syntax conversion rules 32 are applied to convert the language description data 33 in accordance with the template after conversion.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はハードウェア、ソフトウ
ェアの論理機能を言語記述を用いて設計するための支援
システムに利用し、論理的な差分を自動的に抽出する論
理記述差分抽出方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logical description difference extraction system for automatically extracting a logical difference by using a hardware or software logical function in a support system for designing using a language description.

【0002】[0002]

【従来の技術】従来の、この種の論理記述差分抽出方式
は言語を用いて表現された文字列の集合文字の並びの差
分を単に抽出している。また、論理記述を専用のシミュ
レータを用いて計算機上で実行させ、その動作の相違に
より差分の有無を抽出している。
2. Description of the Related Art A conventional logical description difference extraction method of this type simply extracts the difference in the arrangement of a set of character strings expressed using a language. In addition, the logic description is executed on a computer using a dedicated simulator, and the presence or absence of a difference is extracted by the difference in the operation.

【0003】[0003]

【発明が解決しようとする課題】ところで、上記従来例
の論理記述差分抽出方式では、言語記述固有の構文知識
を用いていない。すなわち、単に言語記述データを文字
列として扱うのみで論理的に等価な構文を用いた二つの
言語記述についても異なる文字列を差分として抽出して
いる。このため、擬似的な差分が多く抽出されてしまう
という問題があった。一方、計算機上で言語記述を実行
させるシミュレーション方式は差分を発見するためのテ
ストデータを別に作成する必要がある。この場合、多く
の処理過程を必要とし、差分の有無は判定できるものの
差分の箇所の特定が困難であるという問題があった。
By the way, the above-mentioned conventional logical description difference extraction method does not use the syntactic knowledge peculiar to the language description. That is, different character strings are extracted as a difference between two language descriptions using a logically equivalent syntax by merely handling the language description data as a character string. Therefore, there is a problem that many pseudo differences are extracted. On the other hand, in the simulation method of executing language description on a computer, it is necessary to separately create test data for finding differences. In this case, many processing steps are required, and it is possible to determine the presence or absence of a difference, but it is difficult to specify the location of the difference.

【0004】本発明は、このような従来の技術における
問題を解決するものであり、言語記述データの版数管理
を容易にできる論理記述差分抽出方式の提供を目的とす
る。
SUMMARY OF THE INVENTION The present invention solves the above problems in the prior art, and an object thereof is to provide a logical description difference extraction method that can easily manage the version number of language description data.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、ハードウェア、ソフトウェアの論理機能
を表現する少なくとも二つの言語記述データの論理的差
分を自動抽出する論理記述差分抽出方式において、言語
記述データを構文変更ルールに基づいて論理的に等価な
構文に変換する構文変換機構と、出力される差分データ
の形式を編集する記述編集機構とを備えた構成としてあ
る。
In order to achieve the above object, the present invention provides a logical description difference extraction method for automatically extracting a logical difference between at least two language description data representing logical functions of hardware and software. In the above, the structure is provided with a syntax conversion mechanism for converting the language description data into a logically equivalent syntax based on the syntax modification rule, and a description editing mechanism for editing the format of the output difference data.

【0006】[0006]

【作用】上記構成からなる本発明の論理記述差分抽出方
式は、言語記述データを構文変更ルールに基づいて論理
的に等価な構文に変換し、出力される差分データの形式
を編集するようにしたので、言語記述データの版数管理
が容易になる。
In the logical description difference extraction method of the present invention having the above configuration, the language description data is converted into a logically equivalent syntax based on the syntax change rule, and the format of the output difference data is edited. Therefore, it becomes easy to manage the version number of the language description data.

【0007】[0007]

【実施例】次に、本発明の論理記述差分抽出方式の実施
例を図面に基づいて説明する。図1は実施例の構成を示
している。図1において、この例は、言語記述データ3
3を入力する入力装置1と、言語記述データ33の差分
抽出に必要な処理を行う演算処理装置2と、入力装置1
から入力された言語記述データ33及び差分データ34
等を格納するデータ記憶装置3と、構文変換機構41、
記述編集機構42、差分抽出機構43を含む論理差分抽
出機構4と、差分抽出結果である差分データ34を出力
する出力装置5とで構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the logical description difference extraction method of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of the embodiment. In FIG. 1, this example shows language description data 3
3, an input device 1 for inputting 3, an arithmetic processing device 2 for performing a process necessary for extracting a difference of the language description data 33, and an input device 1.
Language description data 33 and difference data 34 input from
A data storage device 3 for storing, etc., a syntax conversion mechanism 41,
It is composed of a logical difference extraction mechanism 4 including a description editing mechanism 42 and a difference extraction mechanism 43, and an output device 5 for outputting difference data 34 which is a difference extraction result.

【0008】次に、この実施例の構成における動作につ
いて説明する。図2は言語記述データA、言語記述デー
タBを論理差分抽出機構を用いて処理する流れを示して
いる。図2において、構文変換機構41は言語記述デー
タA,Bを言語構文定義データ及び構文変換ルールに基
づいて構文変換を行ない変換データA,Bをそれぞれ出
力する。次に変換データを記述編集機構42により差分
抽出の単位に分割編集して編集データA,Bを出力す
る。次に差分抽出機構43により図7に示す列の差分を
抽出して出力する。
Next, the operation of the configuration of this embodiment will be described. FIG. 2 shows the flow of processing the language description data A and the language description data B using the logical difference extraction mechanism. In FIG. 2, the syntax conversion mechanism 41 performs syntax conversion on the language description data A and B based on the language syntax definition data and the syntax conversion rule, and outputs conversion data A and B, respectively. Next, the conversion data is divided and edited by the description editing mechanism 42 in units of difference extraction, and edited data A and B are output. Next, the difference extracting mechanism 43 extracts and outputs the differences in the columns shown in FIG.

【0009】次に、図2中の構文変換機構41の処理の
流れを説明する。図3は構文変換機構41の処理の流れ
を示している。図3において、入力された言語記述デー
タ33は言語構文定義データ31に基づいて構文解析が
行なわれる。構文変換ルール32よりルールを順次一つ
ずつ取り出し、構造解析されたデータ中にルール中の変
換テンプレートと同一の構造をもつ部分があるか否かを
検索する。同一の構造の部分があれば、構文変換ルール
32を適用して変換後のテンプレートに従って言語記述
データ33を変換する。すべての構文変換ルール32を
取り出して適用することにより変換後の言語記述データ
33が作成される。これにより言語記述データ33で論
理的に等価な構文については同一の構文規則を用いた言
語記述データ33が作成される。
Next, the flow of processing of the syntax conversion mechanism 41 in FIG. 2 will be described. FIG. 3 shows a processing flow of the syntax conversion mechanism 41. In FIG. 3, the input language description data 33 is syntactically analyzed based on the language syntactic definition data 31. The rules are sequentially taken out one by one from the syntax conversion rule 32, and it is searched whether or not the structure-analyzed data has a portion having the same structure as the conversion template in the rule. If there is a part having the same structure, the syntax conversion rule 32 is applied to convert the language description data 33 according to the converted template. The language description data 33 after conversion is created by extracting and applying all the syntax conversion rules 32. As a result, the language description data 33 is created using the same syntax rule for the logically equivalent syntax in the language description data 33.

【0010】構文解析のための言語構文定義データ31
をテンプレートの形式で表現した例を図4に示す。ま
た、論理的に等価なテンプレートを変換前、変換後のテ
ンプレートのペアで定義した構文変換ルール32を図5
に示す。さらに、差分抽出の単位に分割するために言語
記述データ33を改行文字、TAB文字を用いて編集し
た例を図6に示す。また、行単位に分割された言語記述
データ33の各行について差分の有無を検索して抽出す
る列を図7に示す。このように差分データ34は編集後
の言語記述データ33の各行の差分をペアで表示出力す
ることに差分の箇所を示しており、入力の言語記述デー
タ33との対応付けを容易にするためのソース行番号
(No.)が付加される。
Language syntax definition data 31 for syntax analysis
FIG. 4 shows an example in which is expressed in the form of a template. Further, the syntax conversion rule 32 in which logically equivalent templates are defined by a pair of templates before and after conversion is shown in FIG.
Shown in. Further, FIG. 6 shows an example in which the language description data 33 is edited by using a line feed character and a TAB character in order to divide into units of difference extraction. Further, FIG. 7 shows the columns that are searched for and extracted for the presence or absence of a difference in each line of the language description data 33 divided into line units. As described above, the difference data 34 indicates the difference portion by displaying and outputting the difference of each line of the edited language description data 33 as a pair, and facilitates the correspondence with the input language description data 33. The source line number (No.) is added.

【0011】[0011]

【発明の効果】以上のように、本発明の論理記述差分抽
出方式は、ハードウェア、ソフトウェアの論理機能を表
現した言語記述データの差分抽出において論理的に等価
であるが、構文が異なるために差分として出力される擬
似的な差分を減少させるようにしているため、言語記述
データの版数管理を容易にできるという効果を有する。
As described above, the logical description difference extraction method of the present invention is logically equivalent in the difference extraction of language description data expressing the logical functions of hardware and software, but the syntax is different. Since the pseudo difference output as the difference is reduced, the version number of the language description data can be easily managed.

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

【図1】本発明の論理記述差分抽出方式の実施例におけ
る構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration in an embodiment of a logical description difference extraction method of the present invention.

【図2】実施例における言語記述データA,Bを論理差
分抽出機構を用いて処理する流れを示す図である。
FIG. 2 is a diagram showing a flow of processing language description data A and B in the embodiment using a logical difference extraction mechanism.

【図3】実施例における構文変換機構の処理の流れを示
す図である。
FIG. 3 is a diagram showing a processing flow of a syntax conversion mechanism in the embodiment.

【図4】実施例における構文解析のための言語構文定義
データをテンプレートの形式での表現を示す図である。
FIG. 4 is a diagram showing an expression in a template format of language syntax definition data for syntax analysis in an example.

【図5】実施例における論理的に等価なテンプレートを
変換前、変換後のテンプレートのペアで定義した構文変
換ルールを示す図である。
FIG. 5 is a diagram showing a syntax conversion rule in which a logically equivalent template in the embodiment is defined by a pair of templates before and after conversion.

【図6】実施例における差分抽出の単位に分割するため
に言語記述データを改行文字、TAB文字を用いた編集
内容を示す図である。
FIG. 6 is a diagram showing edit contents using line feed characters and TAB characters in language description data for dividing into units of difference extraction in the embodiment.

【図7】実施例における行単位に分割された言語記述デ
ータの各行について差分の有無の検索、抽出状態を示す
図である。
FIG. 7 is a diagram showing a search / extraction state of presence / absence of a difference for each line of language description data divided into line units in the embodiment.

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

1 入力装置 2 演算処理装置 3 データ記憶装置 4 論理差分抽出機構 5 出力装置 31 言語構文定義データ 32 構文変換ルール 33 言語記述データ 34 差分データ 41 構文変換機構 42 記述編集機構 43 差分抽出機構 1 Input Device 2 Arithmetic Processing Device 3 Data Storage Device 4 Logical Difference Extraction Mechanism 5 Output Device 31 Language Syntax Definition Data 32 Syntax Conversion Rule 33 Language Description Data 34 Difference Data 41 Syntax Conversion Mechanism 42 Description Editing Mechanism 43 Difference Extraction Mechanism

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ハードウェア、ソフトウェアの論理機能
を表現する少なくとも二つの言語記述データの論理的差
分を自動抽出する論理記述差分抽出方式において、 言語記述データを構文変更ルールに基づいて論理的に等
価な構文に変換する構文変換機構と、 出力される差分データの形式を編集する記述編集機構
と、 を備えることを特徴とする論理記述差分抽出方式。
1. A logical description difference extraction method for automatically extracting a logical difference between at least two language description data representing logical functions of hardware and software, and the language description data is logically equivalent based on a syntax change rule. A logical description difference extraction method characterized by comprising a syntax conversion mechanism for converting to a different syntax and a description editing mechanism for editing the format of the output difference data.
JP4164366A 1992-05-29 1992-05-29 Logic description difference extracting system Pending JPH05334062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4164366A JPH05334062A (en) 1992-05-29 1992-05-29 Logic description difference extracting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4164366A JPH05334062A (en) 1992-05-29 1992-05-29 Logic description difference extracting system

Publications (1)

Publication Number Publication Date
JPH05334062A true JPH05334062A (en) 1993-12-17

Family

ID=15791781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4164366A Pending JPH05334062A (en) 1992-05-29 1992-05-29 Logic description difference extracting system

Country Status (1)

Country Link
JP (1) JPH05334062A (en)

Similar Documents

Publication Publication Date Title
JPH05324713A (en) Method and system for natural language processing
JPH02109127A (en) Specification processing method
JP2004246440A (en) Morphemic analyzing device, natural language processor, and morphemic analyzing method and program
JPH0540616A (en) Method for generating program specifications
JPS58192173A (en) System for selecting word used in translation in machine translation
JPH05334062A (en) Logic description difference extracting system
JPH04167049A (en) Document processor
JPS63221475A (en) Analyzing method for syntax
JPH07146785A (en) Method for automatically generating program and device therefor
JP3003459B2 (en) Program creation support device
JPS58112127A (en) Forming system of data input means
JP3419483B2 (en) Natural language processing apparatus and method
JPH06214777A (en) Method and device for developiig program
JPS6361329A (en) Programming device
JPH03149659A (en) Machine translating device
JP2598082B2 (en) Documentation device and documentation method for knowledge processing language
JPS6266371A (en) Text separation type learning system
JPH04230572A (en) Japanese sentence dividing device
JPH0778166A (en) Translating method and machine translation system
JPH02120976A (en) System for forming confirmation sentence of japanese sentence analyzing result
JPH08166956A (en) Machine translation system
JPH06103023A (en) Japanese code conversion processing system
JPH04112365A (en) Machine translation device
JPS6225324A (en) Document understanding system
JPH04248624A (en) Program conversion processor