JPH03224035A - Data processor - Google Patents

Data processor

Info

Publication number
JPH03224035A
JPH03224035A JP2020075A JP2007590A JPH03224035A JP H03224035 A JPH03224035 A JP H03224035A JP 2020075 A JP2020075 A JP 2020075A JP 2007590 A JP2007590 A JP 2007590A JP H03224035 A JPH03224035 A JP H03224035A
Authority
JP
Japan
Prior art keywords
message
language
file
data
source program
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
JP2020075A
Other languages
Japanese (ja)
Inventor
Takeshi Tanaka
剛 田中
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2020075A priority Critical patent/JPH03224035A/en
Publication of JPH03224035A publication Critical patent/JPH03224035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、ソースプログラム・テキストファイルから
マシン語による実行形式ファイルを作成して稼動させる
データ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device that creates and operates an executable file in machine language from a source program text file.

〔従来の技術〕[Conventional technology]

一般に、開発したソースプログラム・テキストファイル
を上述のようなデータ処理装置上で稼動させる際に表示
される操作者へのガイダンスや警告等のメツセージは、
その装置を使用する操作者にとって得意な言語(国語)
で表示されれば操作性が良くなる。
In general, messages such as guidance and warnings displayed to the operator when running the developed source program/text file on the data processing device described above are as follows:
The language that the operator of the device is comfortable with (Japanese)
If it is displayed, operability will be improved.

従来、所望の言語によるメツセージを表示させるには、
所望の言語によるメツセージを含んだソースプログラム
・テキストファイルを開発するが。
Traditionally, to display a message in a desired language,
Develop a source program text file containing messages in the desired language.

またはソースプログラム・テキストファイルにはメツセ
ージを表示する位置にメツセージ番号を示すラベルのみ
を記述し、そのラベルに対応するメツセージは別のファ
イルに格納するような構造のプログラムにして、ソース
プログラム・テキストファイルと共に所望の言語のメツ
セージのファイルを一緒にコンパイル及びリンクして所
望の言語が表示される実行形式ファイルを作成していた
Alternatively, write only a label indicating the message number at the position where the message is displayed in the source program/text file, and create a program with a structure in which the message corresponding to that label is stored in a separate file. At the same time, message files in the desired language are compiled and linked together to create an executable file in which the desired language is displayed.

たとえば、第8図に示すようなソースプログラム(ある
状態が真になった時にメツセージ1を出力し、その後無
条件にメツセージ2を表示するプログラム)のテキスト
ファイルと、そのラベルrmsglJとrmsg2Jに
対応して日本語メツセージを格納した第9図に示すファ
イルを一緒にコンパイルすれば、日本語メツセージ「通
達1」と「通達2」を表示する実行形式ファイルが作成
され、第10図に示す英語メツセージを格納したファイ
ルと一緒にコンパイルすれば英語メツセージrmess
agel」とrmessage2」を表示する実行形式
ファイルが作成されて、それぞれ実行時に日本語あるい
は英語によるメツセージが表示される。
For example, the text file of the source program shown in Figure 8 (a program that outputs message 1 when a certain condition becomes true, and then displays message 2 unconditionally) and its labels rmsglJ and rmsg2J correspond to If the files shown in Figure 9 containing the Japanese messages are compiled together, an executable file that displays the Japanese messages "Notification 1" and "Notification 2" will be created, and the English message shown in Figure 10 will be created. If you compile it together with the stored file, you can create an English message rmess.
Executable files displaying ``Agel'' and ``Rmessage2'' are created, and when each is executed, a message in Japanese or English is displayed.

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

しかしながら、前者のようにメツセージを表示する言語
毎に異なるソースプログラム・テキストファイルを作成
するのでは、多国語対応のプログラム開発に大変手間が
かかつてしまうという問題があった。
However, if a different source program/text file is created for each language in which messages are to be displayed, as in the former case, there is a problem in that it takes a lot of time and effort to develop a multilingual program.

また、後者のようにラベルとそれに対応するメツセージ
のファイルを用いるようにすると、ソースプログラムの
開発中にその流れに沿って使用した各ラベルに対するメ
ツセージの内容を連想しなければならないが、例えば第
11図に示すようにメツセージの内容が複雑で長いもの
であったり。
In addition, if you use a file containing labels and corresponding messages as in the latter case, you will have to remember the contents of the messages for each label used during the development of the source program. As shown in the figure, the content of the message may be complex and long.

メツセージ数が多くなったりすると、開発者にとってそ
の把握が困難になり、作業負担が増大するという問題が
あった。
When the number of messages increases, it becomes difficult for developers to understand them, resulting in an increased workload.

この発明は上記の点に鑑みてなされたものであり、ソー
スプログラムの開発に対する負担を増加させることなく
、そのソースプログラムをデータ処理装置でコンパイル
して実行させた時に表示されるメツセージの言語を容易
に変えることができるようにすることを目的とする。
This invention has been made in view of the above points, and it is possible to easily change the language of messages displayed when a source program is compiled and executed on a data processing device, without increasing the burden on the development of the source program. The purpose is to make it possible to change to

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

この発明は上記の目的を達成するため、第1図の機能ブ
ロック図に示すように、プログラム実行時に出力するガ
イダンスや警告等のメツセージを有するソースプログラ
ム・テキストファイルAをコンパイルしてマシン語の実
行形式ファイルBを記憶装置上に作成するコンパイル手
段Cを備えたデータ処理装置において、ソースプログラ
ム・テキストファイルA中の各メツセージに対してそれ
ぞれ同一の意味で言語が異なる複数のメツセージを格納
した言語変換用テーブルデータファイルDを有し、メツ
セージの言語を指定する言語指定手段Eと、ソースプロ
グラム・テキストファイルAからメツセージを判別する
メツセージ判別手段Fと、その手段Fによって判別した
各メツセージを、言語変換用テーブルデータファイルD
を用いてそれぞれ言語指定手段Eによって指定された言
語のメツセージに変換するメツセージ変換手段Gとを設
け、コンパイル手段Cによって上記の指定された言語の
メツセージを有する実行形式ファイルBを作成するよう
にしたものである。
In order to achieve the above object, as shown in the functional block diagram of FIG. In a data processing device equipped with a compiling means C that creates a format file B on a storage device, language conversion is performed in which a plurality of messages with the same meaning but in different languages are stored for each message in a source program text file A. language specifying means E for specifying the language of the message; message discriminating means F for discriminating messages from the source program text file A; and language conversion for each message discriminated by the means F. table data file D
and a message converting means G for converting the message into a message in the language specified by the language specifying means E, respectively, using the above, and the compiling means C creates an executable file B having the message in the specified language. It is something.

〔作 用〕[For production]

この発明によるデータ処理装置は、言語指定手段Eによ
ってメツセージの言語を指定すると、メツセージ判別手
段Fがソースプログラム・テキストファイルAのガイダ
ンスや警告等のメツセージを判別し、メツセージ変換手
段Gが各メツセージに対してそれぞれ同一の意味で言語
が異なる複数のメツセージを格納した言語変換用テーブ
ルデータファイルDを用いて判別されたメツセージを指
定された言語のメツセージに変換し、コンパイル手段C
によって指定された言語のメツセージに変換した実行形
式ファイルBを記憶装置上に作成する。
In the data processing device according to the present invention, when the language specifying means E specifies the language of the message, the message determining means F determines messages such as guidance and warnings in the source program/text file A, and the message converting means G converts each message into Compiling means C converts the identified message into a message in the specified language using a language conversion table data file D storing a plurality of messages with the same meaning but in different languages.
An executable file B converted into a message in the language specified by is created on the storage device.

したがって、言語毎にソースプログラム・テキストファ
イルを作成したり、ソースプログラム・テキストファイ
ルの作成時に各ラベルと表示するメツセージとの関係を
連想する必要がなくなる。
Therefore, there is no need to create a source program/text file for each language or to associate the relationship between each label and the message to be displayed when creating the source program/text file.

〔実施例〕〔Example〕

以下、この発明の実施例を第2図以降に基づいて具体的
に説明する。
Hereinafter, embodiments of the present invention will be described in detail based on FIG. 2 and subsequent figures.

