Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0820961B2 - Expression analysis processing method - Google Patents
[go: Go Back, main page]

JPH0820961B2 - Expression analysis processing method - Google Patents

Expression analysis processing method

Info

Publication number
JPH0820961B2
JPH0820961B2 JP4564686A JP4564686A JPH0820961B2 JP H0820961 B2 JPH0820961 B2 JP H0820961B2 JP 4564686 A JP4564686 A JP 4564686A JP 4564686 A JP4564686 A JP 4564686A JP H0820961 B2 JPH0820961 B2 JP H0820961B2
Authority
JP
Japan
Prior art keywords
expression
expressions
type
character
expression analysis
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 - Fee Related
Application number
JP4564686A
Other languages
Japanese (ja)
Other versions
JPS62203237A (en
Inventor
孝則 寺田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4564686A priority Critical patent/JPH0820961B2/en
Publication of JPS62203237A publication Critical patent/JPS62203237A/en
Publication of JPH0820961B2 publication Critical patent/JPH0820961B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 〔概要〕 プログラム翻訳において,論理式,文字式,算術式の
間の関係のように,一方の式が他方の式を包含している
場合に,式の解析処理を,式の種類ごとに分離して単純
化することにより,処理を高速化する。
DETAILED DESCRIPTION OF THE INVENTION [Outline] In program translation, when one expression includes the other, such as the relationship between a logical expression, a character expression, and an arithmetic expression, the analysis processing of the expression is performed. , Speed up the processing by separating and simplifying for each type of expression.

〔産業上の利用分野〕[Industrial applications]

本発明は,情報処理システムに関するものであり,特
にソースプログラムの翻訳処理システムにおける式の解
析処理方式に関する。
The present invention relates to an information processing system, and more particularly to an expression analysis processing method in a source program translation processing system.

〔従来の技術〕[Conventional technology]

たとえばアセンブラなどの言語を用いて記述されたソ
ースプログラムを計算機で実行するには,アセンブラの
マクロ処理部などで翻訳処理を行って,オブジェクトに
変換する必要がある。
For example, in order to execute a source program written in a language such as an assembler on a computer, it is necessary to perform a translation process in a macro processing unit of the assembler and convert it into an object.

翻訳処理において,ソースプログラム中の式は,まず
要素に分解されて,式を構成する各演算子やオペランド
を識別される。次に式を解析して処置し易い形に編集
し,演算可能なものについては演算を実行してから,コ
ードに変換して,出力される。
In the translation process, the expression in the source program is first decomposed into elements to identify the operators and operands that make up the expression. Next, the expression is analyzed and edited into a form that is easy to handle, and if it can be operated, the operation is executed, then converted into a code and output.

式の解析処理の例を示すと,たとえば算術式 A+B*C の場合,BとCの乗算を先に実行し,その結果とAを加算
する2つの演算に編集される。一般に,解析結果は,演
算子の型別に4−組(よつぐみ)データなどの中間情報
形式を用いて表わされる。
For example, in the case of the arithmetic expression A + B * C, the multiplication of B and C is executed first, and the result is edited into two operations for adding A. Generally, the analysis result is represented by using an intermediate information format such as 4-tuple (yutsumi) data for each operator type.

式に上記した算術式の例の解析結果を示す。 Expression shows the analysis result of the example of the arithmetic expression described above.

各4−組の第1項目は演算子(OP)であり,第2,第3
の項目はそれぞれオペランド,そして最後の項目は演算
結果の格納先を示している。上の例では,B*Cの結果は
t1に格納され,A+t1の結果はt2に格納される。
The first item of each 4-set is an operator (OP), and the second and third items
Each of the items indicates the operand, and the last item indicates the storage location of the operation result. In the above example, the result of B * C is
stored in t 1, the result of A + t 1 is stored in the t 2.

次に,ソースプログラム中の式について説明する。 Next, the expressions in the source program will be described.

式には,算術式,文字式,論理式などがある。算術式
は,加算,減算,乗算,除算,べき乗の算術演算子とオ
ペランドで記述される。算術演算子は,それぞれ+,
−,*,/,**で表わされる。
The expressions include arithmetic expressions, character expressions, and logical expressions. Arithmetic expressions are described by addition, subtraction, multiplication, division, and exponentiation arithmetic operators and operands. The arithmetic operators are +,
It is represented by-, *, /, **.

文字式は,文字例を表わすために用いられる。たとえ
ば文字式C(A,B)は、文字変数CについてそのA番目
の文字から始まるBの長さの部分列を表している。
Character expressions are used to represent examples of characters. For example, the character expression C (A, B) represents a substring of length B starting from the Ath character of the character variable C.

論理式は,2つのオペランド間の論理演算を表わし、論
理演算子AND,OR,NOT,EQ,GEなどが用いられる。ここでAN
D,OR,NOTはそれぞれ論理積、論理和、否定の演算を表
し、EQは左項と右項の値が等しいとき真を返す演算、GE
は左項が右項よりも算術的に小さくないときに真を返す
演算をそれぞれ表している。
A logical expression represents a logical operation between two operands, and logical operators AND, OR, NOT, EQ, GE, etc. are used. Where AN
D, OR, NOT represent AND, NOT, and NOT operations, respectively, and EQ is an operation that returns true when the values of the left and right terms are equal, GE
Represents an operation that returns true when the left term is not arithmetically less than the right term.

論理式は他の論理式,文字式,算術式をオペランドと
してとることができ,文字式は他の文字式及び算術式を
オペランドとしてとることができる。
Logical expressions can take other logical expressions, character expressions, and arithmetic expressions as operands, and character expressions can take other character expressions and arithmetic expressions as operands.

すなわち,論理式,文字式,算術式の各式の間には, 論理式 ⊃ 文字式 ⊃ 算術式 で表わされる包含関係が存在する。 In other words, there is an inclusive relation represented by logical expression ⊃ character expression ⊃ arithmetic expression among logical expressions, character expressions, and arithmetic expressions.

次に,文字式が算術式を包含している例を示す。 Here is an example of a character expression containing an arithmetic expression:

(A+B*C)‘ABC'(A+B,C−D) ここで文字式に含まれているA+B*C,A+B,C−Dは
算術式であり、 ‘ABC'は文字式を表す。文字式‘ABC'は引用符(’)で
囲まれたABCが変数ABCではなく文字列のABCであること
を示し、文字列の右項(A+B,C−D)は文字列の部分
列の先頭位置がA+Bで長さがC−Dであることを、ま
た文字列の左項は文字列(部分列)の繰り返し回数をそ
れぞれ表している。たとえば (1+2*3)‘ABC'(3−1,3−2) は、文字列ABCの3−1=2文字目から3−2=1文字
を、1+2*3=7回繰り返すことを意味している。こ
の演算結果は、BBBBBBBとなる。
(A + B * C) 'ABC' (A + B, C-D) Here, A + B * C, A + B, C-D included in the character expression is an arithmetic expression, and'ABC 'represents a character expression. The character expression'ABC 'indicates that the ABC enclosed in quotation marks (') is the ABC of the character string, not the variable ABC, and the right term (A + B, C-D) of the character string is the substring of the character string. The start position is A + B and the length is CD, and the left term of the character string represents the number of repetitions of the character string (substring). For example, (1 + 2 * 3) 'ABC' (3-1,3-2) means that 3-2 = 1 characters from the 3-1 = 2nd character of the character string ABC are repeated 1 + 2 * 3 = 7 times. are doing. The result of this calculation is BBBBBBB.

次に、文字式と算術式を包含する論理式の例を示す。 Next, examples of logical expressions including character expressions and arithmetic expressions are shown.

((IA+IB)GE(IC−ID)OR(CA(IE*IF,IG/IH)EQ
‘ABC') この論理式はOR演算子で結合された左項と右項の2つの
論理式(IA+IB)GE(IC−ID)とCA(IE*IF,IG/IH)EQ
‘ABC'からなり、左項の論理式はさらにGE演算子で結合
された2つの算術式IA+IBとIC−IDからなる。また右項
の論理式はさらにEQ演算子で結合された2つの文字式CA
(IE*IF,IG/IH)と‘ABC'からなり、このうち左項の文
字式には2つの算術式IE*IFとIG/IHが包含されてい
る。この論理式全体では、IA+IBがIC−IDよりも大きい
かまたは文字変数CAのIE*IF文字目から始まるIG/IEの
長さの文字列がABCであれば真であることを意味する。
((IA + IB) GE (IC-ID) OR (CA (IE * IF, IG / IH) EQ
'ABC') This logical expression is two logical expressions (IA + IB) GE (IC-ID) and CA (IE * IF, IG / IH) EQ that are connected by the OR operator.
It consists of'ABC ', and the logical expression on the left side consists of two arithmetic expressions IA + IB and IC-ID that are connected by the GE operator. In addition, the logical expression on the right is the two character expressions CA that are combined by the EQ operator.
It consists of (IE * IF, IG / IH) and'ABC '. Of these, the character expression on the left contains two arithmetic expressions IE * IF and IG / IH. In the entire logical expression, it means that IA + IB is larger than IC-ID, or if the character string of the IG / IE length starting from the IE * IF character of the character variable CA is ABC, it is true.

ところで、従来のソースプログラム翻訳処理では,式
の解析は,論理式,文字式,算術式等を予め区別するこ
となく,1つの解析処理単位でまとめて処理され,式の種
別,演算子の種別等を認識しながら逐次的に処理され
る。
By the way, in the conventional source program translation processing, the expression analysis is performed collectively in one analysis processing unit without distinguishing logical expressions, character expressions, arithmetic expressions, etc. in advance. Etc. are sequentially processed while recognizing.

なお式の種別は、解析対象のプログラム中の文によっ
て識別されることができる。たとえば、あるアセンブラ
では、以下のように各文に記述できる式の種別が文法で
規定されているため、この文法を用いて各種別を認識し
ている。即ち、その式全体がどの種別に属するかは、本
処理以前に明らかになっている。
The type of expression can be identified by a statement in the program to be analyzed. For example, in an assembler, the types of expressions that can be described in each sentence are defined by a grammar as follows, and thus each type is recognized using this grammar. That is, it has been clarified prior to this processing to which type the entire expression belongs.

SETA命令:算術式 SETB命令:論理式 SETC命令:文字式 AIF命令 :論理式 〔発明が解決しようとする問題点〕 従来の式の解析処理方式では,論理式や文字式,算術
式などの多様な式を1つの処理単位で解析しているた
め,全ての種類の式に対応できるようにする必要から,
たとえば演算子として+,−,*,/,,AND,OR,…など
を全てチェックするため,解析に必要な辞書や表が大き
くなり,辞書や表を引くための時間が長くなって,処理
が遅くなるという問題があった。
SETA instruction: Arithmetic expression SETB instruction: Logical expression SETC instruction: Character expression AIF instruction: Logical expression [Problems to be solved by the invention] In conventional expression analysis processing methods, various expressions such as logical expressions, character expressions, and arithmetic expressions are used. Since it analyzes all expressions in one processing unit, it is necessary to support all kinds of expressions.
For example, since all the operators such as +,-, *, / ,, AND, OR, ... are checked, the dictionary or table required for analysis becomes large, and the time required to look up the dictionary or table becomes long There was a problem that was slow.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は,複数種類の式の間に包含関係が成立する場
合に,解析処理単位を式の種類別に独立に設けて,1つの
処理単位の解析処理機能を小さくすることにより,処理
の高速化を図るものである。
The present invention speeds up processing by providing analysis processing units independently for each type of expression and reducing the analysis processing function of one processing unit when an inclusion relation is established between a plurality of types of expressions. Is intended.

第1図に本発明の原理的構成を示す。 FIG. 1 shows the basic configuration of the present invention.

図において, 10は,式解析処理部であり,ソースプログラム中の式
を解析する。
In the figure, 10 is an expression analysis processing unit, which analyzes expressions in the source program.

11は,式分配制御部であり,入力された式について,
包含関係にある第1種別式,第2種別式,第3種別式の
3つの式の種別を識別し,該当する種別の式解析部に処
理を指示する。
Reference numeral 11 is a formula distribution control unit for the inputted formula,
The three types of expressions, the first type expression, the second type expression, and the third type expression, which have an inclusive relationship, are identified, and the processing is instructed to the expression analysis unit of the corresponding type.

12ないし14は,それぞれ第1種別,第2種別,第3種
別の式解析部である。ここで式間には, 第1種別式⊃第2種別式⊃第3種別式 の包含関係があるものとされる。ただし,第1,第2,第
3の3つの式の種別数は例示的なものであり,3種に限定
されるものではない。
Reference numerals 12 to 14 denote formula analysis units of the first type, the second type, and the third type, respectively. Here, it is assumed that there is an inclusive relation of the first type expression ⊃ the second type expression ⊃ the third type expression between the expressions. However, the number of types of the first, second, and third equations is an example, and the number of types is not limited to three.

15は,共通処理部であり,各式解析部とは独立な処理
を行なう。
A common processing unit 15 performs processing independent of each expression analysis unit.

16−1ないし16−3,17−1,17−2,18,19はそれぞれ呼
び出し情報である。
16-1 to 16-3, 17-1, 17-2, 18, and 19 are call information.

〔作用〕[Action]

第1図に示す構成において, 式分配制御部11は,入力された式について,それが,
第1種別,第2種別,第3種別のいずれに属するかを判
別し,それぞれの種別に応じて,呼び出し情報16−1な
いし16−3を介して対応する式解析部を呼び出し,式の
解析を依頼する。
In the configuration shown in FIG. 1, the expression distribution control unit 11 determines that the input expression is
It is determined which of the first type, the second type, and the third type it belongs to, and according to each type, the corresponding expression analysis unit is called via the call information 16-1 to 16-3 to analyze the expression. Ask.

たとえば,第1種別式解析部12が呼び出された場合,
第1種別式解析部12は,入力された式について,第1種
別式の解析処理を実行する。
For example, when the first type expression analysis unit 12 is called,
The first type expression analysis unit 12 executes a first type expression analysis process for the input expression.

しかしその式中に,第1種別式以外,たとえば第2種
別あるいは第3種別の式が要素として含まれている場合
には,それぞれ呼び出し情報17−1,17−2を用いて,対
応する式解析部にその処理を依頼する。
However, if the expression includes an expression other than the first-type expression, for example, the second-type or the third-type expression, as elements, the corresponding call-expressions 17-1 and 17-2 are used. Request the processing to the analysis unit.

同様にして,呼び出された第2種別式解析部13が解析
中に第2種別式以外の要素を検出したときには,呼び出
し情報18を用いて,第3種別式解析部14に処理を依頼す
る。
Similarly, when the called second type expression analysis unit 13 detects an element other than the second type expression during the analysis, the calling information 18 is used to request the third type expression analysis unit 14 for processing.

第3種別式解析部14が呼び出されると,依頼された式
について第3種別式の解析処理を行なう。第3種別式解
析処理以外の処理が必要となった場合には,呼び出し情
報19を用いて,共通処理部15に処理を依頼する。
When the third type expression analysis unit 14 is called, the third type expression analysis process is performed on the requested expression. When a process other than the third type expression analysis process is required, the call information 19 is used to request the common processing unit 15 to perform the process.

このように,包含関係にある第1種別式,第2種別
式,第3種別式の解析機能を独立させて,上位からの呼
び出しを可能にすることにより,個々の式解析処理は単
純化される。
In this way, by making the analysis functions of the first type expression, the second type expression, and the third type expression that are in the inclusive relationship independent, and allowing them to be called from a higher level, individual expression analysis processing is simplified. It

〔実施例〕〔Example〕

第2図は,本発明の1実施例のプログラム翻訳処理シ
ステムの構成図である。
FIG. 2 is a block diagram of a program translation processing system according to an embodiment of the present invention.

図において,20はソースプログラムが格納されている
ソースファイル,21はプログラム翻訳処理システム,22は
式解析処理部,23は式分配制御部,24は論理式解析部,25
は文字式解析部,26は算術式解析部,27は共通処理部,28
は中間情報格納部,29は4−組データ,30はオブジェクト
プログラムが格納されるオブジェクトファイルである。
In the figure, 20 is a source file in which a source program is stored, 21 is a program translation processing system, 22 is an expression analysis processing section, 23 is an expression distribution control section, 24 is a logical expression analysis section, 25
Is a character expression analysis unit, 26 is an arithmetic expression analysis unit, 27 is a common processing unit, 28
Is an intermediate information storage unit, 29 is 4-group data, and 30 is an object file in which an object program is stored.

本実施例が適用される式には,論理式,文字式,算術
式の3つの種類があり,そしてこれらの式の間には, 論理式 ⊃ 文字式 ⊃ 算術式 の包含関係が存在している。
There are three types of expressions to which this embodiment is applied: a logical expression, a character expression, and an arithmetic expression, and between these expressions, there is an inclusion relation of logical expression ⊃ character expression ⊃ arithmetic expression. There is.

したがって第1図に示されている第1種別式解析部1
2,第2種別式解析部13,第3種別式解析部14が,それぞ
れ第2図の論理式解析部24,文字式解析部25,算術式解析
部26に対応する。次に式解析処理部22の動作について説
明する。
Therefore, the first type expression analysis unit 1 shown in FIG.
2, the second type expression analysis unit 13 and the third type expression analysis unit 14 correspond to the logical expression analysis unit 24, the character expression analysis unit 25, and the arithmetic expression analysis unit 26 of FIG. 2, respectively. Next, the operation of the expression analysis processing unit 22 will be described.

式分配制御部23は,ソースファイル20から取り出され
たソースプログラム中の式を調べ、式に含まれる演算子
+,−,*,/,',AND,OR,・・・や括弧などの記号、被演
算子等を調べて式の基本的な構文を解析し、単位となる
式の切出しと、切出した式の種別とを識別する。そして
演算の順序にしたがって式の種別に対応する式解析部に
分配する。つまり論理式を識別した場合には論理式解析
部24を呼び出して処理を依頼する。同様に,文字式,算
術式を識別したときには,それぞれ文字式解析部25,算
術式解析部26を呼び出して処理を依頼する。
The expression distribution control unit 23 examines an expression in the source program extracted from the source file 20, and includes operators such as +, −, *, /, ', AND, OR, ... And parentheses included in the expression. , The operator is analyzed to analyze the basic syntax of the expression, and the cutout of the expression that is the unit and the type of the cutout expression are identified. Then, it is distributed to the expression analysis unit corresponding to the type of expression according to the order of calculation. That is, when the logical expression is identified, the logical expression analysis unit 24 is called to request the processing. Similarly, when a character expression and an arithmetic expression are identified, the character expression analysis unit 25 and the arithmetic expression analysis unit 26 are called to request processing.

また論理式解析部24が呼び出されて,解析を行なって
いる論理式の要素に,文字式あるいは算術式を検出した
場合には,文字式解析部25あるいは算術式解析部26を呼
び出して処理を依頼する。
Further, when the logical expression analysis unit 24 is called and a character expression or an arithmetic expression is detected in the element of the logical expression being analyzed, the character expression analysis unit 25 or the arithmetic expression analysis unit 26 is called for processing. Request.

文字式解析部25が呼び出されて,解析を行なっている
文字式の要素に算術式を検出した場合には,算術式解析
部26に処理を依頼する。
When the character expression analysis unit 25 is called and an arithmetic expression is detected in an element of the character expression being analyzed, the arithmetic expression analysis unit 26 is requested to perform processing.

論理式解析部24は論理演算子のみの識別および解析機
能をもてばよく,同様に文字式解析部25と算術式解析部
26は,それぞれ文字式演算子と算術演算子との識別およ
び解析機能をもてばよい。
The logical expression analysis unit 24 need only have the identification and analysis function of only logical operators, and similarly, the character expression analysis unit 25 and the arithmetic expression analysis unit.
26 only needs to have a discrimination function and a parsing function between a character expression operator and an arithmetic operator, respectively.

共通処理部27は,上記の各式解析部24,25,26によって
は処理できない独立した共通処理を受け持つ。
The common processing unit 27 is responsible for independent common processing that cannot be processed by the above-described expression analysis units 24, 25, and 26.

各式解析部24,25,26は,解析結果を,固定長の4−組
データ形式で編集し,中間情報格納部28に格納する。式
分配制御部28からの各式解析部の呼び出し、あるいは式
解析部間の呼び出しは演算順序にしたがって行われ,呼
び出し先での処理が終われば呼び出し元に処理が戻され
る。このため、中間情報格納部28に格納される4−組デ
ータの順序も演算順序にしたがうことになる。
Each expression analysis unit 24, 25, 26 edits the analysis result in a fixed-length 4-tuple data format and stores it in the intermediate information storage unit 28. The call of each expression analysis unit from the expression distribution control unit 28, or the call between the expression analysis units is performed according to the calculation order, and when the processing at the call destination is completed, the processing is returned to the calling source. For this reason, the order of the 4-group data stored in the intermediate information storage unit 28 also follows the operation order.

その際,第3図(a)に示すような単項演算形は,付
加情報を挿入して,第3図(b)に示す2項演算形の4
組データに変換される。
At that time, the unary operation form as shown in FIG. 3 (a) is obtained by inserting additional information to obtain the binary operation form 4 shown in FIG. 3 (b).
Converted to group data.

また第4図(a)に示すようた多項演算形は,第4図
(b)に示すような2項演算形の4−組データの連鎖形
式に変換される。なお連鎖の順序は,式の評価順序にし
たがっている。ここでOP,OP1,OP2,…,OPnは演算子,T1,
T2,…,Tnは項(オペランド),R1,R2,…,Rnは結果情報
を表わす。
Further, the polynomial operation type as shown in FIG. 4 (a) is converted into a binary operation type 4-group data chain format as shown in FIG. 4 (b). The order of chaining is based on the evaluation order of expressions. Where OP, OP 1 , OP 2 , ..., OP n are operators, T 1 ,
T 2, ..., T n Section (operand), R 1, R 2, ..., R n represents a result information.

次に中間情報作成処理の具体例として,前述した論理
式の例の場合を以下に示す。なおT1〜T8は、結果を格納
する一時領域を表わしている。
Next, as a specific example of the intermediate information creating process, the case of the above-described logical expression is shown below. Note that T1 to T8 represent temporary areas for storing the results.

このあとは、各々の演算に基づいた演算の実行やオブ
ジェクトの生成が行われる。
After that, execution of operations and generation of objects are performed based on each operation.

このように,各々結果を全て固定長データの中間情報
として格納することにより,式を評価(演算実行)する
際のアドレス計算を簡単化することができ,処理時間が
短縮できる。
In this way, by storing all of the results as intermediate information of fixed-length data, it is possible to simplify the address calculation when evaluating (executing an operation) expression and shortening the processing time.

なお本発明は、プログラム中の3種類の式についての
文法に基づく解析処理を対象とするものである。そのた
め式が処理上意味をもつものであるかどうかを調べる意
味解析についてはここでは説明が省略されている。した
がって式の解析において、たとえば論理式と文字式との
論理積からなる式などの無意味な式が識別された場合に
は、意味解析で文法エラーとされる。
The present invention is intended for the parsing processing based on the grammar for the three types of expressions in the program. Therefore, description of the semantic analysis for checking whether or not the expression has meaning in processing is omitted here. Therefore, if a meaningless expression such as an expression composed of a logical product of a logical expression and a character expression is identified in the analysis of the expression, it is determined as a grammatical error in the semantic analysis.

〔発明の効果〕〔The invention's effect〕

本発明によれば,プログラム翻訳における式解析処理
が大幅に効率化され,プログラム翻訳時間の短縮を可能
にする。
According to the present invention, the expression analysis process in the program translation is significantly improved, and the program translation time can be shortened.

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

第1図は本発明の原理的構成図,第2図は本発明の1実
施例の構成図,第3図は中間情報形式の変換例(その
1)を示す説明図,第4図は中間情報形式の変換例を示
す説明図(その2)である。 第1図中, 10:式解析処理部 11:式分配制御部 12:第1種別式解析部 13:第2種別式解析部 14:第3種別式解析部 15:共通処理部
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of one embodiment of the present invention, FIG. 3 is an explanatory diagram showing an example (part 1) of conversion of an intermediate information format, and FIG. It is explanatory drawing (the 2) which shows the example of information format conversion. In FIG. 1, 10: Expression analysis processing unit 11: Expression distribution control unit 12: First type expression analysis unit 13: Second type expression analysis unit 14: Third type expression analysis unit 15: Common processing unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】式種別間に予め所定の包含関係が規定され
ている複数種別の式を含むプログラムの翻訳処理システ
ムにおいて, 上記複数種別の式の各種別ごとに式を独立して解析する
複数の式解析部(12,13,14)と, プログラム中に出現する式の種別を識別し,該当する式
種別の式解析部に解析を依頼する式分配制御部(11)と
をそなえ, 上記複数の式解析部(12,13,14)のうち包含関係におい
て上位のレベルにある式解析部(12,13)は,依頼され
た式の要素中に包含関係において下位レベルにある式種
別の式を検出した場合,当該下位レベルの種別の式を解
析する式解析部(13,14)にその下位レベルの種別の式
の解析を依頼することを特徴とする式解析処理方式。
1. A translation processing system for a program including a plurality of types of expressions in which a predetermined inclusion relation is defined in advance between the expression types, and a plurality of expressions for independently analyzing the expressions for each of the plurality of types of expressions. The expression analysis unit (12,13,14) and the expression distribution control unit (11) that identifies the type of expression that appears in the program and requests the expression analysis unit of the applicable expression type for analysis. The expression analysis unit (12,13) at the higher level of the inclusion relation among the plurality of expression analysis units (12,13,14) indicates that the expression type of the expression type at the lower level of the inclusion relation is included in the elements of the requested expressions. An expression analysis processing method characterized in that, when an expression is detected, the expression analysis unit (13, 14) for analyzing the expression of the lower level type is requested to analyze the expression of the lower level type.
JP4564686A 1986-03-03 1986-03-03 Expression analysis processing method Expired - Fee Related JPH0820961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4564686A JPH0820961B2 (en) 1986-03-03 1986-03-03 Expression analysis processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4564686A JPH0820961B2 (en) 1986-03-03 1986-03-03 Expression analysis processing method

Publications (2)

Publication Number Publication Date
JPS62203237A JPS62203237A (en) 1987-09-07
JPH0820961B2 true JPH0820961B2 (en) 1996-03-04

Family

ID=12725136

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4564686A Expired - Fee Related JPH0820961B2 (en) 1986-03-03 1986-03-03 Expression analysis processing method

Country Status (1)

Country Link
JP (1) JPH0820961B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
情報処理,Vol.11,No.6,1970,社団法人情報処理学会P.323〜328

Also Published As

Publication number Publication date
JPS62203237A (en) 1987-09-07

Similar Documents

Publication Publication Date Title
US5142681A (en) APL-to-Fortran translators
WO1990001738A1 (en) Machine process for translating programs in binary machine language into another binary machine language
CN112230895A (en) EL expression analysis method, device, equipment and storage medium
JPH11249903A (en) Abstract syntax tree processing method, computer readable storage medium recording abstract syntax tree processing program, computer readable storage medium recording abstract syntax tree data, and abstract syntax tree processing
CN113835688A (en) An object encapsulation method for scientific computing language interpreter
Richards The BCPL programming manual
JPH0820961B2 (en) Expression analysis processing method
WO2023138078A1 (en) Method and apparatus for parsing programming language, and non-volatile storage medium
JPH09288580A (en) Device and method for optimizing source program
JP3003459B2 (en) Program creation support device
JPH0193826A (en) Dynamic step counting method for high-level language programs
JPH0561687A (en) Processing system for compiler
WO1997007452A1 (en) Programmable compiler
JP3370243B2 (en) Compilation method and apparatus
JPH05143357A (en) Automatic parallelized processing method for program
JP2500515B2 (en) CASE structure processing method that allows range specification
JP2909185B2 (en) Assembler processing method
JP2555011B2 (en) Vector data processing method
CN118778949A (en) A complex event rule description method and compilation system based on Flink
JPH021027A (en) Compiling system for compressed source program
EP0252229A2 (en) Apl-to-fortran translator
JPH05341973A (en) Program analysis device
JPH01304539A (en) Production system for function level simulator
JPH0795275B2 (en) Compile processor
JPH05100866A (en) Compile/link system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees