JPH05257659A - Generation device for source program - Google Patents

Generation device for source program

Info

Publication number
JPH05257659A
JPH05257659A JP5216992A JP5216992A JPH05257659A JP H05257659 A JPH05257659 A JP H05257659A JP 5216992 A JP5216992 A JP 5216992A JP 5216992 A JP5216992 A JP 5216992A JP H05257659 A JPH05257659 A JP H05257659A
Authority
JP
Japan
Prior art keywords
source
command
information
program
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
JP5216992A
Other languages
Japanese (ja)
Inventor
Mitsunori Kato
三典 加藤
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP5216992A priority Critical patent/JPH05257659A/en
Publication of JPH05257659A publication Critical patent/JPH05257659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To obtain the generation device for the source program which is applicable to different kinds of program language by a common device and provides users with a standardized man-machine interface. CONSTITUTION:A source editing part 2 displays commands on a setting panel by referring to panel display information stored in a command data base storage part 1, sets parameters for the displayed commands, and defines source definition information according to the setting. A source generation part 3 generates the source program by referring to the source definition information and source file output information stored in the command data base storage part 1. The contents of the command data base storage part 1 are replaced according to the kind of the program language of the source program to be generated and used in common by the source editing part 2 and source generation part 4 to generate the source program.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、所定のプログラム言語
でソースプログラムを生成するソースプログラムの生成
装置に関するものであり、更に詳しくは、ソースプログ
ラムの生成装置の汎用化に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a source program generation device for generating a source program in a predetermined programming language, and more particularly to generalization of a source program generation device.

【0002】[0002]

【従来の技術】従来、ソースプログラムを生成する装置
は、プログラム言語の種類毎に多くのものが作られてい
る。しかし、いずれの装置も対象となる言語向けに特定
されたものであった。そのため、ある言語用の装置を他
の言語用としても利用することが困難であり、1つのシ
ステムで複数種類の言語を使う場合は、言語の種類数だ
けソースプログラムの生成装置を用意しなければならな
かった。また、言語の種類が異なると、同一の処理を行
う場合でも、言語の種類に応じてユーザが表示画面に対
して行う操作が異なる。このため、ユーザは操作におい
て不利不便をこうむっていた。
2. Description of the Related Art Conventionally, many devices for generating source programs are made for each type of programming language. However, both devices were specific to the target language. Therefore, it is difficult to use a device for one language also for another language. When using a plurality of types of languages in one system, it is necessary to prepare as many source program generation devices as the number of types of languages. did not become. Further, if the type of language is different, the operation performed by the user on the display screen differs depending on the type of language even if the same processing is performed. Therefore, the user is disadvantageous in the operation.

【0003】[0003]

【発明が解決しようとする課題】本発明は上述した問題
点を解決するためになされたものであり、異なる種類の
プログラム言語に対して共通の装置で対応することがで
き、しかもユーザに対して統一したマンマシンインタフ
ェイスを提供できるソースプログラムの生成装置を実現
することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and it is possible to deal with different kinds of programming languages with a common device, and to the user. It is an object of the present invention to realize a source program generation device capable of providing a unified man-machine interface.

【0004】[0004]

【課題を解決するための手段】本発明は、所定のプログ
ラム言語でソースプログラムを生成するソースプログラ
ムの生成装置において、生成するソースプログラムのプ
ログラム言語で用いるコマンド情報が登録され、このコ
マンド情報は、コマンドを画面にパネル表示するために
用いるパネル表示情報と、ソースプログラムに落とし込
む情報であるソースファイル出力情報からなり、プログ
ラム言語の種類に応じて内容が差し替えられるコマンド
データベース記憶部と、前記パネル表示情報を参照して
コマンドを設定パネルに表示し、表示したコマンドに対
して設定されたパラメータに基づいてソース定義情報を
定義するソース編集部と、このソース編集部で定義した
ソース定義情報を格納するソース定義情報メモリと、前
記コマンドデータベース記憶部に格納したソースファイ
ル出力情報と前記ソース定義情報メモリに格納したソー
ス定義情報を参照してソースプログラムを生成するソー
ス生成部と、このソース生成部により生成したソースプ
ログラムを格納するソースファイル部と、を具備したこ
とを特徴とするソースプログラムの生成装置である。
According to the present invention, in a source program generating device for generating a source program in a predetermined programming language, command information used in the programming language of the source program to be generated is registered. A command database storage unit that consists of panel display information used to display commands on the panel on the screen and source file output information that is information to drop into the source program, and whose contents can be replaced according to the type of programming language, and the panel display information. Refer to to display the command in the setting panel, and define the source definition information based on the parameters set for the displayed command, and the source that stores the source definition information defined in this source editing section. Definition information memory and the command data The source file output information stored in the source storage unit and the source definition information stored in the source definition information memory, and a source generation unit that generates a source program, and a source that stores the source program generated by the source generation unit. A source program generation device comprising a file section.

【0005】[0005]

【作用】このような本発明では、ソース編集部は、コマ
ンドデータベース記憶部に格納したパネル表示情報を参
照してコマンドを設定パネルに表示し、表示したコマン
ドに対してパラメータを設定し、この設定に基づいてソ
ース定義情報を定義する。ソース生成部は、このソース
定義情報と、コマンドデータベース記憶部に格納したソ
ースファイル出力情報を参照してソースプログラムを生
成する。生成するソースプログラムのプログラム言語の
種類に応じてコマンドデータベース記憶部の内容を差し
替え、ソース編集部とソース生成部は共通に用いてソー
スプログラムを生成する。
In the present invention as described above, the source editing unit refers to the panel display information stored in the command database storage unit to display the command on the setting panel, sets the parameter for the displayed command, and sets this parameter. Source definition information is defined based on. The source generation unit refers to the source definition information and the source file output information stored in the command database storage unit to generate a source program. The contents of the command database storage unit are replaced according to the type of programming language of the generated source program, and the source editing unit and the source generation unit use the same to generate the source program.

【0006】[0006]

【実施例】以下、図面を用いて本発明を説明する。図1
は本発明の一実施例を示した構成図である。図1におい
て、1は生成するソースプログラムの言語内に用意され
ている各関数すなわちコマンドの情報が関数毎に登録さ
れたコマンドデータベース記憶部である。登録された各
コマンド情報C1〜Cnは、パネル表示情報とソースファ
イル出力情報からなる。パネル表示情報は、コマンドを
画面にパネル表示するために用いる情報である。ソース
ファイル出力情報は、ソースプログラムに落とし込む情
報である。2はソース編集部であり、各コマンド情報に
あるパネル表示情報を参照して、画面に設定パネルを表
示する。設定パネルは、コマンドを表示した画面であ
る。設定パネルには、画面上でコマンドを選択するコマ
ンド選択パネルと、画面に表示したコマンドに対してf
ill in the blank方式により必要なパ
ラメータを設定するパラメータ設定パネルがある。21
及び22は表示したコマンド選択パネルとパラメータ設
定パネルに対して設定を行うコマンド選択パネル設定手
段及びパラメータ設定パネル設定手段である。3はソー
ス編集部2で設定パネルに対して設定を行ったことによ
り定義したソース定義情報を格納するソース定義情報メ
モリである。4はソースファイル出力情報とソース定義
情報を参照してソースプログラムを生成するソース生成
部、5は生成したソースプログラムを格納するソースフ
ァイル部である。ソースプログラムの言語の種類に応じ
て用意するコマンド情報が異なるため、コマンドデータ
ベース記憶部1は生成するプログラム言語の種類に応じ
て差し替えられる。コマンドデータベース記憶部1を差
し替えても、ソース編集部2、ソース定義情報メモリ3
及びソース生成部4は共用される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. Figure 1
FIG. 1 is a configuration diagram showing an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a command database storage unit in which information of each function prepared in the language of the generated source program, that is, command information is registered for each function. Each command information C 1 -C n registered consists panel display information and source files output information. The panel display information is information used to display the command on the screen as a panel. The source file output information is information to be included in the source program. Reference numeral 2 denotes a source editing unit, which refers to the panel display information in each command information and displays a setting panel on the screen. The setting panel is a screen that displays commands. The setting panel includes a command selection panel for selecting a command on the screen and f for the command displayed on the screen.
There is a parameter setting panel for setting necessary parameters by the ill in the blank method. 21
Reference numerals 22 and 22 denote command selection panel setting means and parameter setting panel setting means for setting the displayed command selection panel and parameter setting panel. Reference numeral 3 is a source definition information memory for storing the source definition information defined by setting the setting panel in the source editing unit 2. Reference numeral 4 is a source generation unit for generating a source program by referring to the source file output information and source definition information, and 5 is a source file unit for storing the generated source program. Since the prepared command information differs depending on the language type of the source program, the command database storage unit 1 can be replaced according to the type of program language to be generated. Even if the command database storage unit 1 is replaced, the source editing unit 2, the source definition information memory 3
The source generator 4 is shared.

