JPH03251929A - Qualification name settling system for translation system - Google Patents

Qualification name settling system for translation system

Info

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
Application number
JP4988590A
Other languages
Japanese (ja)
Inventor
Bunji Yagi
八木 文治
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 JP4988590A priority Critical patent/JPH03251929A/en
Publication of JPH03251929A publication Critical patent/JPH03251929A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a token store area and to shorten the translating time by setting a qualification name at the time point of a word decomposion processing. CONSTITUTION:A translation system 1 reads a source program 5 and calls out a vocabulary analyzing subsystem 2. This subsystem 2 reads one line of the program 5 and decomposes a word to generate plural tokens. If the labels in the tokens are identical with the definition names, the subsystem 2 calls out a definition name register mechanism 3. The mechanism 3 retrieves a definition name table 7 via the definition names. If the same definition name is not contained in the table 7, the retrieving definition name is registered in the table 7 as it is. Meanwhile the definition names are unified with the additional information and then registered in the table 7 is the same definition name is contained in the table 7. When the label is identical with a definition name, the subsystem 2 calls out a definition name solution mechanism 4. The mechanism 4 retrieves the table 7 to delete all qualification information after replacing them with the definition name unified with the additional information given to the same names. Finally the subsystem 2 outputs the token having no unified qualification information to a token store area 6. Thus the token store area can be reduced together with reduction of the translating time.

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.

〔従来の技術〕[Conventional technology]

従来、この種の翻訳システムにおける修飾名解決方式は
、名標の参照解決処理時点で同時に行なうようにしてい
る。
Conventionally, the qualified name resolution method in this type of translation system is performed simultaneously at the time of name reference resolution processing.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の修飾名解決方式は、名標の参照解決処理
時点で修飾名の情報を必要とするために、修飾名の個数
や語長に比例してトークン格納領域が大きくなり、翻訳
時間が増大するという欠点を有している。
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.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の翻訳システムにおける修飾名解決方式は、原始
プログラムを読込んで語分解処理を行ない、生成したト
ークンをトークン格納領域に格納する翻訳システムにお
ける語彙解析サブシステムにおいて、生成したトークン
中の名標の定義名で定義名テーブルを検索し、同一名が
あれば付加情報により定義名を一意化してこの定義名を
前記定義テーブルに登録する定義名登録機構と、前記ト
ークン中の名標の修飾名を同一名に対する付加情報によ
り一意化された定義名に置換して修飾情報を削除する修
飾基解決機構とを有することにより構成される。
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.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 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.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、修飾名解決を語分解処理
時点で行なうことにより、トークン格納領域が小さくて
すみ、翻訳時間を短縮できる効果がある。
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.

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

第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)

【特許請求の範囲】[Claims]  原始プログラムを読込んで語分解処理を行ない、生成
したトークンをトークン格納領域に格納する翻訳システ
ムにおける語彙解析サブシステムにおいて、生成したト
ークン中の名標の定義名で定義名テーブルを検索し、同
一名があれば付加情報により定義名を一意化してこの定
義名を前記定義テーブルに登録する定義名登録機構と、
前記トークン中の名標の修飾名を同一名に対する付加情
報により一意化された定義名に置換して修飾情報を削除
する修飾名解決機構とを有することを特徴とする翻訳シ
ステムにおける修飾名解決方式。
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. .
JP4988590A 1990-02-28 1990-02-28 Qualification name settling system for translation system Pending JPH03251929A (en)

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)

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