JPH0319021A - Production system for inverted code conversion dictionary file - Google Patents
Production system for inverted code conversion dictionary fileInfo
- Publication number
- JPH0319021A JPH0319021A JP15435289A JP15435289A JPH0319021A JP H0319021 A JPH0319021 A JP H0319021A JP 15435289 A JP15435289 A JP 15435289A JP 15435289 A JP15435289 A JP 15435289A JP H0319021 A JPH0319021 A JP H0319021A
- Authority
- JP
- Japan
- Prior art keywords
- code
- code conversion
- dictionary file
- conversion
- conversion table
- 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
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 139
- 238000000034 method Methods 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は逆コード変換辞書ファイルの作成方式に関し、
特に既存のコード変換辞書ファイルを用いた逆のコード
変換を行う逆コード変換辞書ファイルの作成方式に関す
る。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a method for creating a reverse code conversion dictionary file.
In particular, the present invention relates to a method for creating a reverse code conversion dictionary file that performs reverse code conversion using an existing code conversion dictionary file.
従来、コード変換に使用されるコード変換辞書ファイル
の作成方式は、コード変換辞書ファイルを作成するのに
必要な情報として、変換対象範囲内の変換前コードとそ
れに対する変換後コードを全て記述することにより作成
していた。Conventionally, the method of creating a code conversion dictionary file used for code conversion is to write all the pre-conversion codes within the conversion target range and the corresponding post-conversion codes as the information necessary to create the code conversion dictionary file. It was created by.
上述した従来のコード変換辞書ファイルの作成方式では
、変換対象範囲内の変換前コードとそれに対する変換後
コードとを全て記述することになっているため、逆のコ
ード変換辞書ファイルを作成する場合にも、変換前コー
ドと変換後コードを逆にした記述が同数必要となるので
、記述するデータ量が多く記述に費やす時間が多くなり
、記述ミスの発生率も高くなるという欠点がある。In the conventional code conversion dictionary file creation method described above, all pre-conversion codes and corresponding post-conversion codes within the conversion target range are written, so when creating a reverse code conversion dictionary file, However, since the same number of descriptions of the pre-conversion code and the post-conversion code are required, the amount of data to be described is large, the time spent on the description is large, and the incidence of writing errors is also high.
本発明の逆コード変換辞書ファイルの作成方式は、既存
のコード変換辞書ファイルを参照してコード変換表を展
開するコード変換データ展開手段と、
該コード変換表の逆のコード変換を可能とする逆コード
変換表の初期化を行ない該コード変換表の変換前コード
に対する変換後コードが未定義(以下不正コードと称す
る)の場合を除く全てのコードに対して変換後コードか
ら逆コード変換表に格納する変換前コードおよび格納オ
フセット値を算出し逆コード変換表に格納する逆コード
変換データ生成手段と、作成された該逆コード変換表の
コード変換データをコード変換辞書ファイルに出力する
コード変換データ出力手段とを備えて構成される。The method for creating a reverse code conversion dictionary file of the present invention includes a code conversion data development means that develops a code conversion table by referring to an existing code conversion dictionary file, and an inverse code conversion table that enables reverse code conversion of the code conversion table. Initializes the code conversion table and stores all codes in the reverse code conversion table starting from the converted code for all codes except when the converted code for the pre-conversion code in the code conversion table is undefined (hereinafter referred to as invalid code). a reverse code conversion data generation means that calculates the pre-conversion code and storage offset value to be stored in a reverse code conversion table; and a code conversion data output that outputs the code conversion data of the created reverse code conversion table to a code conversion dictionary file. and means.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。1は変換前コードから算出されるオフセット値の位
置に変換後コードが格納されているようなコード変換表
をもつコード変換辞書ファイルで、本発明で逆コード変
換辞書ファイルを作成する場合に必要となる入力ファイ
ルである。2は、逆コード変換辞書ファイルを作成する
逆コード変換辞書ファイル作成部である。3は、コード
変換辞書ファイル1が処理するコード変換とは逆のコー
ド変換を可能とするような逆コード変換表がコード変換
辞書ファイル1と同形式で格納されている逆コード変換
辞書ファイルで、逆コード変換辞書ファイル作成部2か
ら出力される出力ファイルである。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. 1 is a code conversion dictionary file that has a code conversion table in which the post-conversion code is stored in the position of the offset value calculated from the pre-conversion code, and is required when creating a reverse code conversion dictionary file in the present invention. This is the input file. 2 is a reverse code conversion dictionary file creation unit that creates a reverse code conversion dictionary file. 3 is a reverse code conversion dictionary file in which a reverse code conversion table is stored in the same format as the code conversion dictionary file 1, which enables code conversion opposite to the code conversion processed by the code conversion dictionary file 1; This is an output file output from the reverse code conversion dictionary file creation section 2.
さらに、逆コード変換辞書ファイル作成部2は、コード
変換データ展開手段11と、逆コード変換データ生成手
段12と、コード変換データ出力手段13とで構成され
ている0次に、コード変換辞書ファイル1を構成するコ
ード変換表の説明図を第2図に示し、コード変換データ
展開手段11゜逆コード変換データ生成手段12および
コード変換データ出力手段13での処理については、そ
れぞれ第3図、第4図および第5図に記述した流れ図を
参照して説明する。Further, the reverse code conversion dictionary file creation section 2 generates a code conversion dictionary file 1 of zero order, which is composed of a code conversion data expansion means 11, a reverse code conversion data generation means 12, and a code conversion data output means 13. An explanatory diagram of the code conversion table constituting the code conversion table is shown in FIG. This will be explained with reference to the flowchart shown in FIG.
第2図は、コード変換辞書ファイル1および逆コード変
換辞書ファイル3を構成するコード変換表であり、変換
後コード21は変換前コードにより一意的に求まるよう
、変換前コードから算出されるオフセット値の位置にそ
れぞれ格納されている。FIG. 2 is a code conversion table that constitutes the code conversion dictionary file 1 and the reverse code conversion dictionary file 3, and the offset value is calculated from the pre-conversion code so that the post-conversion code 21 can be uniquely determined by the pre-conversion code. are stored in the respective locations.
第3図を見るに、コード変換データ展開手段11は、ス
テップ31において、メモリ上にコード変換辞書ファイ
ル1のコード変換表を格納する領域を確保し、ステップ
32でコード変換辞書ファイル1からコード変換データ
を読み出して、ステップ33で確保した領域にコード変
換データを格納する。全てのコード変換データを格納し
たかどうかの判断は、ステップ34で行う。Referring to FIG. 3, in step 31, the code conversion data development means 11 secures an area in memory to store the code conversion table of the code conversion dictionary file 1, and in step 32, the code conversion data development means 11 secures an area for storing the code conversion table of the code conversion dictionary file 1. The data is read and the code conversion data is stored in the area secured in step 33. It is determined in step 34 whether all code conversion data has been stored.
第4図において、逆コード変換データ生成手段12は、
まず準備してステップ41でメモリ上に逆コード変換表
を格納する領域を確保し、ステップ42で確保した領域
の初期化を行う、さらにステップ43で、コード変換デ
ータ展開手段11のステップ31〜ステツプ34の処理
で作成されたコード変換表領域から変換後コードを取り
出し、ステップ44で取り出したコードが不正コードか
否かの判断を行う、そして判断の結果、不正コードでな
かった場合に、ステップ45〜ステツプ47の変換前コ
ードおよびオフセット値の算出処理を行う、まずステッ
プ3で取り出された変換後コードが格納されていたオフ
セット値から、逆コード変換表の変換後コードとなる変
換前コードを算出する(ステップ45)。次に、ステッ
プ45で得られた変換前コードを格納する逆コード変換
表領域(ステップ41で確保)内のオフセット値を変換
後コードから算出する。最後に、ステップ46により算
出されたオフセット値の位置に、ステップ45の変換前
コードを格納する。ステップ43〜ステツプ47の処理
を全ての変換後コードに対して行ない、逆コード変換表
が作成される。In FIG. 4, the reverse code conversion data generation means 12 is
First, in step 41, an area for storing the reverse code conversion table is prepared in the memory, and in step 42, the area secured is initialized. The converted code is extracted from the code conversion table area created in step 34, and it is determined in step 44 whether or not the extracted code is a fraudulent code.If the result of the determination is that it is not a fraudulent code, step 45 is performed. - Perform the pre-conversion code and offset value calculation process in step 47. First, calculate the pre-conversion code that will become the post-conversion code in the reverse code conversion table from the offset value where the post-conversion code extracted in step 3 was stored. (Step 45). Next, the offset value in the reverse code conversion table area (secured in step 41) for storing the pre-conversion code obtained in step 45 is calculated from the post-conversion code. Finally, the pre-conversion code in step 45 is stored in the position of the offset value calculated in step 46. The processes of steps 43 to 47 are performed on all the converted codes to create a reverse code conversion table.
全ての変換後コードを処理したかどうかの判断はステッ
プ48で行う。It is determined in step 48 whether all the converted codes have been processed.
第5図において、コード変換データ出力手段13は、ス
テップ41〜ステツプ48で作成された逆コード変換表
領域内のコード変換データを、逆コード変換辞書ファイ
ル3に出力する(ステップ51)。全てのコード変換デ
ータを出力したかどうかの判断は、ステップ52で行う
。In FIG. 5, the code conversion data output means 13 outputs the code conversion data in the reverse code conversion table area created in steps 41 to 48 to the reverse code conversion dictionary file 3 (step 51). A determination as to whether all code conversion data has been output is made in step 52.
以上説明したように本発明の逆コード変換辞書ファイル
作成方式では、一方向のコード変換辞書ファイルが存在
すれば、コード変換辞書ファイルを作成する際に必要と
なっていた変換対象範囲内の変換前コードとそれに対す
る変換後コードとの基準が一切不要となり、逆のコード
変換表をもつコード変換辞書ファイルが容易に作成でき
るという効果がある。また、記述ミスがなくなり信頼性
の高いコード変換辞書ファイルができるという効果もあ
る。As explained above, in the reverse code conversion dictionary file creation method of the present invention, if a one-way code conversion dictionary file exists, it is possible to This eliminates the need for any standards between codes and converted codes, and has the effect that a code conversion dictionary file having an inverse code conversion table can be easily created. Another advantage is that a highly reliable code conversion dictionary file can be created without any writing errors.
第1図は本発明の一実施例の構成を示すプロ・ツク図、
第2図はコード変換辞書ファイルを構成するコード変換
表の説明図、第3図はコード変換データ展開手段の処理
内容を示す流れ図、第4図&よ逆コード変換データ生成
手段の処理内容を示す流れ図、第5図はコード変換デー
タ出力手段・処理内容を示す図である。
1・・・コード変換辞書ファイル、2・・・逆コード変
換辞書ファイル作成部、3・・・逆コード変換辞書ファ
イル、11・・・コード変換データ展開手段、12・・
・逆コード変換データ生成手段、13・・・コード変換
データ出力手段。FIG. 1 is a program diagram showing the configuration of an embodiment of the present invention;
Fig. 2 is an explanatory diagram of the code conversion table that constitutes the code conversion dictionary file, Fig. 3 is a flowchart showing the processing contents of the code conversion data development means, and Fig. 4 shows the processing contents of the reverse code conversion data generation means. The flowchart in FIG. 5 is a diagram showing code conversion data output means and processing contents. DESCRIPTION OF SYMBOLS 1... Code conversion dictionary file, 2... Reverse code conversion dictionary file creation part, 3... Reverse code conversion dictionary file, 11... Code conversion data development means, 12...
- Reverse code conversion data generation means, 13... code conversion data output means.
Claims (1)
を展開するコード変換データ展開手段と、 該コード変換表の逆のコード変換を可能とする逆コード
変換表の初期化を行ない該コード変換表の変換前コード
に対する変換後コードが未定義(以下不正コードと称す
る)の場合を除く全てのコードに対して変換後コードか
ら逆コード変換表に格納する変換前コードおよび格納オ
フセット値を算出し逆コード変換表に格納する逆コード
変換データ生成手段と、作成された該逆コード変換表の
コード変換データをコード変換辞書ファイルに出力する
コード変換データ出力手段とを備えて成ることを特徴と
する逆コード変換辞書ファイルの作成方式。[Claims] Code conversion data development means for developing a code conversion table by referring to an existing code conversion dictionary file, and initialization of a reverse code conversion table that enables code conversion in the opposite direction of the code conversion table. The pre-conversion code and storage offset to be stored in the inverse code conversion table from the post-conversion code for all codes except when the post-conversion code for the pre-conversion code in the code conversion table is undefined (hereinafter referred to as illegal code). A code conversion data generating means for calculating a value and storing it in a reverse code conversion table; and a code conversion data output means for outputting the code conversion data of the created reverse code conversion table to a code conversion dictionary file. A method for creating a reverse code conversion dictionary file, which is characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15435289A JPH0319021A (en) | 1989-06-16 | 1989-06-16 | Production system for inverted code conversion dictionary file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15435289A JPH0319021A (en) | 1989-06-16 | 1989-06-16 | Production system for inverted code conversion dictionary file |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0319021A true JPH0319021A (en) | 1991-01-28 |
Family
ID=15582286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP15435289A Pending JPH0319021A (en) | 1989-06-16 | 1989-06-16 | Production system for inverted code conversion dictionary file |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0319021A (en) |
-
1989
- 1989-06-16 JP JP15435289A patent/JPH0319021A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2713574B2 (en) | Address mark generation method and circuit | |
JPH0319021A (en) | Production system for inverted code conversion dictionary file | |
JPH04238531A (en) | Automatic generating system for code conversion data of another system | |
JPS61272825A (en) | Information store and forward switching system | |
JP2781658B2 (en) | Address generation circuit and CD-ROM device using the same | |
JP3787951B2 (en) | Code conversion method and code conversion apparatus using the same | |
JP2000276344A (en) | Program generation system using object and its program generating method | |
JP2895892B2 (en) | Data processing device | |
JP2507399B2 (en) | Database equipment | |
JP3474347B2 (en) | Instruction decoding unit of microcomputer | |
JPH05189521A (en) | Layout pattern generating device | |
JPS62143139A (en) | Microprogram controller | |
JPH036533B2 (en) | ||
JPH02247758A (en) | Control system for terminal information | |
JPH02128219A (en) | System generation system using system definition information | |
JPH06290024A (en) | Block unit output processing system | |
JP2000242482A (en) | Generating method for application program, access module deformation processing method and medium recording access module deformation processing program | |
JPH0381825A (en) | Automatic formation system for comment of execution part in source program | |
JPS60237538A (en) | Determination system for array data position | |
JPS5810142U (en) | central processing unit | |
JPS61147373A (en) | Animation forming system | |
JPH03176737A (en) | System for forming various information files | |
JPH0371336A (en) | Microprogram control system | |
JPH04291653A (en) | Command block formation processing system | |
JPS63127338A (en) | Processing system corresponding to source text line number for intermediate language processor |