JPH04177431A - Object optimization system with unreferred label turned into nameless item - Google Patents

Object optimization system with unreferred label turned into nameless item

Info

Publication number
JPH04177431A
JPH04177431A JP30106590A JP30106590A JPH04177431A JP H04177431 A JPH04177431 A JP H04177431A JP 30106590 A JP30106590 A JP 30106590A JP 30106590 A JP30106590 A JP 30106590A JP H04177431 A JPH04177431 A JP H04177431A
Authority
JP
Japan
Prior art keywords
item
nameless
unreferred
reference flag
host language
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
JP30106590A
Other languages
Japanese (ja)
Inventor
Koji Fukuda
福田 光司
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 JP30106590A priority Critical patent/JPH04177431A/en
Publication of JPH04177431A publication Critical patent/JPH04177431A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To reduce the load of a host language compiler and to shorten the translating time by providing a setting means which sets a reference flag to a symbol table and a means which turns the unreferred data into a nameless item with use of the reference flag of the symbol table in a precompiler. CONSTITUTION:A generating part 4 which outputs a host language source program 1a2 calls out a part 6 which turns the unreferred data into a nameless item when generating a date part from a symbol table 7. Then the part 6 decides ON or OFF of a reference flag. If the ON state is confirmed, a name is outputted as it is out of the table 7. Meanwhile a nameless item of host language is outputted when the OFF state is confirmed. Thus the user defining label that is not referred to in a source program 8 is outputted to the program 12 as a nameless item.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプリコンパイラに係シ、特にホスト言語の負荷
を軽減することができるプリコンパイラにおける未参照
名標の無名項目化によるオブジェクトの最適化方式に関
するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a precompiler, and in particular to object optimization by anonymous itemization of unreferenced names in a precompiler, which can reduce the load on a host language. It is related to the method.

〔従来の技術〕[Conventional technology]

従来、この樵のプリコンパイラは、利用者が定義した名
標をそのままホスト言語に出力してい念。
Traditionally, this lumberjack precompiler outputs user-defined names as they are to the host language.

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

上述した従来のブリコンパイラは、利用者が定義した名
標をそのままホスト言語に出力しているので、手続きで
参照されない名標も出力され、ホスト言語の負荷が高く
なるという課題があった。
The above-mentioned conventional precompiler outputs user-defined names as they are to the host language, so there was a problem that names that were not referenced in the procedure were also output, increasing the load on the host language.

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

本発明のブリコンパイラにおける未参照名標の無名項目
化によるオブジェクトの最適化方式は、プリコンパイラ
において、記号表への参照フラグの設定手段と、上記記
号表の参照フラグによる未参照データの無名項目化手段
を備えてなるものである。
The object optimization method by anonymous itemization of unreferenced names in the precompiler of the present invention includes a means for setting a reference flag to a symbol table, and an anonymous item of unreferenced data using the reference flag of the symbol table in the precompiler. It is equipped with means for converting.

〔作用〕[Effect]

本発明においては、ブリコンパイラのソース中の参照さ
れない利用者データを無名項目化する。
In the present invention, unreferenced user data in the source of the precompiler is made into anonymous items.

〔実施例〕〔Example〕

以下、図面に基づき本発明の実施例を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

図は本発明の一実施例を示すブロック図で、プリコンパ
イラ全体の構成例を示すものである。
The figure is a block diagram showing an embodiment of the present invention, and shows an example of the overall configuration of a precompiler.

この図において、1は字句解析部、2は構文解折部、3
は意味解析部、4は生成部、5は意味解析部3に接続さ
れた参照フラグの設定部で、この参照フラグの設定部5
は記号光7への参照フラグの設定手段を構成している。
In this figure, 1 is a lexical analyzer, 2 is a syntactic analyzer, and 3 is a lexical analyzer.
is a semantic analysis unit, 4 is a generation unit, and 5 is a reference flag setting unit connected to the semantic analysis unit 3.
constitutes means for setting a reference flag to the symbol light 7.

6は生成部4に接続された未参照データの無毛項目化部
で、この未参照データの無毛項目化部6は記号光7の参
照フラグによる未参照データの無毛項目化手段を構成し
ている。
6 is an unreferenced data itemization unit connected to the generation unit 4, and this unreferenced data itemization unit 6 constitutes an unreferenced data itemization unit using the reference flag of the symbol light 7. are doing.

8はソースプログラムを示し、9.10および11は作
業ファイル、12はホスト言語ソースプログラムを示す
8 shows a source program, 9, 10 and 11 work files, and 12 shows a host language source program.

つぎにこの図に示す実施例の動作を説明する。Next, the operation of the embodiment shown in this figure will be explained.

まず、プリコンパイラはソースプログラム8を入力し字
何解折部1により字句単位に分解し作業ファイル9に出
力する。構文解析部2は作業ファイル9を入力し構文の
解析を行ない作業ファイル10に意味解析に必要な情報
をテキストとして出力し、ユーザ一定義名標から記号光
7を作成する。
First, the precompiler inputs the source program 8 and decomposes it into lexical units using the lexical analysis unit 1 and outputs it to the work file 9. The syntactic analysis unit 2 inputs a work file 9, performs syntactic analysis, outputs information necessary for semantic analysis to a work file 10 as text, and creates a symbol light 7 from a user-defined name.

そして、意味解析部3は作業ファイル10より意味解析
を行なうが、その際、手続さ中の参照名標よシ記号表7
の検索を行ない定義と参照の一意性をチエツクする。
Then, the semantic analysis unit 3 performs semantic analysis from the work file 10, but at this time, the reference name and symbol table 7 that is being processed
Perform a search to check the uniqueness of definitions and references.

つぎに、本発明では、意味解析s3は一意性が確認され
たとき、参照フラグの設定部5を呼び出し、記号表T中
の当該エントリに対して参照が行なわれた旨のフラグを
ONにする。このフラグは一つのユーザ一定義名標(記
号光Tの一つのエントリ)毎に用意され、構文解析部2
で記号光7が作成されたときにはOF’Fとなっている
。この意味解析部3は生成に必要な情報を作業ファイル
11にテキストとして出力する。そして、生成部4は作
業ファイル11を入力し、ホスト言語ソースプログラム
12を出力する。ここで、この生成部4は、データ部の
記号光7から生成する際、未参照データの無毛項目化部
6を呼び出す。そして、この未参照データの無毛項目化
部6は前述の参照フラグがONかOF’Fかを判定し、
ONであれば記号光7の名前をそのまま出力し、OFF
であればホスト言語の無毛項目(C0BOLであればF
ILLER。
Next, in the present invention, when the uniqueness is confirmed, the semantic analysis s3 calls the reference flag setting unit 5 and turns on the flag indicating that the entry in question in the symbol table T has been referenced. . This flag is prepared for each user-defined name (one entry of the symbol light T), and is
When the symbol light 7 is created, it is OF'F. This semantic analysis unit 3 outputs information necessary for generation to a work file 11 as text. The generation unit 4 then inputs the work file 11 and outputs the host language source program 12. Here, when generating from the symbol light 7 of the data section, the generation section 4 calls the hairless itemization section 6 of unreferenced data. Then, the hairless itemization unit 6 of this unreferenced data determines whether the above-mentioned reference flag is ON or OFF'F,
If ON, the name of symbol light 7 is output as is, and OFF
If it is a sterile item in the host language (F if C0BOL)
ILLER.

PL/Iであれば*等)を出力する。これにより、ソー
スプログラム8中の参照されない利用者定義名標は無毛
項目としてホスト言語ソースプログラム12に出力され
る。
If it is PL/I, * etc.) will be output. As a result, unreferenced user-defined names in the source program 8 are output to the host language source program 12 as empty items.

〔発明の効果] 以上説明したように本発明は、プリコンパイラのソース
中の参照されない利用者データを無毛項目化することに
よシ、ホスト言語のコンパイラの負荷を軽くし翻訳時間
を短縮することができる効果がある。
[Effects of the Invention] As explained above, the present invention reduces the load on the host language compiler and shortens the translation time by converting unreferenced user data in the precompiler source into pointless items. There is an effect that can be done.

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

図は本発明の一実施例を示すブロック図である。 1・・・・字句解析部、2・・・・構文解析部、3・・
・・意味解析部、4・・・・生成部、5・・・・参照フ
ラグの設定部、6・・・・未参照データの無毛項目化部
、I・・・・記号光。
The figure is a block diagram showing one embodiment of the present invention. 1... Lexical analysis section, 2... Syntactic analysis section, 3...
...Semantic analysis unit, 4...Generation unit, 5...Reference flag setting unit, 6...Unreferenced data hairless itemization unit, I...Symbol light.

Claims (1)

【特許請求の範囲】[Claims] プリコンパイラにおいて、記号表への参照フラグの設定
手段と、前記記号表の参照フラグによる未参照データの
無名項目化手段を備えてなることを特徴とする未参照名
標の無名項目化によるオブジェクトの最適化方式。
A precompiler that is characterized in that it comprises means for setting a reference flag to a symbol table, and means for anonymously itemizing unreferenced data using the reference flag of the symbol table. Optimization method.
JP30106590A 1990-11-08 1990-11-08 Object optimization system with unreferred label turned into nameless item Pending JPH04177431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30106590A JPH04177431A (en) 1990-11-08 1990-11-08 Object optimization system with unreferred label turned into nameless item

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30106590A JPH04177431A (en) 1990-11-08 1990-11-08 Object optimization system with unreferred label turned into nameless item

Publications (1)

Publication Number Publication Date
JPH04177431A true JPH04177431A (en) 1992-06-24

Family

ID=17892445

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30106590A Pending JPH04177431A (en) 1990-11-08 1990-11-08 Object optimization system with unreferred label turned into nameless item

Country Status (1)

Country Link
JP (1) JPH04177431A (en)

Similar Documents

Publication Publication Date Title
US5287444A (en) Message processing system
US8156471B2 (en) Multi-language execution method
JPS63181033A (en) Automatic program generating system
US20040154004A1 (en) Web application code conversion system
US20060053159A1 (en) Exploiting metadata for performing structure-oriented operations on content-specific data representations
JPH04177431A (en) Object optimization system with unreferred label turned into nameless item
US20090144322A1 (en) Exploiting Metadata for Performing Structure-Oriented Operations on Content-Specific Data Representations
JP2742059B2 (en) Dictionary editor for translation
JP3014409B2 (en) Natural language automatic translator
JP2942414B2 (en) Virtual database method
JP3050575B2 (en) Natural language automatic translator
JP2977642B2 (en) FORTRAN compilation processor
JP3082767B2 (en) Translation list output control device
JP3393494B2 (en) User dictionary creation support device
JPH01292526A (en) Cooperative editing system for program
JP3011273B2 (en) Translation result management method and machine translation system
JPH0417028A (en) System for translating and editing program language
JPH0752391B2 (en) Translation method of source program including multiple database descriptions
JP2807468B2 (en) Dictionary information display device for translation
JPH03245228A (en) System changing function system
JPH0765011A (en) Operating manual preparing device/method
JPH0266631A (en) Address table output system using japanese label
JPH0359726A (en) Program unit batch translation system
JPS62282329A (en) Information processor
JPH01233667A (en) Mechanical translation device