JPH03251929A - Qualification name settling system for translation system - Google Patents
Qualification name settling system for translation systemInfo
- Publication number
- JPH03251929A JPH03251929A JP4988590A JP4988590A JPH03251929A JP H03251929 A JPH03251929 A JP H03251929A JP 4988590 A JP4988590 A JP 4988590A JP 4988590 A JP4988590 A JP 4988590A JP H03251929 A JPH03251929 A JP H03251929A
- Authority
- JP
- Japan
- Prior art keywords
- name
- definition
- definition name
- subsystem
- token
- 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
- 238000012797 qualification Methods 0.000 title abstract 4
- 238000000354 decomposition reaction Methods 0.000 claims description 5
- 238000000034 method Methods 0.000 claims description 5
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000003607 modifier Substances 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は原始プログラムの翻訳システムにおける修飾名
解決方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a qualified name resolution method in a source program translation system.
従来、この種の翻訳システムにおける修飾名解決方式は
、名標の参照解決処理時点で同時に行なうようにしてい
る。Conventionally, the qualified name resolution method in this type of translation system is performed simultaneously at the time of name reference resolution processing.
上述した従来の修飾名解決方式は、名標の参照解決処理
時点で修飾名の情報を必要とするために、修飾名の個数
や語長に比例してトークン格納領域が大きくなり、翻訳
時間が増大するという欠点を有している。The conventional qualified name resolution method described above requires qualified name information at the time of name reference resolution processing, so the token storage area increases in proportion to the number of qualified names and word length, and translation time decreases. It has the disadvantage of increasing.
本発明の翻訳システムにおける修飾名解決方式は、原始
プログラムを読込んで語分解処理を行ない、生成したト
ークンをトークン格納領域に格納する翻訳システムにお
ける語彙解析サブシステムにおいて、生成したトークン
中の名標の定義名で定義名テーブルを検索し、同一名が
あれば付加情報により定義名を一意化してこの定義名を
前記定義テーブルに登録する定義名登録機構と、前記ト
ークン中の名標の修飾名を同一名に対する付加情報によ
り一意化された定義名に置換して修飾情報を削除する修
飾基解決機構とを有することにより構成される。The qualified name resolution method in the translation system of the present invention reads a source program, performs word decomposition processing, and stores the generated tokens in a token storage area. A definition name registration mechanism that searches a definition name table using a definition name, and if there is an identical name, uniqueizes the definition name using additional information and registers this definition name in the definition table, and a qualified name of the name in the token. and a modification group resolution mechanism that deletes modification information by replacing it with a definition name unified by additional information for the same name.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例の構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.
第1図において、翻訳システム1は原始プログラム5を
読込んで語分解処理を行うためN紮解析サブシステム2
を呼出す、そこで、語彙解析システム2は、まず原始プ
ログラム5を一行読込んで語分解処理を行い、複数のト
ークンを生成する。In FIG. 1, a translation system 1 reads a source program 5 and performs word decomposition processing using an N-string analysis subsystem 2.
Then, the vocabulary analysis system 2 first reads one line of the source program 5, performs word decomposition processing, and generates a plurality of tokens.
ここでトークン中の名標が定義名であった場合に、語彙
解析サブシステム2は定義名登録機構3を呼出す。定義
名登録機構3は、まず定義名で定義名テーブル7を検索
して同一名の有無を判定し、同一名が無ければそのまま
を、同一名が有れば付加情報により定義名を一意化した
後に、この定義名を定義名テーブル7に登録する。If the name in the token is a definition name, the vocabulary analysis subsystem 2 calls the definition name registration mechanism 3. The definition name registration mechanism 3 first searches the definition name table 7 using the definition name to determine whether or not the same name exists, and if the same name does not exist, it is left as is, and if the same name exists, the definition name is made unique using additional information. Later, this definition name is registered in the definition name table 7.
次に名標が修飾名であった場合に、語彙解析サブシステ
ム2は修飾基解決機構4を呼出す。修飾基解決機構4は
定義名テーブル7を検索して修飾名解決を行う、即ち同
一名に対する付加情報により一意化された定義名に置換
することにより修飾情報をすべて削除する。Next, if the name tag is a qualified name, the lexical analysis subsystem 2 calls the modifier resolution mechanism 4. The modification group resolution mechanism 4 searches the definition name table 7 and performs modification name resolution, that is, deletes all modification information by replacing the same name with a definition name made unique by additional information.
最後に、語彙解析サブシステム2は一意化されて修飾情
報をもたないトークンをトークン格納領域6に出力する
。Finally, the vocabulary analysis subsystem 2 outputs the unique tokens without modification information to the token storage area 6.
以上説明したように本発明は、修飾名解決を語分解処理
時点で行なうことにより、トークン格納領域が小さくて
すみ、翻訳時間を短縮できる効果がある。As explained above, the present invention has the effect of reducing the token storage area and shortening the translation time by performing qualified name resolution at the time of word decomposition processing.
第1図は本発明の一実施例の構成図である。
1・・・翻訳システム、2・・・語業解析サブシステム
、3・・・定義名登録機構、4・・・修飾基解決機構、
5・・・原始プログラム、6・・・トークン格納領域、
7・・・定義名テーブル。FIG. 1 is a block diagram of an embodiment of the present invention. 1... Translation system, 2... Language analysis subsystem, 3... Definition name registration mechanism, 4... Modifier resolution mechanism,
5... Source program, 6... Token storage area,
7...Definition name table.
Claims (1)
したトークンをトークン格納領域に格納する翻訳システ
ムにおける語彙解析サブシステムにおいて、生成したト
ークン中の名標の定義名で定義名テーブルを検索し、同
一名があれば付加情報により定義名を一意化してこの定
義名を前記定義テーブルに登録する定義名登録機構と、
前記トークン中の名標の修飾名を同一名に対する付加情
報により一意化された定義名に置換して修飾情報を削除
する修飾名解決機構とを有することを特徴とする翻訳シ
ステムにおける修飾名解決方式。In the lexical analysis subsystem of the translation system, which reads the source program, performs word decomposition processing, and stores the generated tokens in the token storage area, the definition name table is searched using the definition name of the name mark in the generated token, and the same name is searched. a definition name registration mechanism that uniqueizes a definition name using additional information and registers this definition name in the definition table;
A qualified name resolution method in a translation system characterized by having a qualified name resolution mechanism that replaces the qualified name of the name mark in the token with a defined name made unique by additional information for the same name and deletes the qualified information. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4988590A JPH03251929A (en) | 1990-02-28 | 1990-02-28 | Qualification name settling system for translation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4988590A JPH03251929A (en) | 1990-02-28 | 1990-02-28 | Qualification name settling system for translation system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03251929A true JPH03251929A (en) | 1991-11-11 |
Family
ID=12843492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4988590A Pending JPH03251929A (en) | 1990-02-28 | 1990-02-28 | Qualification name settling system for translation system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03251929A (en) |
-
1990
- 1990-02-28 JP JP4988590A patent/JPH03251929A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0630066B2 (en) | Table type language translation method | |
JPH03251929A (en) | Qualification name settling system for translation system | |
JPH0644309A (en) | Data base managing system | |
JPH01211121A (en) | Translation system for source program including plural data base descriptions | |
JPH0359724A (en) | Error information compression system for translation system | |
JPH04149640A (en) | Precompiler | |
JPS6320567A (en) | Translation device | |
JPH0310327A (en) | Compiler processing system | |
JPS63245720A (en) | Data base system | |
JPH0214327A (en) | High speed solving system for data referring | |
JP2616203B2 (en) | Management method of name table in translation system | |
JPS63291117A (en) | Data processor | |
JPH0348336A (en) | Compression processing system of user's word label in translation system | |
JPH01119831A (en) | Source text managing system | |
JPH03245233A (en) | Label retrieving system | |
JPH03125265A (en) | Key word extracting device | |
JPH05189473A (en) | Machine translation system | |
JPS63266543A (en) | Retrieving system for label table | |
JPH04153736A (en) | Line number information adding system | |
JPH0279137A (en) | Integrated dictionary system | |
JPH04335471A (en) | Data base reference processing system | |
JPS61262883A (en) | Japanese syntax analyzing system | |
JPH06295310A (en) | Machine translation system | |
JPH0359726A (en) | Program unit batch translation system | |
JPH01195534A (en) | Translation system |