第2図は、この発明によるデータ処理装置の構成の一例
を示すブロック図である。
FIG. 2 is a block diagram showing an example of the configuration of a data processing device according to the present invention.

このデータ処理装置は、入力装置1.入力制御部2.主
制御部3.記憶装置4.メツセージ判別部5.メツセー
ジ変換用テーブル制御部6.メツセージ探索部7.コン
パイラ82表示制御部9゜及び表示装置10からなる。
This data processing device includes an input device 1. Input control section 2. Main control unit 3. Storage device 4. Message discriminator 5. Message conversion table control unit 6. Message search section 7. It consists of a compiler 82, a display control section 9°, and a display device 10.

入力袋W1は、キーボードやマウス等であり、メツセー
ジ変換機能の指示9表示されるメツセージの言語指定等
を司る。
The input field W1 is a keyboard, a mouse, or the like, and is responsible for specifying the language of the message to be displayed in the message conversion function instruction 9.

入力制御部2は、入力装置1で入力された各種の指示を
主制御部3へ送る。
The input control section 2 sends various instructions input through the input device 1 to the main control section 3.

主制御部3等の各部は、CPU、ROM、及びRAM等
からなるマイクロコンピュータで実現され、主制御部3
はこのデータ処理装置全体の制御を司ると共に、入力制
御部2から送られたメツセージの変換の指示により記憶
装置4からソースプログラム・テキストファイル及び言
語変換用テーブルデータファイル(言語変換用データベ
ースファイルとも称する)を読み出して、前者をメツセ
ージ判別部5へ後者をメツセージ変換用テーブル制御部
6へそれぞれ送る処理、メツセージ判別部5から送られ
るメツセージをメツセージ変換用テーブル制御部6へ、
メツセージ以外のデータをコンパイラ8へそれぞれ送る
処理、メツセージ変換用テーブル制御部6から送られる
メツセージをコンパイラ8へ送る処理、及びコンパイラ
8から送られるマシン語による実行形式ファイルを格納
して各種の処理を実行したり、その処理の際の表示デー
タを表示制御部9へ送る処理等を行なう。
Each part such as the main control unit 3 is realized by a microcomputer consisting of a CPU, ROM, RAM, etc.
is in charge of controlling the entire data processing device, and also converts the source program text file and language conversion table data file (also referred to as language conversion database file) from the storage device 4 according to instructions for converting messages sent from the input control unit 2. ) and send the former to the message discrimination section 5 and the latter to the message conversion table control section 6, the message sent from the message discrimination section 5 to the message conversion table control section 6,
Processing for sending data other than messages to the compiler 8, processing for sending messages sent from the message conversion table control unit 6 to the compiler 8, and storing executable format files in machine language sent from the compiler 8 to perform various processing. It performs processing such as executing the processing and sending display data for the processing to the display control unit 9.

記憶装置4は、ハードディスク装置やフロッピディスク
装置等であり、ソースプログラム・テキストファイル及
び言語変換用テーブルデータファイルを記憶する。
The storage device 4 is a hard disk device, a floppy disk device, or the like, and stores source program text files and language conversion table data files.

メツセージ判別部5は、主制御部3から送られるソース
プログラム・テキストファイルのメツセージとメツセー
ジ以外のデータを判別して主制御部3へ送る。
The message discriminating section 5 discriminates between messages and data other than messages in the source program text file sent from the main control section 3 and sends them to the main control section 3.

メツセージ変換用テーブル制御部6は、主制御部3から
送られるデータベース・テキストファイルのメツセージ
と共に言語変換用テーブルデータファイルの各メツセー
ジを順次同じ言語のものをメツセージ探索部7へ送る処
理と、メツセージ探索部7で同一のものと判断されたメ
ツセージを指定された言語に変換して主制御部3へ送る
処理を行なう。
The message conversion table control unit 6 performs processing to sequentially send each message in the language conversion table data file together with the message in the database text file sent from the main control unit 3 to the message search unit 7 in the same language, and message search. Messages determined to be the same in section 7 are converted into a designated language and sent to main control section 3.

メツセージ探索部7は、メツセージ変換用テーブル制御
部6から送られるメツセージが同一か否かを判断してそ
の結果をメツセージ変換用テーブル制御部6へ送る。
The message search section 7 determines whether the messages sent from the message conversion table control section 6 are the same, and sends the result to the message conversion table control section 6.

コンパイラ8は、主制御部3から送られるメツセージと
メツセージ以外のデータをコンパイルして主制御部3へ
送る。なお、コンパイルとはプログラミング言語で記述
されているソースプログラム・テキストファイルをある
特定の構文解析ルールによって解析し、ターゲットとす
るCPUで実行できるマシンコード列に変換する処理で
ある。
The compiler 8 compiles the message sent from the main control section 3 and data other than the message, and sends it to the main control section 3. Note that compiling is a process of analyzing a source program text file written in a programming language using a certain syntax analysis rule and converting it into a machine code string that can be executed by a target CPU.

表示制御部9は、主制御部3から送られる表示データを
表示装置10へ送ると共にその制御を司る。
The display control section 9 sends the display data sent from the main control section 3 to the display device 10 and also controls the same.

表示装置10は、CRTやLCD等であり、ソースプロ
グラム・テキストファイルのメツセージの言語を変換指
示をする際の作業画面や、メツセージの言語を変換した
後にコンパイルされて実行される機能の作業画面等を表
示する。
The display device 10 is a CRT, LCD, etc., and displays a work screen when instructing to convert the language of a message in a source program or text file, a work screen for a function that is compiled and executed after converting the message language, etc. Display.

すなわち、この第2図における入力装置1.メツセージ
変換用テーブル制御部6及びメツセージ探索部7.コン
パイラ8が、それぞれ第1図の言語指定手段E、メツセ
ージ変換手段G、及びコンパイル手段Cに相当する。
That is, the input device 1 in FIG. Message conversion table control section 6 and message search section 7. The compiler 8 corresponds to the language specifying means E, message converting means G, and compiling means C in FIG. 1, respectively.

第3図は、言語変換用データベースファイルに記憶した
データ内容の一例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example of data contents stored in the language conversion database file.

このファイルは、先頭のルコードがサポート言語(国語
)数Nの記憶領域、次のルコードとNレコードがそれぞ
れメツセージ数Mの記憶領域とサポート言語(国語)リ
ストの領域、そして残りがメツセージ記憶領域に分かれ
ている。
In this file, the first code is the storage area for the number of supported languages (Japanese) (N), the next code and N records are the storage area for the number of messages (M) and the area for the list of supported languages (Japanese), and the rest is the message storage area. I know.

サポート言語リストの領域には、例えば日本語。In the supported language list area, for example Japanese.

英語、中国語、・・・・・・のようにメツセージの言語
名が記憶されている。
The language name of the message is stored, such as English, Chinese, etc.

メツセージ記憶領域は、更にメツセージエントリと称す
る各メツセージ毎の領域に分かれていて、第1メツセー
ジエントリには該当するメツセージが無い場合の表示デ
ータをサポート言語毎に日本語なら「該当メツセージな
し」、英語なら「NOMESSAGEJ 、・・・・・
・のように記憶し、第2〜第N+1メツセージエントリ
に各メツセージを例えば、第2メツセージエントリには
メツセージ「通達IJ 、rmessagelJ 、−
のようにそれぞれ記憶する。
The message storage area is further divided into areas for each message called message entries, and the first message entry displays data for each supported language when there is no corresponding message. Then "NOMESSAGEJ..."
For example, in the second message entry, the message "Notification IJ, rmessagelJ, -" is stored as follows.
Memorize each as follows.

次に、第4図のフローチャートによって主制御部3の処
理について詳述する。
Next, the processing of the main control section 3 will be described in detail with reference to the flowchart shown in FIG.

ステップ1は記憶装置4からソースプログラム・テキス
トファイルを読み出してメツセージ判別部5へ送り、ス
テップ2は同じく記憶装置4から言語変換用テーブルデ
ータファイルを読み出してメツセージ変換用テーブル制
御部6へ送る。
Step 1 reads the source program text file from the storage device 4 and sends it to the message discriminator 5, and step 2 reads the language conversion table data file from the storage device 4 and sends it to the message conversion table control section 6.

