JPH0258126A - Program design cad device - Google Patents

Program design cad device

Info

Publication number
JPH0258126A
JPH0258126A JP63210207A JP21020788A JPH0258126A JP H0258126 A JPH0258126 A JP H0258126A JP 63210207 A JP63210207 A JP 63210207A JP 21020788 A JP21020788 A JP 21020788A JP H0258126 A JPH0258126 A JP H0258126A
Authority
JP
Japan
Prior art keywords
file
source
program
conversion
program design
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
JP63210207A
Other languages
Japanese (ja)
Inventor
Tsuguyoshi Hayashi
林 紹佳
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63210207A priority Critical patent/JPH0258126A/en
Publication of JPH0258126A publication Critical patent/JPH0258126A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To easily alter a conversion algorithm by making independent a converting rule when a source graphic is converted into a source program from a inference mechanism as a file, and altering the converting rule file. CONSTITUTION:The conversion algorithm consisting of a converting rule file 10 and a inference function file 11 to interpret and infer the converting rule file 10 is provided. By adding and altering the converting rule file 10, the addition and alteration of the graphic and words are executed. Thus, only by having the simple knowledge of the program, the standard graphic and words can be added and altered by a CAD user, and the conversion algorithm can be easily altered.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラム設計を行なう際用いられるプログ
ラム設計CAD装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program design CAD device used when designing a program.

〔従来の技術〕[Conventional technology]

第5図は従来のプログラム設計CAD装置を示すブロッ
ク図である。図において、1はマイクロプロセッサ(C
PU)1m、主記録部1bからなるマイクロコンピュー
タ、2はソース図形データ入力装置、3はデータ表示装
置である。また、4はCAD入力・CADデータベース
ファイルを格納する補助記憶装置(以下、データベース
ファイルという)、5はCAD入力時に用いる標準図形
・字句等のライブラリファイルを格納する補助記憶装置
(以下、ライブラリファイルという)、6はCAD出力
であるソースプログラムファイルを格納する補助記憶装
置(以下、ノースプログラムファイルという)、TはC
AD入力をCAD出力へ変換する変換アルゴリズムファ
イルを格納する補助記憶装置(以下、アルゴリズムファ
イルという)である。そして、ソース図形データ入力装
置2.データ表示装置3゜及び各ファイル4〜7は図示
していないインターフェースを介してマイクロコンピュ
ータ1に接続されている。
FIG. 5 is a block diagram showing a conventional program design CAD device. In the figure, 1 is a microprocessor (C
PU) 1m, a microcomputer consisting of a main recording section 1b, 2 a source graphic data input device, and 3 a data display device. In addition, 4 is an auxiliary storage device (hereinafter referred to as a database file) for storing CAD input/CAD database files, and 5 is an auxiliary storage device (hereinafter referred to as a library file) for storing library files of standard figures, words, etc. used during CAD input. ), 6 is an auxiliary storage device that stores the source program file that is CAD output (hereinafter referred to as the north program file), T is C
This is an auxiliary storage device (hereinafter referred to as an algorithm file) that stores a conversion algorithm file for converting AD input to CAD output. Then, source graphic data input device 2. The data display device 3° and each file 4-7 are connected to the microcomputer 1 via an interface (not shown).

