JPH0782472B2 - Command analysis processor - Google Patents
Command analysis processorInfo
- Publication number
- JPH0782472B2 JPH0782472B2 JP60291293A JP29129385A JPH0782472B2 JP H0782472 B2 JPH0782472 B2 JP H0782472B2 JP 60291293 A JP60291293 A JP 60291293A JP 29129385 A JP29129385 A JP 29129385A JP H0782472 B2 JPH0782472 B2 JP H0782472B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- operand
- flag
- information
- name
- 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
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第9図、第10図) 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作用 実施例 (1)本発明の構成(第2図〜第4図) (2)実施例の動作(第5図〜第8図) 発明の効果 〔概要〕 コマンド名テーブルと、オペランド・テーブルと、フラ
グ・テーブルを具備し、コマンドをチエックするとき、
まずコマンド名テーブルよりコマンド名を順次出力して
その有無をチエックし、次にそのコマンド名のオペラン
ド・テーブルを読出してコマンドのオペランドがこのオ
ペランド・テーブルより読出したオペランド名と比較
し、それからフラグ・テーブルを読出してそのフイール
ド項目に沿うものか否かをチエックする。DETAILED DESCRIPTION OF THE INVENTION [Table of Contents] Outline Industrial field of application Conventional technology (FIGS. 9 and 10) Problems to be solved by the invention Means for solving problems (FIG. 1) Action Embodiment (1) Configuration of the present invention (FIGS. 2 to 4) (2) Operation of the embodiment (FIGS. 5 to 8) Effect of the invention [Overview] Command name table, operand table, With a flag table, when checking commands,
First, the command name is sequentially output from the command name table, the presence or absence of the command is checked, then the operand table of the command name is read, the operand of the command is compared with the operand name read from this operand table, and then the flag Read the table and check if it is in line with the field item.
本発明はコマンド解析処理装置に係り、特に入力したコ
マンドが正確なものか否かをきわめて簡単に、自動的に
チエックするものに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a command analysis processing device, and more particularly to a command analysis processing device that automatically checks whether or not an input command is accurate.
データ処理装置を制御するとき各種コマンドが使用され
ている。コマンドのタイプには大きくわけて、第9図に
示す如く、(1)コマンド名のみでオペランドが1つも
ない場合、(2)オペランド1が必須であるが、オペラ
ンド2は省略可能な場合、(3)オペランド1が必須で
しかも「=」の次にサブパラメータがあり、オペランド
2が省略可でサブパラメータがある場合、(4)前記の
混在の場合の4つあり、またオペランドには、複数のコ
マンド名に共通のものがある。Various commands are used to control the data processing device. As shown in FIG. 9, when the command type is broadly divided into (1) only the command name and no operand, (2) the operand 1 is indispensable, but the operand 2 can be omitted ( 3) When operand 1 is mandatory and there is a sub parameter after "=", and operand 2 is optional and there is a sub parameter, (4) There are four cases of the above mixture, and there are multiple operands. Have common command names.
コマンドの1例として、第10図に示す如きものがある。One example of the command is shown in FIG.
この場合、CREATEがCREATであったり、最高1000レコー
ドしか処理できないときに10000RECと書いてある場合に
は、エラーになるので、これを事前にチエックすること
が必要となる。In this case, if CREATE is CREATE or 10000REC is written when only 1000 records can be processed, an error will occur, so it is necessary to check this in advance.
このようにコマンドのタイプには複数の種類があり、あ
るコマンドでは存在するキーワードが他のコマンドでは
その存在がエラーの対象となったり、キーワードのみで
サブパラメータが存在しない場合、またそれぞれのコマ
ンドでオペランドやサブパラメータの省略が可能か否
か、1つのキーワードに対してのサブパラメータの形式
が複数存在する場合など、色々なタイプのケースが存在
する。したがってこれらを自動的に処理することができ
ず、人間が目視チエックしていた。In this way, there are multiple types of commands.In some commands, the existence of a keyword causes an error in the existence of another command, or when there is only a keyword and no sub-parameter exists. There are various types of cases, such as whether or not operands and subparameters can be omitted, and there are multiple subparameter formats for one keyword. Therefore, these cannot be automatically processed, and humans have visually checked them.
本発明の目的は前記の問題点を改善するために、コマン
ドを作成したときこれが正しいものか否かチエックする
コマンド解析処理装置を提供するものである。SUMMARY OF THE INVENTION It is an object of the present invention to provide a command analysis processing device for checking whether or not a command is correct when it is created in order to improve the above problems.
前記の問題点を解決するために本発明では、第1図に示
す如く、コマンド名テーブル1とオペランド・テーブル
2と、フラグ・テーブル3を用意し、まず、作成したコ
マンド(第10図の例ではCREATE)が正確か否かをこのコ
マンド名テーブル1に登録してあるコマンド名と順次比
較する。これによりCREATというように記入されたと
き、コマンドエラー有りとしてチエックできる。次にオ
ペランド部(第10図の例ではFSIZEからIDまで)をとり
出してオペランド(FSIZE、TYPE)を1個ずつオペラン
ド・テーブル2に記入してある前記コマンドに対する使
用可能なオペランドと比較して形式チエックを行い不一
致のときエラーとする。それからオペランドをフラグ・
テーブル3と照合し、サブパラメータ長が規定通りか、
必須パラメータが含まれているか等をチエックする。In order to solve the above problems, the present invention prepares a command name table 1, an operand table 2, and a flag table 3 as shown in FIG. Then, whether the CREATE) is correct or not is sequentially compared with the command names registered in the command name table 1. This allows you to check that there is a command error when you write something like CREATE. Next, the operand part (FSIZE to ID in the example of FIG. 10) is taken out, and the operands (FSIZE, TYPE) are entered one by one in the operand table 2 and compared with the available operands for the command. Check the format and generate an error if they do not match. Then flag the operand
Check if the subparameter length is as specified by checking with Table 3.
Check whether required parameters are included.
本発明によればコマンドを前記コマンド名テーブル1、
オペランド・テーブル2、フラグ・テーブル3と順次照
合することによりその正当性をきわめて簡単にチエック
することができる。According to the invention, the command is the command name table 1,
By checking the operand table 2 and the flag table 3 sequentially, the validity can be checked very easily.
(1) 本発明の構成 本発明の構成を第2図〜第4図にもとづき説明する。 (1) Configuration of the Invention The configuration of the invention will be described with reference to FIGS. 2 to 4.
第2図は本発明の一実施例構成図、第3図はコマンド解
析に使用するコマンド名テーブル、オペランド・テーブ
ル、フラグ・テーブルの説明図、第4図は各テーブルの
構成関係説明図である。FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is an explanatory diagram of a command name table, an operand table, and a flag table used for command analysis, and FIG. 4 is a structural relationship explanatory diagram of each table. .
第2図において第1図と同符号部は同一部分を示し、4
はメモリであってコマンド名テーブル1、オペランド・
テーブル2、フラグ・テーブル3等が設けられるもの、
5はコマンド入力部あってコマンドが入力されるもの、
10はプロセッサであって入力データ保持部11、アクセス
制御部12、コマンド・チエック部13、オペランド・チエ
ック部14、サブパラメータ・チエック部15、制御部16等
を具備するものである。In FIG. 2, the same parts as in FIG.
Is a memory, command name table 1, operand
Table 2, flag table 3, etc. provided,
5 is a command input section for inputting commands,
A processor 10 includes an input data holding unit 11, an access control unit 12, a command check unit 13, an operand check unit 14, a sub-parameter check unit 15, a control unit 16 and the like.
コマンド名テーブル1は、第3図(a)に示す如く、コ
マンド名と、そのコマンドに対するオペランド・テーブ
ルおよびフラグ・テーブルのアドレスが記入されてい
る。このコマンド名テーブル1は1−1、1−2、1−
3の3つのフイールドを有し、フイールド1−1にはコ
マンド名が文字列で設定されており、フイールド1−2
にはオペランド・テーブル2へのアドレスが設定されて
おり、フイールド1−3にはフラグ・テーブル3へのア
ドレスが設定されている。コマンド名テーブル1とオペ
ランド・テーブル2、フラグ・テーブル3の関係を第4
図に示す。In the command name table 1, as shown in FIG. 3A, the command name and the addresses of the operand table and the flag table for the command are entered. This command name table 1 is 1-1, 1-2, 1-
It has three fields of 3 and the command name is set in the field of field 1-1 by field 1-2.
Is set to the operand table 2 and fields 1-3 are set to the flag table 3. The relationship between command name table 1, operand table 2 and flag table 3 is fourth
Shown in the figure.
オペランド・テーブル2は第3図(b)に示す如く、オ
ペランド名とそのオペランドに対する省略値を持ったテ
ーブルであり、このテーブルは各コマンド毎に1つずつ
ある。このオペランド・テーブル2は2−1、2−2の
2つのフイールドを有し、フイールド2−1にはオペラ
ンド名が設定されており、フイールド2−2にはオペラ
ンドの省略値つまりコマンドにそのオペランドが記述さ
れなかった場合の省略値が設定されている。そしてオペ
ランドが記述された場合はその値をこのフイールド2−
2に設定する。後述するように、コマンドを実行する場
合、このオペランド・テーブルをみながらこのコマンド
の実行が行われる。As shown in FIG. 3B, the operand table 2 is a table having operand names and default values for the operands, and there is one table for each command. The operand table 2 has two fields 2-1 and 2-2, and an operand name is set in the field 2-1. In field 2-2, the default value of the operand, that is, the operand in the command. The default value is set if is not specified. If the operand is described, its value is
Set to 2. As will be described later, when executing a command, this command is executed while looking at this operand table.
フラグ・テーブル3はコマンドを解析中のオペランドに
関する情報がフラグとして設定されるテーブルである。
このフラグ・テーブル3は3−1〜3−5の5つのフイ
ールドを有し、フイールド3−1にはオペランド名が設
定されており、フイールド3−2には指定フラグすなわ
ちオペランドがそのコマンドに対して記述可か否かを指
定するフラグが設定されている。この指定フラグがオフ
の場合にそのオペランドが記述された場合はエラーとな
る。The flag table 3 is a table in which information regarding operands during command analysis is set as flags.
The flag table 3 has five fields 3-1 to 3-5, an operand name is set in the field 3-1, and a designation flag, that is, an operand in the field 3-2 is assigned to the command. Flag is set to specify whether or not it can be described. An error will occur if this operand is described when this specification flag is off.
フイールド3−3にはサブパラメータ長つまりオペラン
ドの「=」以下のサブパラメータの最大長が設定されて
いる。この値が「0」のときそのオペランドにはサブパ
ラメータが記述できない。In the field 3-3, the subparameter length, that is, the maximum length of the subparameter equal to or less than "=" of the operand is set. When this value is "0", the sub parameter cannot be described in the operand.
フイールド3−4には重複フラグつまり同じオペランド
が2回以上記述されているか否かを判断するためのフラ
グであり、2個以上記述されているときエラーとするた
めに使用されるものである。フイールド3−5には必須
フラグつまりオペランドの記述が必須であることを示す
フラグが記入されている。この必須フラグの記入されて
いるオペランドが記述されていないときエラーとなる。The field 3-4 is a duplication flag, that is, a flag for determining whether or not the same operand is described more than once, and is used for making an error when more than one is described. A mandatory flag, that is, a flag indicating that the description of the operand is mandatory is written in the field 3-5. An error will occur if the operand with this mandatory flag is not described.
入力データ保持部11は、コマンド入力部5から入力され
たコマンドを一時保持するものである。The input data holding unit 11 temporarily holds the command input from the command input unit 5.
アクセス制御部12は、入力データ保持部11に保持されて
いるコマンドが正しいか否かを解析するために必要な、
コマンド名テーブル1、オペランド・テーブル2、フラ
グ・テーブル3等にアクセスする処理を行うものであ
る。The access control unit 12 is necessary for analyzing whether the command held in the input data holding unit 11 is correct,
The processing is to access the command name table 1, the operand table 2, the flag table 3 and the like.
コマンド・チエック部13は、入力データ保持部11に保持
されているコマンド名がコマンド名テーブル1のフイー
ルド1−1に記入されているコマンド名の1つと一致す
るか否かをチエックするものである。The command check unit 13 checks whether the command name held in the input data holding unit 11 matches one of the command names written in the field 1-1 of the command name table 1. .
オペランド・チエック部14は、入力データ保持部11に保
持されているコマンドのオペランドが、オペランド・テ
ーブル2のフイールド2−1に記入されているか否かを
チエックするものであり、このフイールド2−1を順次
読出して一致するか否かをチエックする。The operand check unit 14 checks whether or not the operand of the command held in the input data holding unit 11 is written in the field 2-1 of the operand table 2, and this field 2-1 Are sequentially read to check whether they match.
サブパラメータ・チエック部15は入力データ保持部11に
保持されているコマンドのオペランドのサブパラメータ
がフラグ・テーブル3に記入されているフラグと対応し
ているか否かをチエックするものである。The sub-parameter check unit 15 checks whether the sub-parameter of the command operand held in the input data holding unit 11 corresponds to the flag written in the flag table 3.
制御部16は、コマンド入力部5から入力されたコマンド
を解析するための各種制御を行うものであって、例えば
アクセス制御部12に対してコマンド名テーブル1からコ
マンド名を順次読出してこれをコマンド・チエック部13
に送出して、入力データ保持部11に保持されたコマンド
名が正しいものか否かをチエックさせる等の如き制御を
行う。The control unit 16 performs various controls for analyzing the command input from the command input unit 5. For example, the control unit 16 sequentially reads command names from the command name table 1 to the access control unit 12 and outputs the command names to the access control unit 12.・ Check section 13
To the input data holding unit 11 to check whether the command name held in the input data holding unit 11 is correct or not.
(2) 実施例の動作 第2図に示した本発明の一実施例構成の動作を第5図〜
第8図にもとづき、他図を参照しながら、第6図に示す
コマンドの例について説明する。なお第6図において、
ADDPSはあるフアイルに他のフアイルからデータを登録
する場合のコマンドであり、EPFMEMは登録される方のフ
アイルのメンバー名を示し、REPはリプレースを指示す
るものであり、CLASSはEPFMEMのメンバーの種別を示す
ものであり、この例ではデータDATという種別を示すも
のである。これはABCというメンバー名のDATという区分
に登録せよというコマンドを示している。(2) Operation of Embodiment FIG. 5 shows the operation of the embodiment of the present invention shown in FIG.
Based on FIG. 8, an example of the command shown in FIG. 6 will be described with reference to other drawings. In addition, in FIG.
ADDPS is a command for registering data from one file to another file, EPFMEM indicates the member name of the file to be registered, REP indicates replacement, and CLASS indicates the EPFMEM member type. In this example, the type is data DAT. This shows the command to register in the DAT section of the ABC member name.
初めにコマンド解析を行なうとき、まずオペランド・
テーブル2のフイールド2−2つまりオペランドの省略
値領域と、フラグ・テーブル3のフイールド3−4つま
り重複フラグ領域を初期化する。オペランド・テーブル
およびフラグ・テーブルはコマンド名テーブルに記入さ
れたコマンド名に対応して設けられており、ADDPSに対
しては、第7図に示す如く、オペランド・テーブル2お
よびフラグ・テーブル3が初期化される。オペランド・
テーブル2において、MEMBERとEPFMEMに対してはブラン
クが記入され、CLASSにたいしてはLODが、CVTとREPに
対してはそれぞれ0が記入される。なおここでブランク
は何が記入されてあってもよいということである。ま
たフラグ・テーブル3のオペランド名はオペランド・テ
ーブルのオペランド名と同じ順で記入されており、その
重複フラグ領域はいずれも0が初期値として記入される
ことになる。When performing command analysis for the first time, first
The field 2-2 of the table 2, that is, the default value area of the operand, and the field 3-4 of the flag table 3, that is, the overlap flag area are initialized. The operand table and the flag table are provided corresponding to the command names entered in the command name table. For ADDPS, the operand table 2 and the flag table 3 are initially set as shown in FIG. Be converted. operand·
In Table 2, blanks are entered for MEMBER and EPFMEM, LOD is entered for CLASS, and 0 is entered for CVT and REP. Note that blank here means that anything can be entered. The operand names of the flag table 3 are written in the same order as the operand names of the operand table, and 0 is written as an initial value in each of the duplicate flag areas.
ところでコマンド入力部5から入力された、第6図に
示す如き、コマンドのうち、コマンド名部分(ADDPS)
がコマンド・チエック部13に伝達される。またコマンド
名テーブル1のフイールド1−1がアクセス制御部12に
より読出されて順次コマンド・チエック部13において比
較される。このとき入力データ保持部11に保持されたコ
マンド名が前記フイールド1−1に記入されているコマ
ンド名と一致するものがなければ入力データ保持部11に
保持されたコマンドはエラーと判別され、制御部16はエ
ラー処理を行う。しかし合致するものが検出されると
き、コマンド・チエック部13はこれを制御部16に報告す
るので、制御部16はこの合致したコマンド名のフイール
ド1−2、1−3をアクセス制御部12に読出させ、オペ
ランド・テーブル2およびフラグ・テーブル3のアドレ
スを知る。By the way, the command name portion (ADDPS) of the command input from the command input unit 5 as shown in FIG.
Is transmitted to the command / check section 13. Further, the field 1-1 of the command name table 1 is read by the access control unit 12 and sequentially compared in the command check unit 13. At this time, if there is no command name held in the input data holding unit 11 that matches the command name written in the field 1-1, the command held in the input data holding unit 11 is determined to be an error, and control is performed. The unit 16 performs error handling. However, when a match is detected, the command check section 13 reports this to the control section 16, so that the control section 16 sends the matched field names 1-2 and 1-3 to the access control section 12. Read and know the addresses of operand table 2 and flag table 3.
次に制御部16はオペランド・チエック部14を動作さ
せ、入力データ保持部11より初めの「=」(「=」がな
ければ、)の前までのオペランド「MEMBER」をオペラン
ド・チエック部14に出力させる。もしコマンドが第9図
(1)の形式のとき、あるいはすべてのオペランドに対
するチエックが終了して取出すべきオペランドがなけれ
ば、制御部16はチエック終了処理に移行し、コマンドの
処理(実行)を行うことになる。Next, the control unit 16 causes the operand check unit 14 to operate, and the operand “MEMBER” up to the first “=” (if there is no “=”) from the input data holding unit 11 is input to the operand check unit 14. Output. If the command is in the format shown in FIG. 9 (1), or if the check for all operands is completed and there is no operand to be taken out, the control unit 16 shifts to the check end process and executes (executes) the command. It will be.
しかし取出すべきオペランドがあれば、制御部16は前
記にて得たアドレスにもとづき、アクセス制御部12に
対して当該コマンドのオペランド・テーブル2のフイー
ルド2−1を読出し、オペランド・チエック部14に伝達
する。これによりオペランド・チエック部14は入力デー
タ保持部11に保持されたコマンドのオペランドがオペラ
ンド・テーブル2のフイールド2−1に記入されている
オペランド中に合致するものがあるか否かをチエック
し、その結果を制御部16に報告する。合致するものがな
ければエラー処理を行い、合致するものがあれば、制御
部16は前記にて得たフラグ・テーブル3のフイルド3
−2を読出し、そのオペランドに対する指定フラグがオ
ンでなければエラー処理を行い、オンであればフイール
ド3−4の重複フラグを読出す。このときそのオペラン
ドに対する重複フラグがすでにオンになっていれば、先
に同一オペランドが存在したことを示しているのでエラ
ー処理を行い、またオンでなければこれをオンにする。However, if there is an operand to be taken out, the control unit 16 reads the field 2-1 of the operand table 2 of the command to the access control unit 12 based on the address obtained above, and transfers it to the operand check unit 14. To do. Accordingly, the operand check unit 14 checks whether or not the operand of the command held in the input data holding unit 11 matches among the operands written in the field 2-1 of the operand table 2. The result is reported to the control unit 16. If there is no match, error processing is performed. If there is a match, the control unit 16 controls the field 3 of the flag table 3 obtained above.
-2 is read, error processing is performed if the designated flag for that operand is not on, and if it is on, the duplication flag of field 3-4 is read. At this time, if the duplicate flag for that operand has already been turned on, it means that the same operand existed earlier, so error processing is performed, and if it is not turned on, this is turned on.
それからフラグ・テーブル3のフイールド3−3を読
出し当該オペランドのサブパラメータ長が零か否かチエ
ックする。例えばオペランド「REP」のように零であれ
ばオペランド・テーブル2のフイールド2−2にオペラ
ンドの指定があった旨の情報として、例えば第8図に示
す如く、「1」を設定する。また前記フイールド3−3
が零でなければ、オペランドの「=」以下の情報(第6
図のオペランドEPFMEMの例では「ABC」)つまりサブパ
ラメータをフイールド2−2に設定する。Then, the field 3-3 of the flag table 3 is read to check whether the subparameter length of the operand is zero. For example, if the operand "REP" is zero, for example, "1" is set as information indicating that the operand is specified in the field 2-2 of the operand table 2 as shown in FIG. Also, the field 3-3
If is not zero, information below "=" of the operand (6th
In the example of the operand EPFMEM in the figure, "ABC"), that is, the subparameter is set to the field 2-2.
このようにして1つのオペランドに対するチエックが
終了すると、制御部16はチエックずみのオペランドにマ
ークを付与し、未チエックのオペランドREPおよびCLASS
に対しても順次同様の処理を行う。このようにして、第
6図のコマンドに対するチエックが終了したとき、オペ
ランド・テーブル2およびフラグ・テーブル3は、第8
図に示す如き状態となる。When the check on one operand is completed in this way, the control unit 16 marks the operands that have been checked, and checks the unchecked operands REP and CLASS.
The same process is sequentially performed on the. In this way, when the check for the command of FIG. 6 is completed, the operand table 2 and the flag table 3 are
The state is as shown in the figure.
このとき、フラグ・テーブル3のフイールド3−5が
オンであるにもかかわらずフイールド3−4がオフの場
合は、そのコマンドにおける必須のオペランドが記述さ
れていないのでエラーとする。At this time, when the field 3-5 of the flag table 3 is on but the field 3-4 is off, it is an error because an essential operand in the command is not described.
このようにしてコマンド入力部5から入力されたコマ
ンドが正常であると判断されたとき、そのコマンドの処
理がオペランド・テーブル2を参照して行われることに
なる。When it is determined that the command input from the command input unit 5 is normal, the processing of the command is performed with reference to the operand table 2.
なお、前記説明では、オペランドが合致するか否かのチ
エックをオペランド・テーブル2を使用して行う例につ
いて説明したが、勿論フラグ・テーブル3を使用して行
うこともできる。In the above description, an example of checking whether or not the operands match with each other using the operand table 2 has been described, but it is also possible to use the flag table 3 as a matter of course.
本発明によればコマンドのエラーチエックを、一連のコ
マンドに対するエラーチエック、正当性のチエック等が
前記各テーブルを参照することにより容易に行うことが
できる。またコマンドの記述の文法に変更があっても、
テーブルのフラグを操作するのみでこれに対応できる。
したがって、各種のコマンドに対してそれに適した解析
処理を容易に行うことができる。また入力されたコマン
ドにもとづいてサブパラメータ情報をオペランド・テー
ブルの省略値情報欄に設定できるので、このオペランド
・テーブルを以後のコマンド実行処理に提供することが
できる。According to the present invention, error checking of commands can be easily performed by checking error checking, validity checking, etc. for a series of commands in each of the tables. Also, even if there is a change in the syntax of the command description,
This can be dealt with simply by manipulating the flags in the table.
Therefore, it is possible to easily perform analysis processing suitable for various commands. Further, since the subparameter information can be set in the default value information column of the operand table based on the input command, this operand table can be provided to the subsequent command execution processing.
第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図はコマンド名テーブル、オペランド・テーブル、
フラグ・テーブル説明図、 第4図は各テーブルの構成関係説明図、 第5図は本発明のコマンド解析動作説明図、 第6図は第7図および第8図の各テーブルが使用される
コマンドの一例、 第7図は各テーブルの初期化状態説明図、 第8図はコマンド解析後の各テーブルの状態、 第9図はコマンド形式説明図、 第10図はコマンドの一例を示す。 1……コマンド名テーブル 2……オペランド・テーブル 3……フラグ・テーブル、4……メモリ 5……コマンド入力部、10……プロセッサ 11……入力データ保持部 12……アクセス制御部 13……コマンド・チエック部 14……オペランド・チエック部 15……サブパラメータ・チエック部 16……制御部FIG. 1 is a diagram for explaining the principle of the present invention, FIG. 2 is a structural diagram of an embodiment of the present invention, and FIG. 3 is a command name table, an operand table,
Flag table explanatory diagram, FIG. 4 is an explanatory diagram of the configuration relationship of each table, FIG. 5 is an explanatory diagram of the command analysis operation of the present invention, and FIG. 6 is a command using each table of FIG. 7 and FIG. FIG. 7 is an explanatory diagram of the initialization state of each table, FIG. 8 is the state of each table after command analysis, FIG. 9 is an explanatory diagram of the command format, and FIG. 10 is an example of the command. 1 ... Command name table 2 ... Operand table 3 ... Flag table, 4 ... Memory 5 ... Command input section, 10 ... Processor 11 ... Input data holding section 12 ... Access control section 13 ... Command check section 14 …… Operand check section 15 …… Sub-parameter check section 16 …… Control section
───────────────────────────────────────────────────── フロントページの続き (72)発明者 網代 邦子 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 昭58−70361(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kuniko Ajiro 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Fujitsu Limited (56) Reference JP-A-58-70361 (JP, A)
Claims (1)
るオペランド・テーブルへのアドレス情報と、該コマン
ド名に対応するフラグ・テーブルへのアドレス情報の組
を複数保持するコマンド名テーブル(1)と、 オペランド情報と該オペランドの省略値情報の組を複数
保持するオペランド・テーブル(2)と、 オペランド情報と、該オペランドが対応するコマンドに
対して記述可か否かを指定する指定フラグ情報と、該オ
ペランドに付随するサブパラメータの最大長を指定する
サブパラメータ長情報と、該オペランドが重複して記述
されているか否かを判断するための重複フラグ情報と、
該オペランドの記述が必須であることを示す必須フラグ
情報の組を複数保持するフラグ・テーブル(3)と、 コマンドを入力するコマンド入力手段(5)と、 入力されたコマンドのコマンド名が正当か否かをチエッ
クするコマンド・チエック手段(13)と、 入力されたコマンドのオペランド部分が正当か否かをチ
エックするオペランド・チエック手段(14)と、 入力されたコマンドのサブパラメータ部分が正当か否か
をチエックするサブパラメータチエック手段(15)を具
備し、 入力されたコマンドを少なくともコマンド名テーブル
(1)およびフラグ・テーブル(3)の内容と照合を行
うことによりその正当性を解析し、 さらに入力されたコマンドにもとづいてサブパラメータ
情報をオペランド・テーブル(2)の省略値情報欄に設
定し、該オペランド・テーブル(2)を以後のコマンド
実行処理に提供せしめるよう処理することを特徴とする
コマンド解析処理装置。1. A command name table (1) holding a plurality of sets of command name information, address information to an operand table corresponding to the command name, and address information to a flag table corresponding to the command name. An operand table (2) that holds a plurality of sets of operand information and default value information of the operand, operand information, and designated flag information that designates whether or not the operand can be described in the corresponding command , Sub-parameter length information that specifies the maximum length of a sub-parameter associated with the operand, and duplication flag information for determining whether the operand is described redundantly,
A flag table (3) holding a plurality of sets of essential flag information indicating that the description of the operand is essential, command input means (5) for inputting a command, and whether the command name of the input command is valid A command check means (13) for checking whether or not an operand check means (14) for checking whether an operand portion of an input command is valid, and a subparameter portion for an input command are valid or not The sub-parameter check means (15) for checking whether or not is provided, and the validity of the inputted command is analyzed by checking at least the contents of the command name table (1) and the flag table (3). Set the subparameter information in the default value information column of the operand table (2) based on the entered command. Command analysis processing apparatus characterized by processing that allowed to provide the operand table (2) for subsequent command execution processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60291293A JPH0782472B2 (en) | 1985-12-24 | 1985-12-24 | Command analysis processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60291293A JPH0782472B2 (en) | 1985-12-24 | 1985-12-24 | Command analysis processor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62150432A JPS62150432A (en) | 1987-07-04 |
| JPH0782472B2 true JPH0782472B2 (en) | 1995-09-06 |
Family
ID=17767008
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60291293A Expired - Lifetime JPH0782472B2 (en) | 1985-12-24 | 1985-12-24 | Command analysis processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0782472B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4854058B2 (en) * | 2004-03-31 | 2012-01-11 | 株式会社国際電気通信基礎技術研究所 | General-purpose input data inspection device and program |
| EP3585269B1 (en) * | 2017-02-22 | 2021-07-28 | Koninklijke Philips N.V. | Remotely controlled ultrasonic imaging system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5870361A (en) * | 1981-09-29 | 1983-04-26 | Fujitsu Ltd | Input controlling system |
-
1985
- 1985-12-24 JP JP60291293A patent/JPH0782472B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62150432A (en) | 1987-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0630066B2 (en) | Table type language translation method | |
| JPH0782472B2 (en) | Command analysis processor | |
| JP2728504B2 (en) | Input statement checker | |
| JP2571492B2 (en) | How to detect correction points in multiple programs | |
| JPH03161844A (en) | Spelling correcting system | |
| JP2508193B2 (en) | Registered text conversion device | |
| JPS5894041A (en) | Debug backup device for high-class language | |
| JPH0245837A (en) | Unprepared label detecting method | |
| JPS63201734A (en) | Data processor testing system | |
| JPH04270422A (en) | Precompile processing system | |
| JPS61105590A (en) | Data display system | |
| JPH01205331A (en) | Large-scale program link system | |
| JPH04360240A (en) | Diagnostic system for source program | |
| JPH0468446A (en) | Debugging supporting device | |
| JPS6367693B2 (en) | ||
| JPH01100628A (en) | Program linkage method | |
| JPH03196240A (en) | data processing equipment | |
| JPH0690669B2 (en) | Character string manipulation instruction compilation processing method | |
| JPH02260042A (en) | Data reference resolving system | |
| JPH04246726A (en) | Module specification inspection system | |
| JPH02222032A (en) | Optimization system for addition/subtraction instruction | |
| JPH03100732A (en) | Error detection processing system for storage coupling | |
| JPH06187214A (en) | Table format specification creation device and program creation device | |
| JPH027121A (en) | Command input control system for program | |
| JPH02178845A (en) | Precompiling system for data base operation language |