ステップ3は入力制御部2からソースプログラム・テキ
ストファイルのメツセージの言語と変換する言語の指定
を受は取り、ステップ4はその指示をメツセージ変換用
テーブル制御部6へ送る。
Step 3 receives from the input control section 2 the language of the message of the source program/text file and the designation of the language to be converted, and step 4 sends the instruction to the message conversion table control section 6.

ステップ5でメツセージ変換用テーブル制御部6から言
語変換用テーブルデータファイルに指定されたメツセー
ジの言語が格納されているか否かの判断結果を受は取り
、YESならステップ6へNOならステップ11へそれ
ぞれ進む。
In step 5, the receiver receives the judgment result from the message conversion table control unit 6 as to whether or not the language of the message specified in the language conversion table data file is stored. move on.

ステップ6はメツセージ判別部5によって判別されて送
られるソースプログラム・テキストファイルのメツセー
ジとメツセージ以外のデータを受は取り、ステップ7で
そのデータがソースプログラム・テキストファイルのデ
ータ終了を示すエンド・オブ・データ (E、○、D、
)なら処理を終了し、NOならステップ8へ進む。
Step 6 receives and receives the message of the source program text file and data other than the message that are determined and sent by the message discriminator 5, and in step 7 the data is determined as the end of the source program text file indicating the end of the data. Data (E, ○, D,
), the process ends; if NO, proceed to step 8.

ステップ8でメツセージのデータならステップ9へ進み
、メツセージ以外のデータならステップ10へ進む。
In step 8, if the data is a message, the process proceeds to step 9, and if the data is other than a message, the process proceeds to step 10.

ステップ9はメツセージのデータをメツセージ変換用テ
ーブル制御部6へ送って、メツセージ変換用テーブル制
御部6から送られる言語が変換されたメツセージを受は
取り、ステップ10はステップ8又はステップ9で受は
取ったメツセージ以外のデータと言語を変換されたメツ
セージをコンパイラ8へ送ってステップ6の処理へ戻る
Step 9 sends the message data to the message conversion table control section 6, and receives the message whose language has been converted from the message conversion table control section 6. Step 10 receives the message in step 8 or 9. The data other than the captured message and the message whose language has been converted are sent to the compiler 8, and the process returns to step 6.

そして、ステップ7でエンド・オブ・データかステップ
11で指定された言語が登録されていないことを示すエ
ラー表示を指示したら全ての処理を終了する。
Then, in step 7, if the end of data or step 11 indicates an error display indicating that the specified language is not registered, all processing ends.

次に、第5図のフローチャートによってメツセージ判別
部5の処理について詳述する。
Next, the processing of the message discriminator 5 will be described in detail with reference to the flowchart shown in FIG.

ステップ20は主制御部3からソースプログラム・テキ
ストファイルを受は取り、ステップ21はそのソースプ
ログラム・テキストファイルの先頭から順にデータの判
別を開始する。
Step 20 receives and receives a source program/text file from the main control unit 3, and step 21 starts determining data in order from the beginning of the source program/text file.

ステップ22で判別したデータがエンド・オブ・データ
ならステップ26へ進むが、それ以外のデータならステ
ップ23へ進んで更にデータがメツセージならステップ
24へ進み、メツセージ以外のデータならステップ25
へ進む。
If the data determined in step 22 is the end of data, proceed to step 26, otherwise proceed to step 23, and if the data is a message, proceed to step 24, and if the data is other than a message, proceed to step 25.
Proceed to.

ステップ24でメツセージをその判別結果と共に主制御
部3へ送り、又はステップ25でメツセージ以外のデー
タを通常データとしてその判別結果と共に主制御部3へ
送ったらステップ21の処理へ戻る。
In step 24, the message is sent to the main control unit 3 together with the determination result, or in step 25, data other than the message is sent as normal data to the main control unit 3 together with the determination result, and then the process returns to step 21.