次に、従来のプログラム設計CAD装置の動作を第6図
のブロック図に従って説明する。まず、ソース図形デー
タ入力装置2から入力された図形り文字入力21はデー
タベースファイル4に格納される。ソース図形データ入
力装置2から入力されるデータは図形・文字等であり、
それらのうちよく用いられる図形・文字はライブラリフ
ァイル5に登録されているものを用いる。それらの動作
を制御するプログラムが図形・文字エディタ8(以下、
エディタという)である。このエディタ8はマイクロコ
ンピュータ1の主記憶部1b上に読み込まれて実行され
る。また、゛ニブ−イタ8のロードモジュールはファイ
ル4〜Tのいずれかに置かれるものであシ、図中では破
線に示すようにデータベースファイル4上に置かれる。
Next, the operation of the conventional program design CAD device will be explained with reference to the block diagram shown in FIG. First, the graphic character input 21 input from the source graphic data input device 2 is stored in the database file 4. The data input from the source figure data input device 2 is figures, characters, etc.
Among these, frequently used figures and characters are those registered in the library file 5. The program that controls these operations is the figure/character editor 8 (hereinafter referred to as
(referred to as an editor). This editor 8 is loaded onto the main storage section 1b of the microcomputer 1 and executed. Further, the load module of the nib-eater 8 is placed in any of the files 4 to T, and is placed on the database file 4 as shown by the broken line in the figure.

さて、ソース図形データ入力装置2より入力され、エデ
ィタ8によって編集されたソース図形はデータベースフ
ァイル4に格納される。次に、アルゴリズムファイルT
上にロードモジュールとして置かれ、主記憶部1bに読
込まれて実行される変換アルゴリズム9がデータベース
ファイル4に格納された上記ソース図形を読み込んで変
換アルゴリズムの持つ特有のアルゴリズムに従って、ソ
ースプログラムの形に変換すると共に、出力ファイルと
してソースプログラムファイル6に書き込まれる。この
ソースプログラムファイル6は各種言語コンパイラによ
って処理され得る形になっている。
Now, the source figure input from the source figure data input device 2 and edited by the editor 8 is stored in the database file 4. Next, algorithm file T
The conversion algorithm 9, which is placed as a load module on the top and is read into the main memory 1b and executed, reads the source figure stored in the database file 4 and converts it into a source program according to the unique algorithm of the conversion algorithm. At the same time as being converted, it is written to the source program file 6 as an output file. This source program file 6 is in a format that can be processed by various language compilers.

次に、第7図は従来のプログラム設計CAD装置の処理
されたデータの形式を示す説明図である。
Next, FIG. 7 is an explanatory diagram showing the format of data processed by a conventional program design CAD device.

同図はソース図形の一例であり、HCPチャートとよば
れる図形シンボルとC言語と呼ばれる言語に対応する文
字入力を行なったものである。これらに対応するものが
ソース図形として第6図に示すデータベースファイル4
に格納される。これを変換アルゴリズム9によって変換
した出力ファイルの形が表1に示す7アイルであり、C
言語ソースプログラムとなっている。なお、第7図に示
されているソース図形あるいは表1に示されているC言
語ソースプログラムは、制御設計においてよく現われる
クリップeフロップと呼ばれる機能ブロックを示してい
る。
The figure is an example of a source graphic, in which a graphic symbol called an HCP chart and characters corresponding to a language called C language are input. The database file 4 shown in Figure 6 as a source figure corresponds to these.
is stored in The format of the output file converted by conversion algorithm 9 is 7 files shown in Table 1, and C
It is a language source program. Note that the source graphic shown in FIG. 7 or the C language source program shown in Table 1 shows a functional block called a clip e-flop, which often appears in control design.

表1 〔発明が解決しようとする課題〕 従来のプログラム設計CAD装置は以上のように構成さ
れているので、標準図形・字句の追加及び変更をするた
めには変換アルゴリズムを変更しなければならず、変換
アルゴリズムの記述プログラムを書き直す必要がある。
Table 1 [Problems to be solved by the invention] Since the conventional program design CAD device is configured as described above, the conversion algorithm must be changed in order to add or change standard figures and words. , it is necessary to rewrite the conversion algorithm description program.

しかし、この書き直しのためには高度のプログラム知識
及び上記変換アルゴリズムに対する深い理解を必要とし
、CAD使用者による変更は容易でなく、事実上変更で
きないという欠点があった。
However, this rewriting requires a high degree of programming knowledge and a deep understanding of the conversion algorithm, and it is difficult for a CAD user to change it, which has the disadvantage that it is virtually impossible to change it.

本発明は上記のような欠点を解消するためになされたも
ので、簡単なプログラムの知識を有してさえいれば、C
AD使用者により標準図形・字句の追加及び変更が可能
となり、容易に変換アルゴリズムを変更できるプログラ
ム設計CAD装置を得ることを目的とする。
The present invention was made to solve the above-mentioned drawbacks, and anyone with simple programming knowledge can use C++.
It is an object of the present invention to provide a program design CAD device that allows an AD user to add and change standard figures and words and to easily change a conversion algorithm.

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

本発明に係るプログラム設計CAD装置は、変換ルール
ファイルとこの変換ルールファイルを解釈推論する推論
機能ファイルとからなる変換アルゴリズムを備えている
The program design CAD device according to the present invention is equipped with a conversion algorithm consisting of a conversion rule file and an inference function file for interpreting and inferring this conversion rule file.

〔作用〕[Effect]

変換ルールファイルを追加・変更することにより図形・
字句の追加・変更を行なう。
By adding or changing the conversion rule file, you can
Add or change words.

〔実施例〕〔Example〕

以下本発明の実施例を図に従って説明する。第1図は本
発明に係る一実施例を示すプログラム設計CAD装置の
ブロック図である。図において、第5図と同一部分また
は相当部分には同一符号を付する。10はソース図面を
ンースプログラムヘ変換する変換ルール群から構成され
る変換ルールファイルを格納する補助記憶装置(以下、
変換ルールファイルとい5)、11は変換ルールファイ
ル10に格納される内容を解釈して実行する推論機構と
呼ばれるプログラムファイル(ロードモジュール)を格
納する補助記憶装置(以下、プログラムファイルという
)である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of a program design CAD device showing one embodiment of the present invention. In the figure, the same or equivalent parts as in FIG. 5 are given the same reference numerals. Reference numeral 10 denotes an auxiliary storage device (hereinafter referred to as a
The conversion rule file 5) and 11 are an auxiliary storage device (hereinafter referred to as a program file) that stores a program file (load module) called an inference mechanism that interprets and executes the contents stored in the conversion rule file 10.

次に、プログラム設計CAD装置の動作を第2図のブロ
ック図に従って説明する。まず、第6図と同じくソース
図形データ入力装置2より入力されたソース図形e文字
入力2aはデータベースファイル4に格納される。続い
てプログラムファイル11より推論機構ファイルが主記
憶部1b上に読み込まれ、推論機構12が動作可能にな
る。さらに、変換ルールファイル10より変換ルールが
同じく主記憶部1b上の別の領域に読み込まれ、主記憶
部1b上に常駐する。ここまでのステップを終えると変
換準備完了となり、データベースファイル4よりソース
図形を読み込んでソースプログラムへの変換を行ない、
出力ソースプログラムをソースプログラムファイル6上
に出力ファイルとして格納する。
Next, the operation of the program design CAD device will be explained according to the block diagram shown in FIG. First, the source figure e character input 2a inputted from the source figure data input device 2 as in FIG. 6 is stored in the database file 4. Subsequently, the inference mechanism file is read into the main storage section 1b from the program file 11, and the inference mechanism 12 becomes operational. Furthermore, the conversion rules are similarly read from the conversion rule file 10 into another area on the main storage section 1b, and reside on the main storage section 1b. After completing the steps up to this point, the conversion preparation is complete, and the source figure is read from database file 4 and converted to a source program.
The output source program is stored in the source program file 6 as an output file.

ここで、変換ルールファイル10を構成する変換ルール
群の数は、ライブラリファイル5に格納されている標準
図形・字句を構成するライブラリ(辞書)の数だけ存在
する。本プログラム設計CAD装置の使用者は、ソース
図形の入力を容易にし、重複入力を防き、かつ思考を上
位レベルで行なうために各々の図形・字句のライブラリ
を用いることができる。その場合、使用者は図形・字句
のライブラリ全ライブラリファイル5に追加登録するこ
とが必要であり、使用者はソース図形データ入力装置2
を介して追加登録を行なう。本プログラム設計CAD装
置においては、さらに、使用者が追加登録した図形・字
句ライブラリに対し、それを出力となるソースプログラ
ムへ変換する変換ルールを特定の言語を用いて記述し、
それを変換ルールファイル10に格納されているファイ
ルに追加する。追加は使用者がソース図形データ入力装
置2を介して専用の入力プログラム(図示せず)を用い
て行なわれる。
Here, the number of conversion rule groups forming the conversion rule file 10 is equal to the number of libraries (dictionaries) forming standard figures/phrases stored in the library file 5. The user of this program design CAD device can use the respective graphic/lexical libraries to facilitate the input of source figures, prevent duplicate input, and think at a higher level. In that case, the user needs to additionally register the graphics/lexical library in the entire library file 5, and the user needs to register the source graphics data input device 2.
Perform additional registration via . In this program design CAD device, conversion rules for converting the graphic/lexical library additionally registered by the user into the output source program are written in a specific language.
Add it to the files stored in the conversion rule file 10. The addition is performed by the user via the source graphic data input device 2 using a dedicated input program (not shown).

次に、上記の動作の具体例を従来例で説明した第7図と
表1を用いて説明する。まず、ここでは第7図における
一連のソース図形(例えば、5ケの図形と4ケの字句か
ら構成される)を入力する代わりに、第3図(&)に示
す説明図のような図形ライブラリ13をrsrffj 
 という名前で登録する。
Next, a specific example of the above operation will be explained using FIG. 7 and Table 1, which are explained in the conventional example. First, instead of inputting a series of source figures (for example, consisting of 5 figures and 4 words) in Figure 7, we will use a figure library like the explanatory diagram shown in Figure 3 (&). rsrffj 13
Register under the name.

図形ライブラリ13は3[類のパラメータ文字列を有し
、ライブラリ読出し時にそれぞれソース図形データ入力
装置2より入力する。(本実施例では1−−−Xo 、
 2−−−Xi 、 3−−−−YOと入力する。)次
に、第4図はこのように呼出されたライブラリを変換す
る変換ルールを記述するフローチャートである。言語は
いずれもC言語対応に記述しである。まず、文字列PI
、P2.P3にそれぞれ上記第1.第2.第3のパラメ
ータを読み込む、そして、前記衣1の1行目の文に対応
してパラメータP1t−含む文字列をソースプログラム
ファイル6に書き込む。同様に2〜3行目に対応してパ
ラメータP3を含む文字列を書き込む。ここで表1の前
半が終了し、以下同様にして後半対応の処理を行ない変
換ルールを完了する。表1は第7図におけるソースプロ
グラムファイル6への文字列書き込み実行文(C言語記
述)の最初の文の例である。なお、第4図中「」はta
bコードを示している。
The graphic library 13 has three types of parameter character strings, each of which is input from the source graphic data input device 2 when reading the library. (In this example, 1---Xo,
Enter 2---Xi, 3---YO. ) Next, FIG. 4 is a flowchart describing a conversion rule for converting the library called in this way. All languages are written to be compatible with the C language. First, the string PI
, P2. P3 respectively above 1. Second. The third parameter is read, and a character string including the parameter P1t- is written in the source program file 6 in correspondence with the sentence in the first line of the clothing 1. Similarly, a character string including parameter P3 is written corresponding to the second and third lines. Here, the first half of Table 1 is completed, and the processing corresponding to the second half is similarly performed to complete the conversion rule. Table 1 is an example of the first sentence of the executable statement (C language description) for writing a character string to the source program file 6 in FIG. In addition, "" in Figure 4 is ta
b code is shown.

また、第3図(b)に示す説明図は上記登録ライフラ’
J rgrBJの使用例であり、他の図形ライブラリと
共に用いられる。同図より図形入力の少なさと、上位レ
ベル思考について理解できる。
In addition, the explanatory diagram shown in FIG. 3(b) is the registered lifer'
An example of the use of J rgrBJ, used with other graphics libraries. From this diagram, you can understand the lack of graphical input and higher-level thinking.

このように本実施例におけるプログラム設計CAD装置
は、変換ルールファイル10が推論機構12とは独立し
て存在し、この推論機構12により解釈されて実行され
るため、使用者が標準図形・字句の追加及び変更を行な
った場合、最低限のプログラム知識・CAD知識に基づ
いてルール記述を追加・変更することができる。これに
よシ、プログラム設計の生産性向上を図ることができる
など顕著な効果金有する。
In this way, in the program design CAD device of this embodiment, the conversion rule file 10 exists independently of the inference mechanism 12, and is interpreted and executed by the inference mechanism 12. When additions and changes are made, rule descriptions can be added and changed based on minimum programming knowledge and CAD knowledge. This has significant benefits, such as the ability to improve productivity in program design.

なお、上記実施例では変換ルールの言語t−C言語を用
いて説明したがFORTRAN言語TR用いてもよい。
Although the above embodiment has been described using the conversion rule language t-C, the FORTRAN language TR may also be used.

また、C言語、FORTRAN言語TR用ンパイラ言語
で記述した場合、変換ルールファイル10も一度その言
語対応のコンパイラでコンパイルされ、プログラムファ
イル11と何らかの形でリンクされて実行され、高速な
CAD装置が実現できる。
Furthermore, when written in the C language or the compiler language for the FORTRAN language TR, the conversion rule file 10 is once compiled with a compiler compatible with that language, and is linked with the program file 11 in some way and executed, realizing a high-speed CAD device. can.

また、上記の速度の点を気にしなければ、上記変換ルー
ル記述はインタープリッタ言語あるいは簡易言語で記述
できる。この時には推論機構12は上記言語を解釈しな
がら実行する必要があるが、手軽なCAD装置が実現で
きる。
Further, if the above-mentioned speed is not a concern, the above-mentioned conversion rule description can be written in an interpreted language or a simple language. At this time, the inference mechanism 12 needs to execute the above language while interpreting it, but a simple CAD device can be realized.

また、上記実・流側では各ファイル(補助記憶装置)が
それぞれ別々であると説明したが、記憶容量さえ許せば
、各ファイルが別々であるかぎり、同一の補助記憶装置
であってもさしつかえない。
Also, as explained above, each file (auxiliary storage device) is separate on the actual/flow side, but as long as the storage capacity allows, it is also possible to use the same auxiliary storage device as long as each file is separate. .

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

以上説明のように本発明は、ソース図形をソースプログ
ラムに変換する際の変換ルールがファイルとして推論機
構から独立に存在し、この変換ルールファイルを容易に
変更することができるため、使用者は簡単に変換アルゴ
リズムを変更することができる。これにより、プログラ
ム設計の生産性を向上させることができるなど顕著な効
果を有する。
As explained above, in the present invention, the conversion rules for converting a source figure into a source program exist as a file independent of the inference mechanism, and this conversion rule file can be easily changed. The conversion algorithm can be changed. This has remarkable effects such as being able to improve the productivity of program design.

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

第1図は本発明に係る一実施例を示すプログラム設計C
AD装置のブロック図、第2図はその動作を示すブロッ
ク図、第3図(a) 、 (b’)は図形ライブラリを
示す説明図、第4図は変換ルールを記述するフローチャ
ート、第5図は従来のプログラム設計Ω■装置を示すブ
ロック図、第6図はその動作を示すブロック図、第7図
はデータの形式を示す説明図である。 1・・・・マイクロコンピュータ、11@働・・マイク
ロプロセッサ、1b・・・・主記憶部、2・・・・ソー
ス図形データ入力装置、3・・・・データ表示装置、4
・・・・データベースファイル、5IIe・・ライブラ
リファイル、6会龜・・ソースプログラムファイル、1
0吻・・・変換ルールファイル、11・1111@プロ
グラムファイ第1図
FIG. 1 is a program design C showing an embodiment of the present invention.
A block diagram of the AD device, Fig. 2 is a block diagram showing its operation, Figs. 3 (a) and (b') are explanatory diagrams showing the figure library, Fig. 4 is a flowchart describing conversion rules, Fig. 5 6 is a block diagram showing the conventional program design Ω■ device, FIG. 6 is a block diagram showing its operation, and FIG. 7 is an explanatory diagram showing the data format. DESCRIPTION OF SYMBOLS 1...Microcomputer, 11@Working...Microprocessor, 1b...Main memory section, 2...Source figure data input device, 3...Data display device, 4
...Database file, 5IIe...Library file, 6.Source program file, 1
0 proboscis...conversion rule file, 11/1111@program file Figure 1

Claims (1)

【特許請求の範囲】 マイクロコンピュータ、主記憶装置、補助記憶装置、デ
ータ入力装置、及びデータ表示装置を備え、ソースプロ
グラムをソース図形の形で前記データ入力装置より前記
補助記憶装置へ対話入力し、この入力されたソース図形
を変換してソースプログラムを生成する機能を有する変
換アルゴリズムがファイルの形で前記補助記憶装置に格
納されるプログラム設計CAD装置において、 変換ルールファイルとこの変換ルールファイルを解釈推
論する推論機構ファイルとからなる変換アルゴリズムを
備えたことを特徴とするプログラム設計CAD装置。
[Scope of Claims] A microcomputer, a main storage device, an auxiliary storage device, a data input device, and a data display device are provided, and a source program is interactively input from the data input device to the auxiliary storage device in the form of source graphics, In a program design CAD device in which a conversion algorithm having a function of converting the input source figure to generate a source program is stored in the auxiliary storage device in the form of a file, a conversion rule file is used to interpret and infer this conversion rule file. A program design CAD device comprising a conversion algorithm consisting of an inference mechanism file.
JP63210207A 1988-08-24 1988-08-24 Program design cad device Pending JPH0258126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63210207A JPH0258126A (en) 1988-08-24 1988-08-24 Program design cad device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63210207A JPH0258126A (en) 1988-08-24 1988-08-24 Program design cad device

Publications (1)

Publication Number Publication Date
JPH0258126A true JPH0258126A (en) 1990-02-27

Family

ID=16585566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63210207A Pending JPH0258126A (en) 1988-08-24 1988-08-24 Program design cad device

Country Status (1)

Country Link
JP (1) JPH0258126A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6152217A (en) * 1995-12-25 2000-11-28 Denso Corporation Air temperature control system for a vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6152217A (en) * 1995-12-25 2000-11-28 Denso Corporation Air temperature control system for a vehicle

Similar Documents

Publication Publication Date Title
Kernighan et al. The C programming language
KR101086082B1 (en) An extensible type system for representing and checking consistency of program components during the process of compilation
Clément et al. Natural semantics on the computer
JP4140980B2 (en) A syntax-independent display method for computer programs that display program trees.
Ko et al. Barista: An implementation framework for enabling new tools, interaction techniques and views in code editors
Himsolt Graphlet: design and implementation of a graph editor
Kirch-Prinz et al. A complete guide to programming in C++
Bergeron et al. Systems programming languages
Soulié C++ Language Tutorial
Kernighan ‘Programming in C− A Tutorial
Horton Beginning C++
JPH0258126A (en) Program design cad device
Christensen An introduction to AMBIT/L, a diagrammatic language for list processing
Weiskamp Advanced turbo C programming
Kamthane Programming with ANSI and Turbo C
McGrath Excel VBA in easy steps
Berry et al. Book on C
Abrahams Typographical extensions for programming languages: breaking out of the ASCII straitjacket
Meertens et al. An implementation of the B programming language
Srb et al. Haskell-Like S-Expression-Based Language Designed for an IDE
Aıt-Kaci et al. Label-selective-calculus
Somashekara et al. Object-Oriented Programming with C++
Horton et al. Basic Ideas
Richards How BCPL evolved from CPL
Chu Design Concepts of Japanese-Language Data Processing Systems