JPH0368417B2 - - Google Patents
Info
- Publication number
- JPH0368417B2 JPH0368417B2 JP58056708A JP5670883A JPH0368417B2 JP H0368417 B2 JPH0368417 B2 JP H0368417B2 JP 58056708 A JP58056708 A JP 58056708A JP 5670883 A JP5670883 A JP 5670883A JP H0368417 B2 JPH0368417 B2 JP H0368417B2
- Authority
- JP
- Japan
- Prior art keywords
- definition
- unit
- description
- sub
- macro instruction
- 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 - Lifetime
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明は、データフロー言語処理システムにお
けるマクロ命令制御によるユニツト処理方式に関
し、特にマクロ命令の定義体を複層構造とし、各
層間に呼出し関係をもたせることにより、1つの
マクロ命令で制御できるユニツトの処理範囲を拡
大できるようにしたユニツト処理方式に関する。Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to a unit processing method using macro instruction control in a data flow language processing system. The present invention relates to a unit processing method that can expand the processing range of a unit that can be controlled by one macro instruction.
データフロー言語たとえばHYPERCOBOLの
プログラムは、第1図aに例示するように、処理
の実行単位となるユニツトと、ユニツトに対する
入力データ領域SA1、……および出力データ領域
SA2、……とで構成されている。
A program in a data flow language, HYPERCOBOL, for example, as shown in Figure 1a, consists of a unit that is the execution unit of processing, an input data area SA1, ... and an output data area for the unit.
It consists of SA2,...
ユニツトには、処理頻度の高い任意の事務処理
単位の内容が記述される。 The unit describes the contents of an arbitrary office processing unit that is processed frequently.
ユニツトの記述は、
ユニツト文
無条件処理記述
WHEN記述の集り
の3つの要素で構成される。第1図bはその1例
を示している。 A unit description consists of three elements: a unit statement, an unconditional processing description, and a collection of WHEN descriptions. FIG. 1b shows one example.
このようなユニツトの記述は、マクロ命令に変
換されるが、従来のマクロ命令技法では、第2図
に示すようにのWHEN記述すなわち条件処理
記述の「場合分け」の一つ一つごとに別のマクロ
命令を対応づける必要がある。そしてマクロ命令
はその種類ごとに定義体が作成されるから、1つ
のユニツト記述の定義が複数のマクロ命令の定義
に分割されることになり、ユニツト記述全体がど
のように定義されているのかを知るためには、こ
れらの各マクロ命令の定義をすべて参照しなけれ
ばならないという欠点があつた。 Such a unit description is converted into a macro instruction, but in the conventional macro instruction technique, each ``case'' of the WHEN description, that is, the condition processing description, is separately converted as shown in Figure 2. It is necessary to map the macro instructions. Since a definition body is created for each type of macro instruction, the definition of one unit description is divided into multiple macro instruction definitions, making it difficult to understand how the entire unit description is defined. The drawback was that in order to know, it was necessary to refer to all the definitions of each of these macro instructions.
本発明の目的は、上述したユニツト記述の場合
のように多様な内容の処理単位を含むユニツトに
ついて、マクロ命令の種類を増すことなく単一の
マクロ命令で対応できるような定義体構造をもつ
マクロ命令方式を提供することにあり、そのため
1つのユニツト記述に対応するマクロ命令の定義
体を、主定義体と主定義体から呼び出される副定
義記述に複層化し、主定義体に統括的あるいは共
通的な定義を記述し、副定義記述にはその具体的
あるいは細目的定義を記述することにより、マク
ロ命令の定義と呼び出し関係を複層構造とし、1
つのマクロ命令の定義で1つのユニツト記述の内
容を表わすことを可能にする。
An object of the present invention is to create a macro having a definition structure that allows a unit that includes processing units of various contents, as in the case of the unit description described above, to be handled with a single macro instruction without increasing the number of types of macro instructions. To provide an instruction system, the definition body of macro instructions corresponding to one unit description is multilayered into a main definition body and sub-definition descriptions called from the main definition body, and the definition body of macro instructions corresponding to one unit description is layered into a main definition body and sub-definition descriptions called from the main definition body. By writing a specific definition and describing its specific or detailed purpose definition in the sub-definition description, the definition and calling relationship of the macro instruction is made into a multi-layered structure.
It is possible to express the contents of one unit description with the definition of one macro instruction.
本発明の構成は、データフロー言語処理システ
ムにおいて、データフロー言語プログラムのユニ
ツト文と無条件処理記述とWHEN記述の集りと
により構成されるユニツトを単一のマクロ命令に
対応づけるとともに、該マクロ命令の定義体を統
括的あるいは共通的な定義を記述する主定義体と
具体的あるいは細目的定義を記述する副定義記述
との複層構造とし、かつ該複層構造の各層間に呼
び出し関係を設定することにより、上記マクロ命
令から定義体を参照する際、まず主定義体を参照
し、定義中に副定義記述への呼び出しが設定され
ている場合、主定義体中の当該定義を呼び出しの
副定義記述で置き換え、マクロ命令から定義体を
単一的に参照して処理を行うことを特徴としてい
る。 The configuration of the present invention is that, in a data flow language processing system, a unit constituted by a unit statement of a data flow language program, an unconditional processing description, and a collection of WHEN descriptions is associated with a single macro instruction, and the macro instruction The definition body has a multi-layered structure consisting of a main definition body that describes an overall or common definition and a sub-definition description that describes specific or sub-purpose definitions, and a calling relationship is established between each layer of the multi-layered structure. By doing this, when referring to a definition field from the above macro instruction, the main definition field is first referenced, and if a call to a subdefinition description is set during the definition, that definition in the main definition field is used as the subdefinition description of the call. It is characterized by replacing it with a definition description and performing processing by referring to the definition body from a macro instruction.
以下、本発明の詳細を実施例にしたがつて説明
する。
Hereinafter, details of the present invention will be explained based on examples.
第3図は、本発明にもとづくユニツト記述の定
義体の1実施例を一部省略して示したものであ
る。図中、1はマクロ命令〔EDITX〕、2は主定
義体、3は副定義記述を示す。 FIG. 3 shows an embodiment of a unit description definition body based on the present invention, with some parts omitted. In the figure, 1 indicates a macro instruction [EDITX], 2 indicates a main definition field, and 3 indicates a sub-definition description.
本例の処理は、入力データ領域SA1の金額デー
タにもとづいて出力データ領域SA2に累計データ
を作成するものである。 The process of this example is to create cumulative data in the output data area SA2 based on the amount data in the input data area SA1.
主定義体2において、
データAは2桁の数字で表わされ、初期値が
零であること、
入力レコード1件についてデータAに1を加
えること、
データA=“1”の場合すなわち1件名のレ
コードについては“FIRST”を実行すること、
データA=2の場合すなわち2件名のレコー
ドについては“SECOND”を実行すること、
A=3以降すなわち他のレーコードについて
は共通処理(*)を実行すること、
などが定義され、副定義記述3においては、その
中の必要なものたとえば、、の細目が定義
される。 In main definition field 2, data A is represented by a two-digit number, and the initial value is zero; 1 is added to data A for one input record; and if data A = "1", that is, one subject name. Execute “FIRST” for the record, execute “SECOND” for data A=2, that is, for records with two subjects, and execute common processing (*) for A=3 and later, that is, other record codes. Things to do, etc. are defined, and in sub-definition description 3, the necessary details of, for example, are defined.
このように、1つのユニツトを1つのマクロ命
令で表わし、1つのマクロ命令に対して各1つの
主定義体と副定義記述とを対応させ、副定義記述
3は主定義体2から自動的に呼び出されるように
することにより、ユニツトごとの定義の参照を容
易にすることができる。 In this way, one unit is represented by one macro instruction, one main definition field and one sub-definition description are made to correspond to one macro instruction, and sub-definition description 3 is automatically generated from main definition field 2. By having it called, the definition for each unit can be referenced easily.
主定義体2には、たとえば、メーカ提供の標準
的な仕様を定義し、副定義記述3には、ユーザ特
有の拡張、例外処理などを任意に定義することが
できる。 In the main definition body 2, for example, standard specifications provided by a manufacturer can be defined, and in the sub-definition description 3, user-specific extensions, exception handling, etc. can be arbitrarily defined.
第4図は、本発明実施例にもとづく定義体編集
処理の概要図である。図中、4はマクロ命令、5
は入力部、6は定義体取出し部、7は主定義体フ
アイル、8は副定義記述フアイル、9は主定義体
解析部、10は副定義記述解析部、11はソース
生成部、12は出力部、13はソースフアイルを
示している。 FIG. 4 is a schematic diagram of definition program editing processing based on the embodiment of the present invention. In the figure, 4 is a macro instruction, 5
is an input section, 6 is a definition program extraction section, 7 is a main definition program file, 8 is a sub-definition description file, 9 is a main definition program analysis section, 10 is a sub-definition description analysis section, 11 is a source generation section, 12 is an output Section 13 indicates a source file.
マクロ命令4は、入力部5から定義体取出し部
6へ送られ、そこでその名前を用いて、主定義体
フアイル7および副定義記述フアイル8の検索が
行なわれる。各フアイルから対応する各1つの主
定義体および副定義記述が取出され、それぞれ主
定義体解析部9および副定義記述解析部10に供
給される。これらの解析部9,10は、主および
副の定義体を解析し、ソース生成部18に供給す
る。ソース生成部18は、第4図中に矢印が例示
されているように、副定義記述に記述されている
定義で対応する主定義体の定義を置き換え、所定
の編集処理を行なつて、出力部12からソースフ
アイル13へ出力する。 The macro instruction 4 is sent from the input section 5 to the definition program retrieval section 6, where the name is used to search the main definition program file 7 and the sub-definition description file 8. A corresponding main definition field and sub-definition description are extracted from each file and supplied to the main definition field analysis section 9 and sub-definition description analysis section 10, respectively. These analysis units 9 and 10 analyze the main and sub definition bodies and supply them to the source generation unit 18. The source generation unit 18 replaces the definition of the corresponding main definition field with the definition described in the sub-definition description, performs predetermined editing processing, and outputs the result as shown by the arrow in FIG. The data is output from the unit 12 to the source file 13.
以上のように、本発明によれば、マクロ命令の
定義と呼び出し関係を複層化することにより、単
一のマクロ命令をユニツトの多様な処理内容に対
応づけて定義することができ、各ユニツトの定義
の参照を容易にすることができる。
As described above, according to the present invention, by layering macro instruction definitions and calling relationships, a single macro instruction can be defined in association with various processing contents of a unit, and each unit can The definition of can be easily referenced.
第1図aはユニツトの説明図、第1図bは本発
明におけるマクロ命令定義体の呼び出しを行うマ
クロ命令に相当するユニツト記述の1例を示す
図、第2図は従来のマクロ命令技法に基づいた実
施例のマクロ命令定義体の説明図、第3図は本発
明実施例のマクロ命令定義体の説明図、第4図は
本発明実施例にもとづく定義体編集処理の概要図
である。
図中、1はマクロ命令、2は主定義体、3は副
定義記述を表わす。
FIG. 1a is an explanatory diagram of a unit, FIG. 1b is a diagram showing an example of a unit description corresponding to a macroinstruction that calls a macroinstruction definition body in the present invention, and FIG. 2 is an illustration of a conventional macroinstruction technique. FIG. 3 is an explanatory diagram of a macro instruction definition body according to the embodiment of the present invention, and FIG. 4 is a schematic diagram of definition program editing processing based on the embodiment of the present invention. In the figure, 1 represents a macro instruction, 2 represents a main definition field, and 3 represents a sub definition description.
1 ストアードプログラム制御のデータ処理装置
に割込み要求信号を出力する割込み制御装置であ
つて、特定の命令実行に基づいて複数の割込み要
求Si(iは1からnまでの正の整数)を発生する
第1の割込み要求発生部と、特定の割込み要因に
基づいて前記第1の割込み要求発生部より発生す
る割込み要求以外の複数の割込み要求Hi(iは1
からnまでの正の整数)を発生する第2の割込み
要求発生部と、前記第1及び第2の割込み要求発
生部からの割込み要求Si、Hiの優先度をそれぞ
れsj、hj(jは1から(n−1)までの正の整数)
としたとき、hjを高優先とし以下sj、k(j+
1)、s(j+1)の順で低優先と判断し、入力さ
れた前記割込み要求Si、Hiのうちの最高優先度
のものを選択して前記割込み要求信号を発生する
優先順位判別部と、特定の動作要因に基づく処理
を第1及び第2の処理に分割し、前記第2の処理
に対応して所定の優先度をもつ前記特定の割込み
要因を発生し、かつ前記特定の割込み要因より低
い優先度をもち前記第2の処理実行後に実行され
前記第1の処理実行のための割込み要求と対応す
る命令を配置したプログラムを含む優先順位制御
手段とを有することを特徴とする割込み制御装
置。
1 An interrupt control device that outputs an interrupt request signal to a data processing device under stored program control, which generates a plurality of interrupt requests Si (i is a positive integer from 1 to n) based on the execution of a specific instruction. 1 interrupt request generating section and a plurality of interrupt requests Hi (i is 1) other than interrupt requests generated from the first interrupt request generating section based on a specific interrupt factor.
The priorities of the interrupt requests Si and Hi from the second interrupt request generation section that generates the interrupt request (positive integer from to n) and the first and second interrupt request generation sections are set as sj and hj (j is 1 (positive integer from to (n-1))
When hj is given high priority, the following sj, k(j+
1) a priority determining unit that determines low priority in the order of 1) and s(j+1), selects the highest priority among the input interrupt requests Si and Hi, and generates the interrupt request signal; dividing a process based on a specific operation factor into first and second processes, generating the specific interrupt factor having a predetermined priority in response to the second process, and An interrupt control device characterized by having a priority control means including a program having a low priority and arranged with an instruction corresponding to an interrupt request for executing the first process, which is executed after execution of the second process. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58056708A JPS59183435A (en) | 1983-03-31 | 1983-03-31 | Unit processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58056708A JPS59183435A (en) | 1983-03-31 | 1983-03-31 | Unit processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59183435A JPS59183435A (en) | 1984-10-18 |
| JPH0368417B2 true JPH0368417B2 (en) | 1991-10-28 |
Family
ID=13034973
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58056708A Granted JPS59183435A (en) | 1983-03-31 | 1983-03-31 | Unit processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59183435A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0630951B2 (en) * | 1984-08-31 | 1994-04-27 | キヤノン株式会社 | Recording material |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5822453A (en) * | 1981-07-31 | 1983-02-09 | Fujitsu Ltd | Macro expansion system during language translation |
-
1983
- 1983-03-31 JP JP58056708A patent/JPS59183435A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59183435A (en) | 1984-10-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112487019B (en) | Method and system for parsing dynamic SQL in OpenGauss database | |
| CN108874395B (en) | Hard compiling method and device in modular stream processing process | |
| JPH0368417B2 (en) | ||
| JP2526713B2 (en) | Primitive program analyzer | |
| JP2621591B2 (en) | Data transfer method of database system | |
| JPH0250730A (en) | Language converting system based upon common machine word | |
| JPH04128936A (en) | Program execution environment changeover system | |
| JPS5846439A (en) | Program editing method of computer | |
| JPH025132A (en) | Automatic document forming system | |
| JPH04178836A (en) | Format editing processing system | |
| JPH02308355A (en) | Input procedure management system for interpreter | |
| JPH06110670A (en) | Graphic user interface function customizing system | |
| JPH05313870A (en) | Preparation system for program structure diagram | |
| JPH04147341A (en) | Automatic module execution controller | |
| JPS62160536A (en) | Cobol syntax converting method | |
| JPH0219924A (en) | High-speed data access system | |
| JPS62128359A (en) | Document edit control system | |
| JPH02222032A (en) | Optimization system for addition/subtraction instruction | |
| JPH0120780B2 (en) | ||
| JPH0264744A (en) | Fault analyzing information acquiring system | |
| JPH02211540A (en) | Compile control system | |
| JPH064348A (en) | Program debugging system | |
| JPS6162141A (en) | Logic-type information processing device | |
| JPS6344240A (en) | Program processing control system | |
| JPH06208489A (en) | Program-sorted record division managing system |