【0007】このように構成した装置の動作を説明す
る。図1に示したソースプログラムの生成装置は計測シ
ステムで使われる複数種類のプログラム言語のソースプ
ログラムを生成するものである。この計測システムは、
実験と実験の制御を行うシステムのシミュレーション
と、実験により得られたデータを解析するシステムのシ
ミュレーションとをソフトウェアで構築している。そし
て、このような仮想の実験制御システムで使われるプロ
グラム言語と、仮想のデータ解析システムで使われるプ
ログラム言語とは異なる種類のものである。実験制御用
のプログラム言語及び解析用のプログラム言語は、とも
に様々な処理を行うコマンドが用意されていて、ユーザ
は設定パネル上で目的のコマンドを選択し、そのパラメ
ータを設定する形式で生成するプログラム言語について
ソース定義情報を定義する。コマンド情報の中でパネル
表示情報は、ソース編集部2が設定パネルを表示すると
きに参照する情報で、 コマンドのニーモック コマンドのヘルプ情報 コマンドのパラメータ情報 等があり、とは主にコマンド選択パネルを表示する
ときに参照し、はパラメータ設定パネルを表示すると
きに参照する。図2にコマンド選択パネルの一例を示
す。図2に示すようにコマンドのニーモックとコマンド
のヘルプ情報が対応して表示されている。この設定パネ
ルでは処理番号をカーソルで指示することによりコマン
ドが選択される。図3にパラメータ設定パネルの一例を
示す。この設定パネルでは設定欄に「1」,「5」,
「終了」等のパラメータをfill in thebl
ank方式で設定する。
The operation of the thus constructed apparatus will be described. The source program generation device shown in FIG. 1 generates source programs of a plurality of types of programming languages used in a measurement system. This measuring system
We are building software simulations of systems that perform experiments and control of experiments, and system simulations that analyze data obtained by experiments. The programming language used in such a virtual experimental control system is different from the programming language used in the virtual data analysis system. The programming language for experiment control and the programming language for analysis both have commands to perform various processes. The user selects a desired command on the setting panel and creates a program to set the parameters. Define source definition information for the language. In the command information, the panel display information is the information that the source editor 2 refers to when displaying the setting panel. There is command nemock command help information, command parameter information, and so on. Refer to when displaying, and refer to when displaying parameter setting panel. FIG. 2 shows an example of the command selection panel. As shown in FIG. 2, command mnemonics and command help information are displayed in association with each other. In this setting panel, a command is selected by pointing a process number with a cursor. FIG. 3 shows an example of the parameter setting panel. In this setting panel, "1", "5",
Fill in the parameters such as "end"
Set by ank method.

【0008】ソース編集部2はユーザとのマンマシンイ
ンタフェイスを受け持つ部分であり、設定パネルに対し
てユーザが定義した内容に基づいてバイナリのソース定
義ファイルを出力し、ソース定義情報メモリ3に格納す
る。このファイルは、ユーザがどのコマンドを選択し、
それにどの様なパラメータを与えたかを示すソース定義
情報からなる。ソース生成部4は、ソース編集部2で生
成したソース定義情報と、コマンドデータベース記憶部
1に格納されているソースファイル出力情報とを参照し
てソースプログラムを生成する。ソースファイル出力情
報には、ソースプログラムに落とし込む際のコマンドの
ニーモックや、ユーザが表示パネル上で設定した値をど
のように変換してソースプログラムに与えるかを指示す
るパラメータ修飾情報等がある。
The source editing section 2 is a section for handling a man-machine interface with the user, outputs a binary source definition file to the setting panel based on the content defined by the user, and stores it in the source definition information memory 3. To do. This file contains the commands that the user selects
It consists of source definition information that shows what kind of parameter was given to it. The source generation unit 4 generates a source program by referring to the source definition information generated by the source editing unit 2 and the source file output information stored in the command database storage unit 1. The source file output information includes a mnemonic of a command when it is dropped into the source program, parameter modification information for instructing how to convert the value set by the user on the display panel and give the source program.

