JPH03179529A - Language translation system - Google Patents
Language translation systemInfo
- Publication number
- JPH03179529A JPH03179529A JP31764289A JP31764289A JPH03179529A JP H03179529 A JPH03179529 A JP H03179529A JP 31764289 A JP31764289 A JP 31764289A JP 31764289 A JP31764289 A JP 31764289A JP H03179529 A JPH03179529 A JP H03179529A
- Authority
- JP
- Japan
- Prior art keywords
- source program
- program
- list
- translation
- compiler
- 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
- 238000010586 diagram Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 101100508406 Caenorhabditis elegans ifa-1 gene Proteins 0.000 description 1
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、プログラミング言語で記述された原始プロ
グラムを実行可能な目的モジュールに翻訳する言語fl
A訳システムに関するものである。[Detailed Description of the Invention] [Industrial Application Field] This invention relates to a language fl for translating a source program written in a programming language into an executable object module.
This is related to the A translation system.
[従来の技術]
第2図は従来の言語翻訳システムを示す処理図であり、
図において、(1)はプリプロセッサ、(2)はこのプ
リプロセッサ(1)によって起動されるコンパイラ、(
3)はプリプロセッサ(1〉が前翻訳処理可能な原始プ
ログラム、(4)はプリプロセッサ(1)による変換後
の原始プログラム、(5〉はプリプロセッサ(1〉が出
力する前翻訳リスト、(6)。[Prior Art] Figure 2 is a processing diagram showing a conventional language translation system.
In the figure, (1) is a preprocessor, (2) is a compiler started by this preprocessor (1), and (
3) is a preprocessor (1> is a source program capable of pre-translation processing; (4) is a source program after conversion by the preprocessor (1); (5> is a pre-translation list output by the preprocessor (1); (6)).
(7)はコンパイラ(2)が出力するそれぞれ目的モジ
ュール、翻訳リストである。(7) are the target module and translation list respectively output by the compiler (2).
次に動作について説明する。プリプロセッサ(1)は、
原始プログラム(3〉が入力されると、これを前翻訳処
理してコンパイラ(2)が翻訳処理可能な変IfA1&
の原始プログラム(4)と前翻訳リスト(5)を出力す
る。なお、変換後の原始プログラム(4〉は、その各行
に原始プログラム(3〉の対応行の情報を持っている。Next, the operation will be explained. The preprocessor (1) is
When the source program (3) is input, it is pre-translated and the compiler (2) creates a variable IfA1 &
The source program (4) and pre-translation list (5) are output. Note that the converted source program (4>) has information on the corresponding line of the source program (3>) in each line thereof.
そしてプリプロセッサ(1〉はコンパイラ(2)を起動
させる。そうすると、コンパイラ(2)は、入力された
、変換後の原始プログラム(4〉を翻訳処理して目的モ
ジュール(6)を翻訳リスト(7)を出力する。The preprocessor (1) then starts the compiler (2). Then, the compiler (2) translates the input converted source program (4) and converts the target module (6) into a translation list (7). Output.
また、第3図は、第2図と同様なかつ特開昭61273
38号公報に開示されたような従来の他の3語翻訳シス
テムを示す処理図である。第3図の言語翻訳システムで
は、プリプロセッサ(1)が原動プログラム(3)中の
マークロ文(3a)を展開して変換後の原始プログラム
(4)を作成する。そしてコンパイラ(2)は、変換後
の原始プログラム(4)を翻訳し、マクロ文(3a)の
展開行(000010〜000030の行)に対するエ
ラーメツセージリスト(8)や相互参照リスト(9)を
作成する。Moreover, FIG. 3 is similar to FIG.
38 is a process diagram showing another conventional three-word translation system as disclosed in Publication No. 38; FIG. In the language translation system shown in FIG. 3, a preprocessor (1) develops a Markmark sentence (3a) in a driving program (3) to create a converted source program (4). The compiler (2) then translates the converted source program (4) and creates an error message list (8) and cross-reference list (9) for the expansion lines (lines 000010 to 000030) of the macro statement (3a). do.
[発明が解決しようとする課題]
従来の言語翻訳システムでは、コンパイラ(2)で検出
される翻訳時のエラーの確認や実行時のデパックは、変
換後の原始プログラム(4)で行わなければならないと
いう問題点があった。[Problem to be solved by the invention] In conventional language translation systems, checking for translation errors detected by the compiler (2) and depacking at runtime must be performed in the converted source program (4). There was a problem.
この発明は、上記のような問題点を解決するためになさ
れたもので、翻訳リストに原始プログラムを利用するた
め、利用者が変換後の原始プログラムを意識することな
く、翻訳時のエラーの確認や実行時のデパックを原始プ
ログラムだけで行える言語翻訳システムを得ることを目
的とする。This invention was made to solve the above-mentioned problems.Since the source program is used in the translation list, the user can check for errors during translation without being aware of the converted source program. The objective is to obtain a language translation system that can perform depacking at runtime using only source programs.
[課題を解決するための手段]
この発明に係る言語翻訳システムは、原始プログラムお
よびプリプロセッサによる変換後の原始プログラムが入
力されると、これらを翻訳処理して前記原始プログラム
ないし原始プログラムfFl報を翻訳リストとして出力
するコンパイラを設けたものである。[Means for Solving the Problems] When a source program and a source program converted by a preprocessor are input, the language translation system according to the present invention translates the source program or the source program fFl information by translating these. It has a compiler that outputs it as a list.
[作 用]
この発明において、コンパイラは、原始プログラムを翻
訳リストに出力する。[Operation] In this invention, the compiler outputs the source program to a translation list.
[実施例]
以下、この発明の一実施例を図について説明する。第1
図はこの発明に係る言語翻訳システムの一実施例を示す
処理図であり、(1)、(3)〜(7)は第2図に示し
たものと同じである。(2^)はこの発明で使用される
コンパイラであり、原始プログラム〈3)および変換後
の原始プログラム(4)が入力されると、これらを翻訳
処理して目的モジュール(6)と翻訳ヘリスト(7)を
出力する。なお、コンパイラ(2^)が情報時のエラー
を検知したときに翻訳リスト(7〉に表示する行番号や
目的モジュール(6)に出力する行番号情報は、変換後
の原始プログラム(4)が持つ原始プログラム(3〉の
対応行の行番号を使用する6また、翻訳リス1−(7)
としては原始プログラム(3)を使用する。[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
The figure is a process diagram showing one embodiment of the language translation system according to the present invention, and (1), (3) to (7) are the same as those shown in FIG. 2. (2^) is a compiler used in this invention. When the source program (3) and the converted source program (4) are input, they are translated and converted into the target module (6) and the translated list (2). 7) is output. Note that the line number displayed in the translation list (7>) and the line number information output to the target module (6) when the compiler (2^) detects an error in information are the same as the source program (4) after conversion. Using the line numbers of the corresponding lines in the source program (3) with 6. Also, the translation list 1-(7)
For this, use the source program (3).
なお、上記実施例ではコンパイラ(2^)が原始プログ
ラム(3)を翻訳リスト(ア)として使用したがプリプ
ロセッサ(1〉が前屈訳リス1−(5)と同等の原始プ
ログラム情報を出力し、コンパイラ(2^)が原始プロ
グラム情報を翻訳リストとして使用してもよい。In the above embodiment, the compiler (2^) uses the source program (3) as the translation list (A), but the preprocessor (1>) outputs source program information equivalent to the forward translation list 1-(5). The compiler (2^) may use the source program information as a translation list.
[発明の効果]
以上、詳述したように、この発明以、原始プログラムお
よびプリプロセッサによる変ta f&の原始プログラ
ムが入力されると、これらを翻訳処理して前記原始プロ
グラムないし原始プログラム↑n報を翻訳リストとして
出力するコンパイラを設けたジュール内の行番号情報が
原始プログラムと対応付けられ、プログラムのデバッグ
を原始プログラムでのみ行うことができる。また、変換
後の原始プログラムに原始プログラムの行番号の情報を
付加するだけで実現できるため、言語翻訳システムが安
価にできる。更に、翻訳リストに展開ソースが現われな
いので、操作性が良いという効果がある。[Effects of the Invention] As described in detail above, since the present invention, when a source program and a source program of modified ta f& by a preprocessor are input, these are translated and the source program or the source program ↑n information is processed. Line number information in a module equipped with a compiler that is output as a translation list is associated with the source program, making it possible to debug the program only with the source program. Furthermore, since this can be achieved by simply adding line number information of the source program to the converted source program, the language translation system can be made inexpensive. Furthermore, since the expansion source does not appear in the translation list, it has the effect of improving operability.
第1図はこの発明の一実施例を示す処理図、第2図およ
び第3図は従来の言語翻訳システムを示す処理図である
。
(1)はプリプロセッサ、(2^〉はコンパイラ、(3
)は原始プログラム、(4)は変換後の原始プログラム
、(6)は目的モジュール、(7)は翻訳リストである
。
なお、図中、同一符号は同一、又は相当部分を示す。
凭1図
罠2図
児3図FIG. 1 is a processing diagram showing an embodiment of the present invention, and FIGS. 2 and 3 are processing diagrams showing a conventional language translation system. (1) is the preprocessor, (2^> is the compiler, (3
) is the source program, (4) is the converted source program, (6) is the target module, and (7) is the translation list. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. 1 picture of a candle, 2 pictures of a trap, 3 pictures of a child
Claims (1)
理して前記原始プログラムの行番号情報を持つ、変換後
の原始プログラムを出力する前翻訳処理プログラム(以
下、プリプロセッサと云う。)と、このプリプロセッサ
によって起動され、前記原始プログラムおよび前記変換
後の原始プログラムが入力されると、これらを翻訳処理
して前記原始プログラムないし原始プログラム情報を翻
訳リストとして出力する言語翻訳処理プログラム(以下
、コンパイラと云う。)とを備えたことを特徴とする言
語翻訳システム。(1) A pre-translation processing program (hereinafter referred to as a preprocessor) that, when a source program is input, pre-translates it and outputs a converted source program having line number information of the source program; A language translation processing program (hereinafter referred to as a compiler) that is started by this preprocessor and, when the source program and the converted source program are input, translates them and outputs the source program or source program information as a translation list. A language translation system characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31764289A JPH03179529A (en) | 1989-12-08 | 1989-12-08 | Language translation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP31764289A JPH03179529A (en) | 1989-12-08 | 1989-12-08 | Language translation system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03179529A true JPH03179529A (en) | 1991-08-05 |
Family
ID=18090427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP31764289A Pending JPH03179529A (en) | 1989-12-08 | 1989-12-08 | Language translation system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03179529A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011113147A (en) * | 2009-11-24 | 2011-06-09 | Nomura Research Institute Ltd | Source analysis program, preprocessor, lexer and syntax tree analysis program |
-
1989
- 1989-12-08 JP JP31764289A patent/JPH03179529A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011113147A (en) * | 2009-11-24 | 2011-06-09 | Nomura Research Institute Ltd | Source analysis program, preprocessor, lexer and syntax tree analysis program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2666847B2 (en) | Heterogeneous language communication method | |
JPH04247536A (en) | Computer software compile system assisting discrimination of data type at time of execution of object | |
JPH03179529A (en) | Language translation system | |
JP3196675B2 (en) | Language processing method | |
JPS5922140A (en) | Interactive compiling system | |
JPH05134880A (en) | Digital computer | |
JPH04367946A (en) | Debug information output system | |
JP3014409B2 (en) | Natural language automatic translator | |
JPH03144832A (en) | Symbolic debugging device for precompiler language program | |
JPH10207738A (en) | Language processing system | |
JP2590083B2 (en) | Source program translation processing method | |
JP2502128B2 (en) | Compiler device | |
JPH04282725A (en) | Processing system relating to software developing environment | |
JPH06242986A (en) | Debugging system using external line number | |
JP2820937B2 (en) | Error occurrence line number search device in high-level languages | |
JPH05197538A (en) | Exception generation line number display system of precompiler system | |
JPH03235135A (en) | Automatic inspection system for program | |
JPH03138762A (en) | Machine translator | |
JPH0561991A (en) | Program language translating device | |
JPS63262726A (en) | Translation processing system for designated program | |
JPH04148336A (en) | Fortran program grammar analyzing system | |
JPH01158534A (en) | Generating system for source program | |
JPH0358136A (en) | Compiler operation system in machine different in character code system | |
JPH04101228A (en) | Language processor | |
JPH0337740A (en) | Program dynamic characteristic acquiring system |