JPS62259138A - Production system for program dictionary - Google Patents

Production system for program dictionary

Info

Publication number
JPS62259138A
JPS62259138A JP9585387A JP9585387A JPS62259138A JP S62259138 A JPS62259138 A JP S62259138A JP 9585387 A JP9585387 A JP 9585387A JP 9585387 A JP9585387 A JP 9585387A JP S62259138 A JPS62259138 A JP S62259138A
Authority
JP
Japan
Prior art keywords
program
dictionary
name
file
record
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.)
Granted
Application number
JP9585387A
Other languages
Japanese (ja)
Other versions
JP2520633B2 (en
Inventor
Takaaki Ikeda
池田 敬昭
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62095853A priority Critical patent/JP2520633B2/en
Publication of JPS62259138A publication Critical patent/JPS62259138A/en
Application granted granted Critical
Publication of JP2520633B2 publication Critical patent/JP2520633B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To always secure a fact that the retrieving result of a program dictionary reflects the information on a real matter, by always performing both compiling and dictionary registering jobs at a time. CONSTITUTION:A source program 1 is converted into an object module 6 by a compiler 2 and then into a load module by a linkage editor 7. For the program 1, the program name, the file name, the record name and the item name are extracted by a sentence structure analyzing means 4 and stored in an intermediate file 9. If the file name, record name and item name are written to the program 1 has shown in the figure, the data are written to the file 9. A program dictionary register part 10 registers the contents of the file 9 to a program dictionary 11. Then the relevant record names, the file names of these records and the program names using the corresponding data items are written to the dictionary 11 in terms of the data items to be used by plural programs. A pointer 12 points out the final writing position.

Description

【発明の詳細な説明】 本発明は、プログラムによって使用されるデータ項目の
名前、そのデータ項目の属するレコードの名前、そのレ
コードの属するファイルの名前、上記データ項目を使用
するプログラムの名前などが書込まれたプログラム・デ
ィクショナリの作成方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a system in which the name of a data item used by a program, the name of the record to which the data item belongs, the name of the file to which the record belongs, the name of the program that uses the data item, etc. It concerns the creation method of the embedded program dictionary.

従来、複数のプログラム間にまたがるクロス・リファレ
ンスはコンパイラで全く面倒をみていなかった。このた
め、例えば「部課コード」というフィールドの長さを1
桁増したいような場合、このフィールドをアクセスして
いるプログラムが何と何であるかを見付けるためには、
ソース・リストを見るなり、或はプログラム仕様書を調
べる必要があった。
Traditionally, compilers did not take care of cross-references between multiple programs. For this reason, for example, the length of the field ``Department Code'' can be set to 1.
If you want to increase the number of digits, to find out what program is accessing this field, use
I had to look at the source list or check the program specifications.

このために、プログラムが使用するデータ項目の名前、
そのデータ項目が属するレコードの名前、そのレコード
が属するファイルの名前、上記デー夕項目を使用するプ
ログラムの名前をプログラム・ディクショナリに登録し
て置くことが行われている。しかしながら、従来は、ソ
ース・プログラムをコンパイルする過程と、プログラム
・ディクショナリに情報を登録する過程が全く別々であ
った。このため、ソース・プログラムはコンパイルして
ロード・モジュールを作ったが、情報がプログラム・デ
ィクショナリに登録されていない、或いは逆の事象が起
き、プログラム・ディクショナリが現在のロード・モジ
ュールの情報を正しく反映していない(レベルが異なる
)と言う事態を招く。これにより、プログラム・ディク
ショナリの信憑性が失われると言う欠点がある。
For this purpose, the name of the data item used by the program,
The name of the record to which the data item belongs, the name of the file to which the record belongs, and the name of the program that uses the data item are registered in a program dictionary. However, conventionally, the process of compiling a source program and the process of registering information in a program dictionary have been completely separate. Therefore, although the source program was compiled to create a load module, the information may not be registered in the program dictionary, or the opposite may occur and the program dictionary may not correctly reflect the current load module information. This will lead to a situation where they say they have not done so (at a different level). This has the disadvantage that the authenticity of the program dictionary is lost.

本発明は、上記の考察に基づくものであって、現在のロ
ード・モジュールの情報を正しく反映しているプログラ
ム・ディクショナリを作成することを目的としている。
The present invention is based on the above considerations, and aims to create a program dictionary that accurately reflects current load module information.

そしてそのため、本発明のプログラム・ディクショナリ
の作成方式は、ソース・プログラムをオブジェクト・プ
ログラムに解釈するコンパイラ(2)と、 プログラム・ディクショナリ登録手段(10)と、プロ
グラム・ディクショナリ(11)とを具備し、 上記コンパイラ(2)が、プログラムによって使用され
るデータ項目、レコード、ファイルに関する情報をコン
パイル時に収集し、 ディクショナリ登録手段(10)が、それらの情報をプ
ログラム・ディクシ田ナリ(11)に登録し、且つ、上
記コンパイラ(2)によるコンパイルとディクショナリ
登録手段(10)によるディクショナリ登録が一連の処
理として実行されることを特徴とするものである。以下
、本発明を図面を参照しつつ説明する。
Therefore, the program dictionary creation method of the present invention includes a compiler (2) that interprets a source program into an object program, a program dictionary registration means (10), and a program dictionary (11). , The compiler (2) collects information regarding data items, records, and files used by the program at the time of compilation, and the dictionary registration means (10) registers this information in the program dictionary (11). , and is characterized in that compilation by the compiler (2) and dictionary registration by the dictionary registration means (10) are executed as a series of processes. Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明の1実施例のブロック図、第2図はコボ
ルで書かれたプログラムの一部を示す図、第3図はプロ
グラム・ディクショナリの検索部分の1実施例のブロッ
ク図である。
Fig. 1 is a block diagram of one embodiment of the present invention, Fig. 2 is a diagram showing part of a program written in Kobol, and Fig. 3 is a block diagram of one embodiment of the program dictionary search part. .

第1図において、lはソース・プログラム、2はコンパ
イラ、3は文字列解析手段、4は構文解析手段、5はコ
ード生成手段、6はオブジェクト・モジュール、7はリ
ンケージ・エディタ、8はロード・モジュール、9は中
間ファイル、10はプログラム・ディクショナリ登録手
段、11はプログラム・ディクショナリ、12はポイン
タをそれぞれ示している。
In FIG. 1, l is a source program, 2 is a compiler, 3 is a string analyzer, 4 is a syntax analyzer, 5 is a code generator, 6 is an object module, 7 is a linkage editor, and 8 is a loader. 9 is a module, 9 is an intermediate file, 10 is a program dictionary registration means, 11 is a program dictionary, and 12 is a pointer.

カード又はDASD上のソース・プログラム1は、コン
パイラ2によってオブジェクト・モジュール6は変換さ
れ、ついでリンケージ・エディタ7によってロード・モ
ジュールに変換される。コンパイラ2は、文字列解析手
段3、構文解析手段4およびコード生成手段5などを有
している。ソース・プログラム1のプログラム名、ファ
イル名、レコード名および項目名はコンパイラの構文解
析手段4によって抽出され、中間フ誓イル9に格納され
る。第2図はコボルで書かれたプログラムの1例を示す
ものであって、第2図はプログラム名がP ROG10
2Aであって、このプログラムがF−MASTERとい
うファイルの中におけるREC102Fというレコード
のI T E M1021というデータ項目とI T 
E M1022というデータ項目を用いること、及びG
−MASTERというファイルの中におけるR E C
102Gというレコードの中のI TEM1023とい
うデータ項目とI T E M1024というデータ項
目を使用すること等を表わしている。ソース・プログラ
ム1に第2図のようなファイル名、レコード名および項
目名が書かれていると、中間ファイル9には図示のよう
なデータが書き込まれる。
A source program 1 on a card or DASD is converted into an object module 6 by a compiler 2, and then converted into a load module by a linkage editor 7. The compiler 2 includes a character string analysis means 3, a syntax analysis means 4, a code generation means 5, and the like. The program name, file name, record name, and item name of the source program 1 are extracted by the syntax analysis means 4 of the compiler and stored in the intermediate file 9. Figure 2 shows an example of a program written in Kobol, and the program name in Figure 2 is PROG10.
2A, this program records the data item ITEM1021 of the record REC102F in the file F-MASTER and the data item ITEM1021.
Using the data item E M1022, and G
-REC in the file called MASTER
This indicates that the data items ITEM1023 and ITEM1024 in the record 102G are used. When file names, record names, and item names as shown in FIG. 2 are written in the source program 1, data as shown in the figure is written in the intermediate file 9.

プログラム・ディクショナリ登録部10は、中間ファイ
ル9の内容をプログラム・ディクショナリ11に登録す
る。プログラム・ディクショナリ11には、複数のプロ
グラムの使用するデータ項目のそれぞれについて、その
データ項目の属するレコードの名前、そのレコードの属
するファイルの名前およびそのデータ項目を使用するプ
ログラムの名前が書込まれている。プログラム・ディヘ
ショナリ11にはポインタ12が設けられ、このポイン
タ12は最終データ書込位置をポイントしている。
The program dictionary registration unit 10 registers the contents of the intermediate file 9 in the program dictionary 11. For each data item used by multiple programs, the name of the record to which the data item belongs, the name of the file to which the record belongs, and the name of the program that uses the data item are written in the program dictionary 11. There is. A pointer 12 is provided in the program dictionary 11, and this pointer 12 points to the final data writing position.

第3図はプログラム・ディクショナリ11を用いた検索
システムの1例を示すものであって、13はプログラム
・ディクショナリ11をアクセスするための制御手段、
14はディスプレイ、15はプリンタをそれぞれ示して
いる。制御手段13は、対話検索機能と、ドキュメント
出力機能とを有している。例えば、オペレータがディス
プレイ14のキーボード(図示せず)からデータ項目名
を指定して、このデータ項目を用いているプログラムの
名前を表示出力すべきことを要求すると、制御手段11
はプログラム・ディクショナリ11をサーチし、該当す
るプログラムの名前をディスプレイ14上に出力する。
FIG. 3 shows an example of a search system using the program dictionary 11, in which 13 is a control means for accessing the program dictionary 11;
Reference numeral 14 indicates a display, and reference numeral 15 indicates a printer. The control means 13 has an interactive search function and a document output function. For example, when an operator specifies a data item name from the keyboard (not shown) of the display 14 and requests that the name of a program using this data item be displayed and output, the control means 11
searches the program dictionary 11 and outputs the name of the corresponding program on the display 14.

オペレータが表示内容を印刷出力すべきことを要求とす
ると、表示内容はプリンタ15によって印字出力される
。プログラム・ディクショナリ11は、データ項目名の
みでなく、プログラム名やファイル名、レコード名をキ
ーとして検索することが出来る。
When the operator requests that the displayed content be printed out, the displayed content is printed out by the printer 15. The program dictionary 11 can be searched using not only data item names but also program names, file names, and record names as keys.

以上の説明から明らかなように、本発明によれば、常に
コンパイルとディクショナリ登録が同時に行われるので
、レベルの不一致は原理的に発生しえず、プログラム・
ディクショナリの検索結果は常に実体の情報を反映する
と言う効果が得られる。
As is clear from the above explanation, according to the present invention, compilation and dictionary registration are always performed at the same time, so in principle, level mismatch cannot occur, and the program
The effect is that the dictionary search results always reflect the actual information.

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

第1図は本発明の1実施例のブロック図、第2図はコボ
ルで書かれたプログラムの一部を示す図、第3図はプロ
グラム・ディクショナリの検索部分の1実施例のブロッ
ク図である。 1・・・ソース・プログラム、2・・・コンパイラ、3
・・・文字列解析手段、4・・・構文解析手段、5・・
・コード生成手段、6・・・オブジェクト・モジュール
、7・・・リンケージ・エディタ、8・・・ロード・モ
ジュール、9・・・中間ファイル、10・・・プログラ
ム・ディクショナリ登録手段、11・・・プログラム・
ディクショナリ、12・・・ポインタ、13・・・プロ
グラム・ディクショナリ11をアクセスするための制御
手段、14・・・ディスプレイ、15・・・プリンタ。 特許出願人   富士通株式会社 代理人弁理士  京 谷 四 部 才 1 口 χ 2(!l 究3■
Fig. 1 is a block diagram of one embodiment of the present invention, Fig. 2 is a diagram showing part of a program written in Kobol, and Fig. 3 is a block diagram of one embodiment of the program dictionary search part. . 1... Source program, 2... Compiler, 3
...Character string analysis means, 4...Syntax analysis means, 5...
- Code generation means, 6... Object module, 7... Linkage editor, 8... Load module, 9... Intermediate file, 10... Program dictionary registration means, 11... program·
Dictionary, 12... Pointer, 13... Control means for accessing the program dictionary 11, 14... Display, 15... Printer. Patent Applicant Fujitsu Ltd. Representative Patent Attorney Yotsube Kyotani 1.x2(!l.3)

Claims (1)

【特許請求の範囲】 ソース・プログラムをオブジェクト・プログラムに解釈
するコンパイラ(2)と、 プログラム・ディクショナリ登録手段(10)と、プロ
グラム・ディクショナリ(11)と を具備し、 上記コンパイラ(2)が、プログラムによって使用され
るデータ項目、レコード、ファイルに関する情報をコン
パイル時に収集し、 ディクショナリ登録手段(10)が、それらの情報をプ
ログラム・ディクショナリ(11)に登録し、且つ、上
記コンパイラ(2)によるコンパイルとディクショナリ
登録手段(10)によるディクショナリ登録が一連の処
理として実行されること を特徴とするプログラム・ディクショナリの作成方式。
[Scope of Claims] A compiler (2) that interprets a source program into an object program, a program dictionary registration means (10), and a program dictionary (11), the compiler (2) comprising: A dictionary registration means (10) collects information regarding data items, records, and files used by the program at the time of compilation, registers the information in the program dictionary (11), and compiles the information by the compiler (2). and dictionary registration by the dictionary registration means (10) are executed as a series of processes.
JP62095853A 1987-04-18 1987-04-18 Apparatus and method for creating program dictionary Expired - Lifetime JP2520633B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62095853A JP2520633B2 (en) 1987-04-18 1987-04-18 Apparatus and method for creating program dictionary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62095853A JP2520633B2 (en) 1987-04-18 1987-04-18 Apparatus and method for creating program dictionary

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP56152279A Division JPS5854447A (en) 1981-09-26 1981-09-26 Retrieving system for program dictionary

Publications (2)

Publication Number Publication Date
JPS62259138A true JPS62259138A (en) 1987-11-11
JP2520633B2 JP2520633B2 (en) 1996-07-31

Family

ID=14148927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62095853A Expired - Lifetime JP2520633B2 (en) 1987-04-18 1987-04-18 Apparatus and method for creating program dictionary

Country Status (1)

Country Link
JP (1) JP2520633B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5854447A (en) * 1981-09-26 1983-03-31 Fujitsu Ltd Retrieving system for program dictionary

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5854447A (en) * 1981-09-26 1983-03-31 Fujitsu Ltd Retrieving system for program dictionary

Also Published As

Publication number Publication date
JP2520633B2 (en) 1996-07-31

Similar Documents

Publication Publication Date Title
US6219831B1 (en) Device and method for converting computer programming languages
US20030028364A1 (en) Development assistance for mixed-language sources
Miller et al. The common language infrastructure annotated standard
US20080320054A1 (en) Database and Software Conversion System and Method
Dean et al. Using design recovery techniques to transform legacy systems
Malton et al. Processing software source text in automated design recovery and transformation
JP3251203B2 (en) JCL program conversion device, JCL program conversion method, and recording medium
JPS62259138A (en) Production system for program dictionary
JPH0766342B2 (en) Program test equipment
JPS6126690B2 (en)
CN1332302C (en) Navigation in computer software applications developed in procedural language
TW200417924A (en) WIN F-language interpreter
Abrams NET Framework Standard Library Annotated Reference: Base class library and extended numerics library
Van Sickle et al. Recovering user interface specifications for porting transaction processing applications
Ting et al. Systems Guide to Fig-FORTH
Eriksen et al. The BOBS-system
JPH044467A (en) Sentence structure analyzing device
Vander Mey et al. SYMPLE: a general syntax directed macro preprocessor
Yafi et al. Syntax Recovery for Uniface as a Domain Specific Language
Varma Generalizing recognition of an individual dialect in program analysis and transformation
Kishanthan JVM compiler backend for Ballerina intermediate representation
Jensen Implementation of a scientific subset of ALGOL 68
Grocevs et al. The comparison of modern plagiarism identification methods in programming assessments
JPH03176740A (en) Interchange system for source file
JPH07182222A (en) Device for managing objective-oriented data base