【0009】ここで、プログラム言語によらずマンマシ
ンインタフェイスを統一するための処理について説明す
る。図1の装置は、実験制御用のプログラム言語と解析
用のプログラム言語について共用されている。両言語の
間では、言語が異なるため、用意されているコマンドも
当然異なる。例えば、実験制御用のプログラム言語にお
ける文法では、コマンド呼び出しの記述は、 <コマンド名>(x,y) の形式になっているのに対し、解析用のプログラム言語
では、 <コマンド名>(pos=x,col=y) のように出力しなければならない場合がある。この場
合、どちらの言語でも設定パネル上では単に「x」,
「y」と入力できなければマンマシンインタフェイスが
統一されたとはいえない。すなわち、「pos」と「c
ol」は自動的に出力される必要がある。上記のような
言語による仕様の相違を吸収するために、コマンドデー
タベース記憶部1は、計測システムで用いるプログラム
言語ごとに内容が差し替えられてソースプログラムを生
成する。このようなデータベースを備えることにより、
データベースにそれぞれの言語のコマンド情報を登録
し、解析用のプログラム言語の場合はパラメータ修飾情
報に「pos」と「col」をセットし、実験制御用の
プログラム言語の場合はパラメータ修飾情報に何もセッ
トしないことによって両言語の相違を吸収する。
Now, a process for unifying the man-machine interfaces regardless of the programming language will be described. The apparatus shown in FIG. 1 is shared by a programming language for experiment control and a programming language for analysis. Since the languages are different between the two languages, the prepared commands are naturally different. For example, in the grammar of the programming language for experimental control, the command call description is in the form of <command name> (x, y), whereas in the programming language for analysis, <command name> (pos = X, col = y) in some cases. In this case, in either language, simply "x",
If you cannot enter “y”, it cannot be said that the man-machine interfaces have been unified. That is, "pos" and "c"
ol ”should be output automatically. In order to absorb the above-mentioned difference in specifications depending on the language, the command database storage unit 1 generates a source program with the contents replaced for each programming language used in the measurement system. By having such a database,
Register the command information of each language in the database, set "pos" and "col" in the parameter modification information in the case of the analysis programming language, and set nothing in the parameter modification information in the case of the experimental control programming language. Absence of the difference between both languages by not setting.

【0010】なお、コマンドデータベース記憶部1はプ
ログラム言語の種類に応じて差し替えられる構成に限る
ことなく、複数種類のプログラム言語で用いるコマンド
情報を登録したものであってもよい。
The command database storage unit 1 is not limited to a configuration in which the command database storage unit 1 can be replaced according to the type of programming language, and may be one in which command information used in a plurality of types of programming languages is registered.

【0011】[0011]

【発明の効果】本発明によれば、異なる種類のプログラ
ム言語に対して共通の装置を用いてソースプログラムを
生成できる。これにより、プログラム言語毎に装置を用
意する従来例に比較して開発工数や保守工数を1/(プ
ログラム言語の種類数)に低減できる。また、信頼性は
(プログラム言語の種類数)倍に向上することができ
る。さらに、プログラム言語の種類に応じてソースプロ
グラムの生成のしかたを変えているため、設定パネルに
対して行う操作はプログラム言語の種類によらず共通化
される。これによって、ユーザに対して統一したマンマ
シンインタフェイスを提供できる。
According to the present invention, it is possible to generate a source program using a common device for different types of programming languages. As a result, the development man-hours and maintenance man-hours can be reduced to 1 / (the number of kinds of programming languages) as compared with the conventional example in which a device is prepared for each programming language. In addition, the reliability can be doubled (the number of types of programming languages). Furthermore, since the method of generating the source program is changed according to the type of programming language, the operations performed on the setting panel are common regardless of the type of programming language. As a result, a unified man-machine interface can be provided to the user.

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

【図1】本発明の一実施例を示した構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】コマンド選択パネルの一例を示した図である。FIG. 2 is a diagram showing an example of a command selection panel.

【図3】パラメータ設定パネルの一例を示した図であ
る。
FIG. 3 is a diagram showing an example of a parameter setting panel.

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

1 コマンドデータベース記憶部 2 ソース編集部 3 ソース定義情報メモリ 4 ソース生成部 5 ソースファイル部 1 command database storage unit 2 source editing unit 3 source definition information memory 4 source generation unit 5 source file unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 所定のプログラム言語でソースプログラ
ムを生成するソースプログラムの生成装置において、 生成するソースプログラムのプログラム言語で用いるコ
マンド情報が登録され、このコマンド情報は、コマンド
を画面にパネル表示するために用いるパネル表示情報
と、ソースプログラムに落とし込む情報であるソースフ
ァイル出力情報からなり、プログラム言語の種類に応じ
て内容が差し替えられるコマンドデータベース記憶部
と、 前記パネル表示情報を参照してコマンドを設定パネルに
表示し、表示したコマンドに対して設定されたパラメー
タに基づいてソース定義情報を定義するソース編集部
と、 このソース編集部で定義したソース定義情報を格納する
ソース定義情報メモリと、 前記コマンドデータベース記憶部に格納したソースファ
イル出力情報と前記ソース定義情報メモリに格納したソ
ース定義情報を参照してソースプログラムを生成するソ
ース生成部と、 このソース生成部により生成したソースプログラムを格
納するソースファイル部と、を具備したことを特徴とす
るソースプログラムの生成装置。
1. A source program generation device for generating a source program in a predetermined programming language registers command information used in the programming language of the source program to be generated, and this command information is for displaying the command on a panel on a screen. The command database storage unit that consists of the panel display information used for, and the source file output information that is the information to drop into the source program, and whose contents are replaced according to the type of programming language; The source definition information displayed on the screen and defining the source definition information based on the parameters set for the displayed command, the source definition information memory storing the source definition information defined by the source editing section, and the command database Stored in storage A source generation unit that generates a source program by referring to the source file output information and the source definition information stored in the source definition information memory; and a source file unit that stores the source program generated by the source generation unit. A source program generation device characterized by:
JP5216992A 1992-03-11 1992-03-11 Generation device for source program Pending JPH05257659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5216992A JPH05257659A (en) 1992-03-11 1992-03-11 Generation device for source program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5216992A JPH05257659A (en) 1992-03-11 1992-03-11 Generation device for source program

Publications (1)

Publication Number Publication Date
JPH05257659A true JPH05257659A (en) 1993-10-08

Family

ID=12907327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5216992A Pending JPH05257659A (en) 1992-03-11 1992-03-11 Generation device for source program

Country Status (1)

Country Link
JP (1) JPH05257659A (en)

Similar Documents

Publication Publication Date Title
US5041967A (en) Methods and apparatus for dynamic menu generation in a menu driven computer system
US5917730A (en) Computer implemented object oriented visualization system and method
EP0597316A2 (en) Computer simulation system and method for specifying the behavior of graphical operator interfaces
US5974431A (en) Document composition system and method for composing a document by using vector data
JPH0458052B2 (en)
US7239316B1 (en) Method and apparatus for graphically manipulating data tables
US6070006A (en) Object oriented software development tool for creation of new class(es)
EP0621527A1 (en) Hierarchically grouped macroinstructions for a graphical user interface
JPH08329004A (en) Method for improving terminal operability of application program use
JPH05257659A (en) Generation device for source program
JP3463331B2 (en) Menu selection method
JPH06348499A (en) Object directional programming support device and its method
JP3254793B2 (en) Control method of interactive processing system
JPS60128530A (en) User menu display processing system
JP2500632B2 (en) Program pattern customization method
JPH0317741A (en) Program production support device
WO2003009169A2 (en) Control display unit page builder software tool
JPH04199226A (en) Selecting and actuating method for tool
JP2000172498A (en) Data output device
JPS62145422A (en) Automatically generating method for source program
JPH06242941A (en) Interactive processing system
JPH05313872A (en) Simple language programming system
JPH0527867B2 (en)
JPH01251216A (en) Menu display system
EP0738968A2 (en) User interface management system for geometric modeling software system