そして、ステップ26で主制御部3ヘエンド・オブ・デ
ータの指示を送ると全ての処理を終了する。
Then, in step 26, an end-of-data instruction is sent to the main control unit 3, and all processing ends.

次に、第6図のフローチャートによってメツセージ変換
用テーブル制御部6の処理について詳述する。
Next, the processing of the message conversion table control section 6 will be described in detail with reference to the flowchart of FIG.

ステップ3oは主制御部3から言語変換用テーブルデー
タファイルを受は取り、ステップ31は言語変換用テー
ブルデータファイルのヘッダ部からサポート言語数Nと
このファイルに登録されているメツセージ数Mとサポー
ト言語を読み出す。
Step 3o receives the table data file for language conversion from the main control unit 3, and step 31 reads the number of supported languages N, the number of messages registered in this file M, and the supported languages from the header part of the table data file for language conversion. Read out.

ステップ32で主制御部3からソースプログラム・テキ
ストファイルのメツセージの言語と変換する指定言語を
受は取ったら、ステップ33で指定された言語が言語変
換用テーブルデータファイルに登録されているか否かを
判断し、登録されているならステップ34へ、登録され
ていなければステップ40へそれぞれ進む。
After receiving the message language of the source program/text file and the specified language to be converted from the main control unit 3 in step 32, in step 33 it is determined whether the specified language is registered in the language conversion table data file. If it is registered, the process goes to step 34, and if it is not registered, the process goes to step 40.

ステップ34は主制御部3からメツセージを受は取り、
ステップ35で言語変換用テーブルデータファイルの第
1メツセージエントリから順に指定された言語のメツセ
ージを読み出し、ステップ34で受は取ったメツセージ
と共にメツセージ探索部7へ送ると、ステップ36で言
語変換用テーブルデータファイルのデータが終了したか
否かを判断し、終了ならステップ39へ進むが、Noな
らステップ37へ進む。
Step 34 receives and receives messages from the main control unit 3;
In step 35, the message in the specified language is read in order from the first message entry of the language conversion table data file, and in step 34, the receiver sends the received message to the message search unit 7, and in step 36, the language conversion table data is read out. It is determined whether the data in the file has ended or not, and if the data has ended, the process proceeds to step 39, but if No, the process proceeds to step 37.

ステップ37でソースプログラム・テキストファイルの
メツセージと言語変換用テーブルデータファイルから読
み出したメツセージデータが同一か否かを判断し、同一
ならステップ38へ進み、異なるならステップ35の処
理へ戻って次のメツセージエントリを調べる。
In step 37, it is determined whether the message in the source program text file and the message data read from the language conversion table data file are the same. If they are the same, the process proceeds to step 38; if they are different, the process returns to step 35 and the next message is sent. Examine the entry.

ステップ38で主制御部3へ変換したメツセージデータ
を送るか、ステップ39で主制御部3へ指定されたメツ
セージと同一のメツセージが不在であることを示すデー
タを送ると全ての処理を終了する。
In step 38, the converted message data is sent to the main control section 3, or in step 39, data indicating that the same message as the specified message is absent is sent to the main control section 3, and all processing ends.

また、ステップ40で主制御部3へ指定された言語が登
録されていないことを示すエラー通知のデータを送ると
全ての処理を終了する。
Further, in step 40, when error notification data indicating that the designated language is not registered is sent to the main control unit 3, all processing ends.

こうして、例えば第7図に示すような日本語メツセージ
「通達1」と「通達2」が表示されるようなソースプロ
グラム・テキストファイルを開発した後に、上述のメツ
セージの言語を変換する機能を指示すると、始めにメツ
セージ以外のデータ5ubroutin () ( i  f     t  rue hen print  (” が主制御部3を介してコンパイラ8へ送られる。
In this way, for example, after developing a source program text file that displays the Japanese messages "Notification 1" and "Notification 2" as shown in Figure 7, if you instruct the function to convert the message language mentioned above. , first, data other than the message 5ubroutin() (if true hen print('') is sent to the compiler 8 via the main control unit 3.

次に、メツセージ判別部5でメツセージとして判別され
た「通達1」がメツセージ変換用テーブル制御部6及び
メツセージ探索部7へ送られて、第3図に示す言語変換
用テーブルデータファイルから「通達1」が格納されて
いるメツセージエントリを探索する。
Next, "Notice 1", which has been determined as a message by the message discriminating section 5, is sent to the message conversion table control section 6 and the message search section 7, and the "Notice 1" is extracted from the language conversion table data file shown in FIG. ” is stored.

すると、第2メツセージエントリに格納されているから
、その内の指定された言語の英語メツセージrmess
agelJを主制御部3へ送る。
Then, since it is stored in the second message entry, the English message rmessage in the specified language will be displayed.
AgelJ is sent to the main control unit 3.

同様にして、通常のデータである °); と print  (” と ゛); と ) はそのままコンパイラ8へ、日本語メツセージの「通達
2」は英語メツセージrmessage2」に変換後コ
ンパイラ8へ送られる。
Similarly, the normal data °); and print ('' and ゛); and) are sent to the compiler 8 as they are, and the Japanese message ``Notification 2'' is converted into the English message ``rmessage2'' and sent to the compiler 8.

そして、コンパイラ8でマシン語に変換されて英語メツ
セージの実行形式ファイルとして主制御部3へ返送され
る。
The message is then converted into machine language by the compiler 8 and sent back to the main control unit 3 as an executable file of the English message.

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

以上説明してきたように、この発明によるデータ処理装
置は、開発したソースプログラム・テキストファイルの
メツセージの言語を指定した言語のものに自動的に変換
できるので、必要とする各言語毎にソースプログラム・
テキストファイルを作成したり、ソースプログラム開発
時に各ラベルと表示するメツセージとの対応関係を連想
する必要がなくなり、開発者の負担を増すことなく使用
時に表示されるメツセージの言語を容易に変えることが
できる。
As explained above, the data processing device according to the present invention can automatically convert the language of the message of the developed source program/text file into the specified language.
It is no longer necessary to create a text file or to associate the correspondence between each label and the message to be displayed when developing a source program, and the language of the message displayed during use can be easily changed without increasing the burden on the developer. can.

したがって、ソースプログラムの開発者は、表示のため
のメツセージを得意とする言語によって作成すればよい
ので開発効率が向上し、輸出用あるいは多民族国での使
用に適したデータ処理装置を容易に提供できる。
Therefore, source program developers can create messages for display in their preferred language, improving development efficiency and easily providing data processing devices suitable for export or use in multi-ethnic countries. can.

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

第1図はこの発明によるデータ処理装置の機能ブロック
図、 第2図は第1図の一実施例であるデータ処理装置の構成
を示すブロック図、 第3図は言語変換用データベースファイルに記憶したデ
ータ内容の一例を示す説明図、 第4図は第2図の主制御部3の処理を示すフロー図、 第5図は同じく第2図のメツセージ判別部5の処理を示
すフロー図、 第6図は同じく第2図のメツセージ変換用テーブル制御
部6の処理を示すフロー図、 第7図はメツセージ言語を変換する機能を説明するため
のソースプログラム・テキストファイルの一例を示す図
、 第8図乃至第11図は従来のメツセージの言語を変換す
る方法を説明するためのソースプログラム・テキストフ
ァイル及びメツセージデータファイルの一例図である。 1・・・入力装置      2・・・入力制御部3・
・・主制御部      4・・・記憶装置5・・・メ
ツセージ判別部
Fig. 1 is a functional block diagram of a data processing device according to the present invention, Fig. 2 is a block diagram showing the configuration of a data processing device which is an embodiment of Fig. 1, and Fig. 3 is a block diagram showing the configuration of a data processing device according to an embodiment of the present invention. An explanatory diagram showing an example of data contents; FIG. 4 is a flowchart showing the processing of the main control unit 3 of FIG. 2; FIG. 5 is a flowchart showing the processing of the message discriminating unit 5 of FIG. 2; Figure 7 is a flowchart showing the processing of the message conversion table control unit 6 shown in Figure 2; Figure 7 is a diagram showing an example of a source program text file for explaining the message language conversion function; Figure 8. FIGS. 11 to 11 are diagrams showing examples of a source program text file and a message data file for explaining a conventional method of converting the language of a message. 1... Input device 2... Input control section 3.
...Main control section 4...Storage device 5...Message discrimination section

Claims (1)

【特許請求の範囲】 1 プログラム実行時に出力するガイダンスや警告等の
メッセージを有するソースプログラム・テキストファイ
ルをコンパイルしてマシン語の実行形式ファイルを記憶
装置上に作成するコンパイル手段を備えたデータ処理装
置において、 前記ソースプログラム・テキストファイル中の各メッセ
ージに対してそれぞれ同一の意味で言語が異なる複数の
メッセージを格納した言語変換用テーブルデータファイ
ルを有し、メッセージの言語を指定する言語指定手段と
、前記ソースプログラム・テキストファイルからメッセ
ージを判別するメッセージ判別手段と、該メッセージ判
別手段によつて判別した各メッセージを、前記言語変換
用テーブルデータファイルを用いてそれぞれ前記言語指
定手段によつて指定された言語のメッセージに変換する
メッセージ変換手段とを設け、 前記コンパイル手段によつて前記指定された言語のメッ
セージを有する実行形式ファイルを作成するようにした
ことを特徴とするデータ処理装置。
[Claims] 1. A data processing device that compiles a source program text file containing messages such as guidance and warnings output during program execution to create a machine language executable file on a storage device. a language specifying means for specifying the language of the message, the language conversion table data file having a language conversion table data file storing a plurality of messages having the same meaning but in different languages for each message in the source program text file; Message discriminating means for discriminating messages from the source program text file, and each message discriminated by the message discriminating means being specified by the language specifying means using the language conversion table data file. 2. A data processing apparatus, further comprising: message conversion means for converting a message into a message in a language, and the compiling means creates an executable file having a message in the specified language.
JP2020075A 1990-01-30 1990-01-30 Data processor Pending JPH03224035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020075A JPH03224035A (en) 1990-01-30 1990-01-30 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020075A JPH03224035A (en) 1990-01-30 1990-01-30 Data processor

Publications (1)

Publication Number Publication Date
JPH03224035A true JPH03224035A (en) 1991-10-03

Family

ID=12016980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020075A Pending JPH03224035A (en) 1990-01-30 1990-01-30 Data processor

Country Status (1)

Country Link
JP (1) JPH03224035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015194862A (en) * 2014-03-31 2015-11-05 富士通株式会社 Compiler, compilation method, and compilation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015194862A (en) * 2014-03-31 2015-11-05 富士通株式会社 Compiler, compilation method, and compilation device

Similar Documents

Publication Publication Date Title
US5513308A (en) Device and method for determining a series of operations for interactive assistance
US6799718B2 (en) Development assistance for mixed-language sources
US20040153995A1 (en) Software development tool
JPH1083289A (en) Programming aid
KR20030050621A (en) Method and apparatus for wrapping existing procedure oriented program into component based system
JPH10283221A (en) Method, apparatus and computer program product for linking stack messages to relevant information
EP0661650B1 (en) Document editing apparatus
JPH03224035A (en) Data processor
JPH09237181A (en) Application development apparatus and application development method
JP2000020296A (en) Program change support device
JP2000137600A (en) Method and apparatus for creating client / server application and information recording medium
JP3731628B2 (en) CGI program creation method
JPH0744343A (en) Operation support information automatic generation device
JPH09101880A (en) Program analyzer
JP4590907B2 (en) Software development support device and software development support program
JP2626174B2 (en) Translation support device
JP2007226685A (en) Application maintenance support device, application generation device, application maintenance support method, and computer program
JPH10269066A (en) Automatic shell creation device in Japanese
JPH05298082A (en) Method and device for editing program
JPH06324853A (en) Source program editor setting object oriented programming language as target
JP2909185B2 (en) Assembler processing method
JP2946509B2 (en) Control method of interactive manual
JPH05324289A (en) Program design document automatic creation device
JPH06161723A (en) Program development language editing device
JPH05341983A (en) Information processing system