JP2977642B2 - FORTRAN compilation processor - Google Patents

FORTRAN compilation processor

Info

Publication number
JP2977642B2
JP2977642B2 JP3158230A JP15823091A JP2977642B2 JP 2977642 B2 JP2977642 B2 JP 2977642B2 JP 3158230 A JP3158230 A JP 3158230A JP 15823091 A JP15823091 A JP 15823091A JP 2977642 B2 JP2977642 B2 JP 2977642B2
Authority
JP
Japan
Prior art keywords
sql
fortran
processing unit
source program
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.)
Expired - Fee Related
Application number
JP3158230A
Other languages
Japanese (ja)
Other versions
JPH056278A (en
Inventor
誘二 辻森
英明 本間
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 JP3158230A priority Critical patent/JP2977642B2/en
Publication of JPH056278A publication Critical patent/JPH056278A/en
Application granted granted Critical
Publication of JP2977642B2 publication Critical patent/JP2977642B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は,FORTRANを親言
語として記述したデータベース言語のSQLを,プリプ
ロセッサを用いることなく,FORTRANコンパイラ
本体で解析して処理するようにしたFORTRANコン
パイル処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a FORTRAN compile processing apparatus which analyzes and processes SQL in a database language in which FORTRAN is described as a parent language, without using a preprocessor, using a FORTRAN compiler itself.

【0002】[0002]

【従来の技術】図6は従来技術の例を示す。従来のFO
RTRANで,データベース言語をサポートする場合,
データベース言語による記述文を含むソースプログラム
60を,プリプロセッサ61に入力し,標準のFORT
RANソースプログラム62に変換した後,それをFO
RTRANコンパイラ63によってコンパイルすること
によって,オブジェクトプログラム64を生成する。な
お,図6の例では,データベース操作・検索用の言語を
“AQL”と呼んでいるが,内容的には,周知のSQL
言語と同様である。
2. Description of the Related Art FIG. 6 shows an example of the prior art. Conventional FO
If RTRAN supports a database language,
A source program 60 including a description sentence in a database language is input to a preprocessor 61, and a standard FORT
After converting to RAN source program 62,
The object program 64 is generated by compiling with the RTRAN compiler 63. In the example of FIG. 6, the language for database operation / search is called "AQL".
Same as language.

【0003】[0003]

【発明が解決しようとする課題】従来技術では,FOR
TRANでのデータベース言語のサポートは,プリプロ
セッサ61の処理と,FORTRANコンパイラ63の
処理の二つの部分からなるため,プリプロセッサ61で
は,多量のFORTRANソースプログラム62を出力
することになった。
In the prior art, the FOR
Since the support of the database language in TRAN includes two parts, that is, the processing of the preprocessor 61 and the processing of the FORTRAN compiler 63, the preprocessor 61 outputs a large amount of the FORTRAN source program 62.

【0004】例えば,図6に示すソースプログラム60
のの記述は,プリプロセッサ61により,FORTR
ANソースプログラム62中に表しているような記述に
変換されることになる。このほかに,次のようなデータ
ベース管理システムとのインタフェースパラメタが追加
される。
For example, a source program 60 shown in FIG.
Is described by the preprocessor 61 in the FORTR
This is converted into a description as shown in the AN source program 62. In addition, the following interface parameters with the database management system are added.

【0005】 『 CHARACTER*8 AQL000,AQL004*44 CHARACTER*12 AQL002/' '/ PARAMETER(AQL004=Z0000000000000000000000000000000000……000) CHARACTER*55 AQLZZY DATA AQLZZY(1:44)/AQL004/ DATA AQLZZY(45:55)/' START AQL;'/ CHARACTER*55 AQLZZX DATA AQLZZX(1:44)/AQL004/ DATA AQLZZX(45:53)/' END AQL;'/ CALL JZLAQI(AQL000,AQL002,AQL004) 』 また,図6に示すソースプログラム60のの記述は,
プリプロセッサ61により,次のような標準のFORT
RANソースプログラムに変換される。
[CHARACTER * 8 AQL000, AQL004 * 44 CHARACTER * 12 AQL002 / '' / PARAMETER (AQL004 = Z0000000000000000000000000000000000 …… 000) CHARACTER * 55 AQLZZY DATA AQLZZY (1:44) / AQL004 / DATA AQLZZY (45:55) / 'START AQL;' / CHARACTER * 55 AQLZZX DATA AQLZZX (1:44) / AQL004 / DATA AQLZZX (45:53) / 'END AQL;' / CALL JZLAQI (AQL000, AQL002, AQL004) The description of the source program 60 shown below is
The following standard FORT is executed by the preprocessor 61.
It is converted to a RAN source program.

【0006】 『 CALL JZLAQL('MAIN; XE3', 1,AQLZZY,AQL002,AQLLEN,AQL000) IF(AQLCD/10.EQ.-34) STOP IF(AQLRC.LT.0.AND.AQLCD/10.NE.-34) STOP 』 さらに,図6に示すソースプログラム60のの記述
は,プリプロセッサ61により,次のような標準のFO
RTRANソースプログラムに変換される。
[0006] CALL JZLAQL ('MAIN;XE3', 1, AQLZZY, AQL002, AQLLEN, AQL000) IF (AQLCD / 10.EQ.-34) STOP IF (AQLRC.LT.0.AND.AQLCD / 10.NE .-34) STOP "Furthermore, the description of the source program 60 shown in FIG.
Converted to RTRAN source program.

【0007】 『 CALL JZLAQL('MAIN; XE3', 2,AQLZZX,AQL002,AQLLEN,AQL000) IF(AQLCD/10.EQ.-34) STOP IF(AQLRC.LT.0.AND.AQLCD/10.NE.-34) STOP END 』 なお,上記の例で,CALL文で呼び出される“JZL
AQL”は,データベース言語を処理するデータベース
管理システムのロードモジュールである。
[CALL JZLAQL ('MAIN;XE3', 2, AQLZZX, AQL002, AQLLEN, AQL000) IF (AQLCD / 10.EQ.-34) STOP IF (AQLRC.LT.0.AND.AQLCD / 10.NE .-34) STOP END] In the above example, "JZL called by the CALL statement
AQL "is a load module of a database management system that processes a database language.

【0008】このように多量のFORTRANソースプ
ログラムが出力される理由は,FORTRANの言語仕
様に構造体型がないため,データベース管理システムと
のインタフェースのパラメタを,FORTRANソース
プログラムで記述するには,EQUIVALENCE文
およびCOMMON文などを用いなければならないから
である。
The reason that such a large amount of FORTRAN source program is output is that there is no structure type in the language specification of FORTRAN, so that the parameters of the interface with the database management system must be described in an EQUALENCE statement in order to describe the parameters of the interface with the database management system in the FORTRAN source program. And COMMON statements must be used.

【0009】以上のように,従来技術では,プリプロセ
ッサ61およびFORTRANコンパイラ63を,それ
ぞれ起動しなければならず,操作が煩雑になるととも
に,多量のFORTRANソースプログラム62を扱う
必要があり,それを格納するための記憶装置も用意しな
ければならなかった。また,翻訳時オプションの解析以
前のプリプロセッサ61により,データベース言語の解
析が行われるため,デバッグオプションなどの翻訳時オ
プションとの併用が不可能であった。
As described above, in the prior art, the preprocessor 61 and the FORTRAN compiler 63 must be started, respectively, and the operation becomes complicated, and it is necessary to handle a large number of FORTRAN source programs 62. Storage had to be provided. Further, since the analysis of the database language is performed by the preprocessor 61 before the analysis of the translation option, it is impossible to use the translation option such as the debug option together.

【0010】本発明は上記問題点の解決を図り,プリプ
ロセッサを用いることなく,FORTRANコンパイラ
本体で,データベース言語を解析して処理することによ
り,操作性および翻訳性能などを向上させることを目的
としている。
An object of the present invention is to solve the above problems and improve the operability and the translation performance by analyzing and processing a database language with a FORTRAN compiler itself without using a preprocessor. .

【0011】[0011]

【課題を解決するための手段】図1は,本発明の原理説
明図である。図1において,10はSQL言語による記
述部分を含むFORTRANソースプログラム,11は
CPUおよびメモリなどからなる処理装置,12はFO
RTRANコンパイラ,13は全体のコンパイル制御を
行う制御部,14はソースプログラムの構文を解析する
構文解析処理部,15はソースプログラム中のSQL文
を解析するSQL解析処理部,16はメモリまたは外部
記憶装置のコンパイラ作業域,17は意味についての解
析を行う意味解析処理部,18は構文解析および意味解
析の結果からソースプログラムの内容を内部表現化した
中間言を生成する中間言生成処理部,19は中間言を格
納し記憶する中間言格納部,20は最適化処理を行う最
適化処理部,21は中間言をもとに領域やレジスタの割
り付けを行いオブジェクトプログラムを生成するオブジ
ェクト生成部,22はFORTRANコンパイラ12に
よって出力されたオブジェクトプログラムを表す。
FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, reference numeral 10 denotes a FORTRAN source program including a description part in the SQL language;
RTRAN compiler, 13 a control unit for controlling the overall compilation, 14 a syntax analysis processing unit for analyzing the syntax of the source program, 15 an SQL analysis processing unit for analyzing the SQL statement in the source program, 16 a memory or external storage A compiler work area of the device, 17 a semantic analysis processing unit for analyzing the meaning, 18 an intermediate language generation processing unit for generating an intermediate language in which the contents of the source program are internally expressed from the results of the syntax analysis and the semantic analysis, 19 Is an intermediate language storage unit that stores and stores intermediate language, 20 is an optimization processing unit that performs optimization processing, 21 is an object generation unit that allocates areas and registers based on the intermediate language and generates an object program, 22 Represents an object program output by the FORTRAN compiler 12.

【0012】本発明の構文解析処理部14は,データベ
ース操作・検索用の計算機言語であるSQL言語による
記述部分を含むFORTRANソースプログラム10の
構文を解析し,ソースプログラム中にSQL文があるか
どうかを判定する処理手段を持つ。
The syntax analysis processing unit 14 of the present invention analyzes the syntax of the FORTRAN source program 10 including a description part in the SQL language which is a computer language for database operation and search, and checks whether the source program contains an SQL statement. Is determined.

【0013】構文解析処理部14は,ソースプログラム
中にSQL文があった場合,SQL解析処理部15を呼
び出す。SQL解析処理部15は,構文解析処理部14
から通知されたSQL文を解析し,データベース管理シ
ステムとのインタフェースパラメタを作成する。その結
果をコンパイラ作業域16に格納する。
The syntax analysis processing unit 14 calls the SQL analysis processing unit 15 when there is an SQL statement in the source program. The SQL analysis processing unit 15 includes the syntax analysis processing unit 14
It analyzes the SQL sentence notified from, and creates an interface parameter with the database management system. The result is stored in the compiler work area 16.

【0014】中間言生成処理部18は,SQL解析処理
部15の解析結果に基づいて,実行時パラメタを含むオ
ブジェクトとなる中間言を作成し,中間言格納部19に
格納する。これをもとに,最適化処理部20によって最
適化を行い,オブジェクト生成部21によりオブジェク
トプログラム22を生成する。
The intermediate language generation processing unit 18 creates an intermediate language, which is an object including parameters at the time of execution, based on the analysis result of the SQL analysis processing unit 15 and stores it in the intermediate language storage unit 19. Based on this, optimization is performed by the optimization processing unit 20, and an object program 22 is generated by the object generation unit 21.

【0015】これにより,SQL言語による記述部分を
含むFORTRANソースプログラム10を,プリプロ
セッサを用いることなく,FORTRANコンパイラ1
2によって直接的に処理しコンパイルする。
[0015] Thus, the FORTRAN source program 10 including the description part in the SQL language can be converted into the FORTRAN compiler 1 without using a preprocessor.
2 to process and compile directly.

【0016】[0016]

【作用】FORTRANコンパイラ12の構造は,全体
の制御を行う制御部13と,構文解析処理部14,意味
解析処理部17および中間言生成処理部18からなるフ
ロントエンドと,最適化を行う最適化処理部20のミド
ルパスと,実際にオブジェクトを出力するオブジェクト
生成部21のバックエンドとから構成される構造となっ
ている。この構造は,従来技術も本発明も同様である
が,本発明の場合,構文解析処理部14によりSQL文
の有無を判定し,SQL解析処理部15を呼び出すよう
になっている。そして,中間言生成処理部18では,S
QL解析処理部15の解析結果に基づいて,データベー
ス管理システムとのインタフェースを持つオブジェクト
を出力するために必要な中間言を生成する。
The structure of the FORTRAN compiler 12 includes a control unit 13 for performing overall control, a front end including a syntax analysis processing unit 14, a semantic analysis processing unit 17, and an intermediate language generation processing unit 18, and an optimization for performing optimization. The structure includes a middle path of the processing unit 20 and a back end of the object generation unit 21 that actually outputs an object. This structure is the same in the prior art and the present invention, but in the case of the present invention, the syntax analysis processing unit 14 determines the presence or absence of an SQL sentence, and calls the SQL analysis processing unit 15. Then, in the intermediate language generation processing unit 18, S
On the basis of the analysis result of the QL analysis processing unit 15, an intermediate language necessary for outputting an object having an interface with the database management system is generated.

【0017】コンパイル時における通常のFORTRA
Nとデータベース管理システムとのインタフェースパラ
メタの形式を同じにすることにより,FORTRANコ
ンパイラ12のうち,FORTRANソースプログラム
10中のSQL文は,制御部13とフロントエンド(構
文解析処理部14および中間言生成処理部18)だけで
対処することができ,その他のフェーズには影響を及ぼ
さないようにすることができる。
Normal FORTRA at compile time
By using the same interface parameter format between N and the database management system, the SQL statement in the FORTRAN source program 10 of the FORTRAN compiler 12 can be controlled by the control unit 13 and the front end (the syntax analysis processing unit 14 and the intermediate language generation unit). This can be dealt with only by the processing unit 18), so that the other phases are not affected.

【0018】[0018]

【実施例】図2は,本発明の一実施例処理フローを示
す。図1に示すFORTRANコンパイラ12による本
発明に関係する部分の処理は,図2に示す〜のよう
に行われる。コンパイラ内蔵でSQLのサポートを行う
ために,制御部13は,データベース管理システムのS
QL解析処理部15等をローディングする。
FIG. 2 shows a processing flow of an embodiment of the present invention. The processing related to the present invention by the FORTRAN compiler 12 shown in FIG. 1 is performed as shown in FIG. In order to support SQL with a built-in compiler, the control unit 13 uses the S
The QL analysis processing unit 15 and the like are loaded.

【0019】 構文解析処理部14は,FORTRA
Nソースプログラム10を入力し,その構文を解析す
る。 テキスト中に“EXEC SQL”の文字列を
含むようなSQL文があると,SQL解析処理部15に
制御を移し,処理以降を実行する。
The syntax analysis processing unit 14
The N source program 10 is input and its syntax is analyzed. If there is an SQL sentence including the character string "EXEC SQL" in the text, the control is transferred to the SQL analysis processing unit 15, and the processing after that is executed.

【0020】 SQL解析処理部15は,構文解析処
理部14から渡された文を解析し,SQL文の正当性を
検査する。正しくない場合,エラーとして構文解析処理
部14に制御を戻す。
The SQL analysis processing unit 15 analyzes the sentence sent from the syntax analysis processing unit 14 and checks the validity of the SQL sentence. If not correct, control is returned to the syntax analysis processing unit 14 as an error.

【0021】 SQL文が正しければ,データベース
管理システムとのインタフェースパラメタを適当な内部
形式で作成し,コンパイラ作業域16に格納して,制御
を構文解析処理部14に戻す。
If the SQL statement is correct, set the interface parameters with the database management system to the appropriate internal
It is created in the format, stored in the compiler work area 16, and the control is returned to the syntax analysis processing unit 14.

【0022】 中間言生成処理部18では,インタフ
ェースパラメタがデータベース管理システムに関するも
のである場合には,その情報をもとに,実行時インタフ
ェースのパラメタをオブジェクトとなる中間言として出
力する。
When the interface parameters are related to the database management system, the intermediate language generation processing unit 18 outputs the parameters of the runtime interface as intermediate languages that are objects based on the information.

【0023】他の処理については,従来のFORTRA
Nコンパイラと同様であるので,詳細な説明を省略す
る。図3は,本発明の一実施例に係るFORTRANコ
ンパイラとデータベース管理システムとのインタフェー
スパラメタの例を示す。
For other processing, the conventional FORTRA
Since it is the same as the N compiler, detailed description is omitted. FIG. 3 shows an example of interface parameters between the FORTRAN compiler and the database management system according to one embodiment of the present invention.

【0024】コンパイラ共通作業域30のSQL用エン
トリから指標されているパラメタ域31におけるP1か
らP10までが,データベース管理システムに関係する
パラメタであり,コンパイラは,これらを次のような
ースプログラムのサブルーチン呼び出しに相当する内部
情報(中間言の一種と考えてよい)を出力する。
[0024] From P1 in the parameter region 31 which is an index from SQL for entry Compiler Common work area 30 to P10 is a parameter related to the database management system, compiler, source them the following
Equivalent to subroutine call of source program
Output information (may be considered as a kind of intermediate language) .

【0025】CALL JYPLUCSQ(P1,P
2,P3,……,P9,P10)ここで,“JYPLU
CSQ”はデータベース管理システムのロードモジュー
ルである。
CALL JYPLUCSQ (P1, P
2, P3, ..., P9, P10) where "JYPLU"
CSQ "is a load module of the database management system.

【0026】以上のインタフェース形式は,今までのF
ORTRANコンパイラにはないインタフェースである
が,FORTRAN文とSQL文とを同様なインタフェ
ースで処理できるようにパラメタを含む内部情報の出力
を工夫している。
The above interface format corresponds to the F
Although this interface is not available in the ORTRAN compiler, the output of internal information including parameters has been devised so that the FORTRAN statement and the SQL statement can be processed by a similar interface.

【0027】図4は,パラメタの詳細説明図である。図
4の(イ)は,図3のパラメタP1で示されるシステム
通信域の内容を示している。システム通信域は,翻訳単
位に1つ用意すればよい。4バイト目,8バイト目のS
QLCODE,SQLSTATEは,データベース管理
システム側で設定するデータである。オプションコード
は,コンパイラのフロントエンド側で設定する。
FIG. 4 is a detailed explanatory diagram of the parameters. FIG. 4A shows the contents of the system communication area indicated by the parameter P1 in FIG. One system communication area may be prepared for each translation unit. 4th byte, 8th byte S
QLCODE and SQLSTATE are data set on the database management system side. The option code is set on the front end side of the compiler.

【0028】返却メッセージの言語指定1,2は,それ
ぞれメッセージの種別を示す。ホスト言語種別は,FO
RTRANの種別を指定する。インタフェースレベル
は,例えば現在のレベルを“1”と規定し,その値を設
定する。レベルが異なるごとに,値を変えていく。シス
テム情報としては,必要に応じて任意の情報を設定す
る。必要がない場合,“0”でよい。
The language designations 1 and 2 of the return message indicate the type of the message, respectively. Host language type is FO
Specify the type of RTRAN. As the interface level, for example, the current level is defined as “1” and its value is set. Change the value for each different level. Arbitrary information is set as system information as needed. If there is no need, "0" may be used.

【0029】図4の(イ)に示す情報を,FORTRA
Nのインタフェースの数値簿で,図4の(ロ)に示すよ
うに表現する。この数値簿40は,中間言としての内部
表現である。数値簿40における文字列を格納する領域
41に,図4の(イ)に示す32バイトの情報を,文字
列にみたてて格納する。
The information shown in FIG.
It is expressed as shown in (b) of FIG. This numerical book 40 is an internal expression as an intermediate language. In the area 41 for storing the character string in the numerical value book 40, the 32-byte information shown in FIG.

【0030】コンパイラのインタフェースとしては,図
4の(ロ)に示すaのアドレスを使用し,データベース
管理システムとのインタフェースとしては,bのアドレ
スを使用する。これにより,共通処理に数値簿40を使
用することができる。
As an interface of the compiler, an address a shown in FIG. 4B is used, and as an interface with the database management system, an address b is used. Thus, the value book 40 can be used for common processing.

【0031】図3に示すパラメタP5〜P10は,パラ
メタP1と同じ方法で,インタフェースを作成する。図
5は,本発明の一実施例に係るコマンド入力情報の例を
示す。
The parameters P5 to P10 shown in FIG. 3 create an interface in the same manner as the parameter P1. FIG. 5 shows an example of command input information according to one embodiment of the present invention.

【0032】データベース管理システムとのインタフェ
ースのパラメタP2では,SQL文に記述されたコマン
ド文字列を設定する。このコマンド入力情報は,必ずし
も連続領域でなくてもよい。コンパイラのフロントエン
ドでは,この領域を構造体として情報を設定する。
In the parameter P2 of the interface with the database management system, a command character string described in an SQL statement is set. This command input information does not necessarily have to be a continuous area. In the front end of the compiler, information is set using this area as a structure.

【0033】例えば,図5の(イ)に示すような文字列
から作成されるコマンド入力情報は,図5の(ロ)に示
すようになる。図5の(ロ)に示すコマンド入力情報の
0バイト目から(m+8)バイト目までは,文字列1で
表現しているものである。それ以降の(m+n+12)
バイト目までは,文字列2で表現しているものである。
For example, command input information created from a character string as shown in FIG. 5A is as shown in FIG. The bytes from the 0th byte to the (m + 8) th byte of the command input information shown in (b) of FIG. 5 are represented by the character string 1. (M + n + 12) after that
Up to the byte, the character string 2 is used.

【0034】このような情報を,FORTRANのイン
タフェースである図4の(ロ)に示す数値簿40で内部
表現する。数値簿40の“次の数値簿へのアドレス”に
文字列2を表現する数値簿のアドレスを格納する。文字
列を格納する領域41に,文字列1の情報を格納する。
Such information is internally represented in a numerical book 40 shown in FIG. 4B, which is a FORTRAN interface. The address of the numerical book expressing the character string 2 is stored in the “address to the next numerical book” of the numerical book 40. The information of the character string 1 is stored in the area 41 for storing the character string.

【0035】コマンド入力情報についても,コンパイラ
のインタフェースとしては,数値簿40のaのアドレス
を使用し,データベース管理システムとのインタフェー
スには,bのアドレスを使用することで,共通処理に数
値簿40を使用できる。
As for the command input information, the address of a of the numerical book 40 is used as the interface of the compiler, and the address of b is used as the interface with the database management system. Can be used.

【0036】図3に示すパラメタP3,P4は,パラメ
タP2と同じ方法で,インタフェースを作成する。
The parameters P3 and P4 shown in FIG. 3 create an interface in the same manner as the parameter P2.

【0037】[0037]

【発明の効果】以上説明したように,本発明によれば,
コンパイラ内蔵によりデータベース言語SQLをサポー
トすることにより,従来のプリプロセッサが出力してい
たような多量のFORTRANテキストを出力する必要
がなくなる。また,データベース管理システムの機能拡
張などにも,コンパイラで容易に対処することができる
ようになる。操作性および翻訳性能も向上する。
As described above, according to the present invention,
By supporting the database language SQL with a built-in compiler, there is no need to output a large amount of FORTRAN text as output by a conventional preprocessor. Further, etc. also enhancements database management system, it is possible to easily cope with the compiler. Operability and translation performance are also improved.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例処理フローを示す図である。FIG. 2 is a diagram showing a processing flow of an embodiment of the present invention.

【図3】本発明の一実施例に係るFORTRANコンパ
イラとデータベース管理システムとのインタフェースパ
ラメタの例を示す図である。
FIG. 3 is a diagram showing an example of interface parameters between a FORTRAN compiler and a database management system according to an embodiment of the present invention.

【図4】本発明の一実施例に係るパラメタの詳細説明図
である。
FIG. 4 is a detailed explanatory diagram of parameters according to an embodiment of the present invention.

【図5】本発明の一実施例に係るコマンド入力情報の例
を示す図である。
FIG. 5 is a diagram showing an example of command input information according to one embodiment of the present invention.

【図6】従来技術の例を示す図である。FIG. 6 is a diagram showing an example of the related art.

【符号の説明】[Explanation of symbols]

10 FORTRANソースプログラム 11 処理装置 12 FORTRANコンパイラ 13 制御部 14 構文解析処理部 15 SQL解析処理部 16 コンパイラ作業域 17 意味解析処理部 18 中間言生成処理部 19 中間言格納部 20 最適化処理部 21 オブジェクト生成部 22 オブジェクトプログラム Reference Signs List 10 FORTRAN source program 11 processing device 12 FORTRAN compiler 13 control unit 14 syntax analysis processing unit 15 SQL analysis processing unit 16 compiler work area 17 semantic analysis processing unit 18 intermediate language generation processing unit 19 intermediate language storage unit 20 optimization processing unit 21 object Generation unit 22 Object program

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−188833(JP,A) 特開 平4−195640(JP,A) 特開 平4−320533(JP,A) 「情報処理学会研究報告」Vol. 89,No.37(89−DBS−71−6) (58)調査した分野(Int.Cl.6,DB名) G06F 9/45 G06F 12/00 G06F 17/30 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-2-188833 (JP, A) JP-A-4-195640 (JP, A) JP-A-4-320533 (JP, A) Report, Vol. 89, No. 37 (89-DBS-71-6) (58) Field surveyed (Int. Cl. 6 , DB name) G06F 9/45 G06F 12/00 G06F 17/30

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データベース操作・検索用の計算機言語
であるSQL言語による記述部分を含むFORTRAN
ソースプログラムをコンパイルするFORTRANコン
パイル処理装置であって, ソースプログラムの構文を解析し,ソースプログラム中
にSQL文があるかどうかを判定する構文解析処理
, ソースプログラム中にSQL文があった場合に,前記構
文解析処理部によって呼び出されて,そのSQL文を解
析し,データベース管理システムとのインタフェースパ
ラメタを作成するSQL解析処理部と, 前記SQL解析処理部の解析結果に基づいて,実行時パ
ラメタを含むオブジェクトとなる中間言を作成する中間
言生成処理部と, 前記 SQL言語による記述部分を含むFORTRANソ
ースプログラムを解析して得られた中間言をもとに,コ
ンパイル結果のオブジェクトプログラムを生成するオブ
ジェクト生成部とを備えることを特徴とするFORTR
ANコンパイル処理装置。
1. FORTRAN including a description part in SQL language which is a computer language for database operation and retrieval
A FORTRAN compilation unit for compiling the source program, to analyze the syntax of the source program, the syntax analysis processing unit determines whether there are SQL statements in the source program
If, when a SQL statement in the source program, thus called by the syntax analysis unit analyzes the SQL statement, and SQL analysis processing section for creating an interface parameter of the database management system, the SQL based on the analysis result of the analysis processing unit, and the intermediate language generation processing unit for creating intermediate language as the object that contains a runtime parameter, intermediate language obtained by analyzing the FORTRAN source program including a descriptive portion by the SQL language Based on
Object that generates the object program resulting from the compilation
And a project generating unit.
AN compilation processing device.
JP3158230A 1991-06-28 1991-06-28 FORTRAN compilation processor Expired - Fee Related JP2977642B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3158230A JP2977642B2 (en) 1991-06-28 1991-06-28 FORTRAN compilation processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3158230A JP2977642B2 (en) 1991-06-28 1991-06-28 FORTRAN compilation processor

Publications (2)

Publication Number Publication Date
JPH056278A JPH056278A (en) 1993-01-14
JP2977642B2 true JP2977642B2 (en) 1999-11-15

Family

ID=15667122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3158230A Expired - Fee Related JP2977642B2 (en) 1991-06-28 1991-06-28 FORTRAN compilation processor

Country Status (1)

Country Link
JP (1) JP2977642B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013210920A (en) * 2012-03-30 2013-10-10 Nec Corp Compilation device, compilation method, and compiler

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
「情報処理学会研究報告」Vol.89,No.37(89−DBS−71−6)

Also Published As

Publication number Publication date
JPH056278A (en) 1993-01-14

Similar Documents

Publication Publication Date Title
US5680622A (en) System and methods for quickly detecting shareability of symbol and type information in header files
US5586328A (en) Module dependency based incremental compiler and method
US6317871B1 (en) System for ensuring the accuracy of file structures in a source-to-source computer program translator
US6353925B1 (en) System and method for lexing and parsing program annotations
JP2609093B2 (en) Apparatus and method for generating software program
US6055370A (en) Apparatus which allows data sharing amongst computer programs from different program environments
US5850550A (en) No preprocessor and a source level debugger for embedded SQL in a 3GL
EP0476635A2 (en) Self identifying objects in computer systems
US20060271920A1 (en) Multilingual compiler system and method
US7823139B2 (en) Method and system for translating programming languages
US20040158820A1 (en) System for generating an application framework and components
JPH08339304A (en) Method and apparatus for generation of platform standard object file containing machine independence code
JPH05197685A (en) System and method for supporting translation of windowed user interface with plurality of languages
Plosch Design by contract for Python
JPH0769832B2 (en) Method and apparatus for expressing effects and dependencies of programming operations
KR20090011974A (en) Method for extracting the target files of compilation
JP2977642B2 (en) FORTRAN compilation processor
García-Pradales et al. An s (CASP) In-Browser Playground based on Ciao Prolog.
JPH07182179A (en) Object oriented data base managing device
JP2942414B2 (en) Virtual database method
JP3050575B2 (en) Natural language automatic translator
Zhou et al. Generating Bindings in MPICH
KR100277479B1 (en) How to compile a separate fill
Goos et al. Towards a compiler front-end for Ada
Weber Creation of a family of compilers and runtime environments by combining reusable components

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990824

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees