JPH01194053A - Processing system for command procedure - Google Patents

Processing system for command procedure

Info

Publication number
JPH01194053A
JPH01194053A JP1735388A JP1735388A JPH01194053A JP H01194053 A JPH01194053 A JP H01194053A JP 1735388 A JP1735388 A JP 1735388A JP 1735388 A JP1735388 A JP 1735388A JP H01194053 A JPH01194053 A JP H01194053A
Authority
JP
Japan
Prior art keywords
command
procedure
intermediate language
command procedure
processing
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
JP1735388A
Other languages
Japanese (ja)
Inventor
Hiroshige Kawachi
河内 廣繁
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1735388A priority Critical patent/JPH01194053A/en
Publication of JPH01194053A publication Critical patent/JPH01194053A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a command procedure processing time by executing analytical processing prior to the arrival of a command procedure execution request and preliminarily converting each command to intermediate language. CONSTITUTION:A command preprocessor 2 analyzes a command procedure 1 and forms a command intermediate language 3. A command shell 4 executes command processing based on the formed command intermediate language 3. At the time of arrival of the command procedure execution request, only the intermediate language may be executed and the command procedure processing time can be shortened correspondingly to the unnecessary time of command analysis.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、処理時間の高速化を図ることができるコマ
ンドプロシジャの処理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a command procedure processing method that can speed up processing time.

(従来の技術) コマンドプロシジャとは、コンピュータに対する処理の
指示(以下、コマンドと称する)を複数個記述した文字
列のファイルである。
(Prior Art) A command procedure is a character string file that describes a plurality of processing instructions (hereinafter referred to as commands) for a computer.

一般に、コマンドはコマンドシェルと呼ばれるプログラ
ムによって処理が行われる。コマンドシェルは、入力さ
れたコマンドを解析して、それが正常であれば、指定さ
れた処理を実行する。
Generally, commands are processed by a program called a command shell. A command shell analyzes the input command and, if it is normal, executes the specified process.

コマンドは、人間系とコンピュータとの対話時に使用さ
れる言語であり、その意味で通常言われているプログラ
ムとは異なる。
A command is a language used when humans interact with a computer, and in that sense it is different from what is normally called a program.

コマンド列をコマンドプロシジャとして予め作成してお
けば、コマンド名の変わりにコマンドプロシジャ名をコ
マンドシェルに与えることにより、登録しである一連の
コマンド列が自動的に実行され、オペレータの入力操作
を効率良く行うことができる。殊に、コマンドプロシジ
ャに登録されているコマンドの数が多いほど、コマンド
入力の手間が省ける。
If you create a command sequence as a command procedure in advance, by giving the command procedure name to the command shell instead of the command name, the registered command sequence will be automatically executed, making the operator's input operation more efficient. can do well. In particular, the more commands registered in a command procedure, the more time and effort it takes to input commands.

近年、コマンド機能の充実により、プログラム作成の代
わりにコマンドプロシジャで目的の処理を実現すること
が可能となっており、これが多用される傾向にある。
In recent years, with the enhancement of command functions, it has become possible to implement desired processing by using command procedures instead of creating programs, and this is becoming increasingly used.

第5図に示されるように、従来、コマンドシェルの処理
はインタープリタ方式であった。
As shown in FIG. 5, conventionally, command shell processing has been performed using an interpreter method.

すなわち、コマンドプロシジャくファイル)から順次1
つずつコマンドを読みだしくステップ501)、その内
容を解析する(ステップ503)。
That is, sequentially from the command procedure file)
The commands are read out one by one (step 501) and their contents are analyzed (step 503).

コマンドの文法が正常であれば(ステップ504YES
)、コマンドにて指示された処理を実行する(ステップ
505)。
If the syntax of the command is normal (step 504 YES)
), executes the process instructed by the command (step 505).

コマンドの文法が誤りであれば(ステップ504NO)
 、エラーメツセージを出力する(ステップ506)。
If the syntax of the command is incorrect (step 504 NO)
, outputs an error message (step 506).

以上の処理を繰り返すことにより、全てのコマンドが処
理される。
By repeating the above process, all commands are processed.

(発明が解決しようとする課題) しかしながら、このような従来のコマンドプロシジャの
処理方式にあっては、コマンド10シジャ実行要求が到
来した時点において、各構成コマンドによる指示内容を
解析する処理と、解析された指示内容に相当する動作を
実現する処理との双方を行うため、処理時間が長くなる
という課題があった。
(Problem to be Solved by the Invention) However, in such a conventional command procedure processing method, when a command 10 procedure execution request arrives, a process of analyzing the instruction contents of each component command, and an analysis process are performed. There is a problem in that the processing time becomes long because both the processing and the processing for realizing the action corresponding to the instruction contents are performed.

この発明の目的は、この種のコンピュータにおいて、コ
マンドプロシジャ処理時間の短縮化を図ることにある。
An object of the present invention is to shorten command procedure processing time in this type of computer.

[発明の構成] (課題を解決するための手段) この発明は、上記の目的を達成するために、各構成コマ
ンドによる指示内容を解析する処理と、解析された指示
内容に相当する動作を実現する処理とを有するコマンド
プロシジャの処理方式において、 コマンドプロシジャ実行要求の到来に先立ち、前記解析
処理を行って各コマンドを中間言語に予め変換しておき
、コマンドプロシジャ実行要求が到来した時点では、前
記中間言語に基づいてその指示内容を実現すること、を
特徴とするものである。
[Structure of the Invention] (Means for Solving the Problems) In order to achieve the above object, the present invention realizes a process of analyzing the instruction contents of each constituent command and an operation corresponding to the analyzed instruction contents. In the command procedure processing method, each command is converted into an intermediate language by performing the analysis process before a command procedure execution request arrives, and when the command procedure execution request arrives, It is characterized by realizing the instruction content based on an intermediate language.

(作用) このような構成によれば、コマンドプロシジャ実行要求
が到来した時点では解析処理が終了しているので、その
分だけ処理時間の短縮化を図ることができる。
(Operation) According to such a configuration, since the analysis process is completed when a command procedure execution request arrives, the processing time can be shortened by that much.

(実施例) 第1図は、この発明の第1実施例の構成を示すブロック
図である。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a first embodiment of the present invention.

同図において、コマンドプロシジャ1は従来と同様であ
って、コンピュータに対する処理の指示を与えるコマン
ド列で構成されている。
In the figure, a command procedure 1 is the same as the conventional one, and is composed of a command sequence for giving processing instructions to the computer.

コマンドプリプロセッサ2は、コマンドプロシジャを解
析し、コマンド中間言語を生成するものである。
The command preprocessor 2 analyzes a command procedure and generates a command intermediate language.

コマンド中間言語3は、コマンドプリプロセッサ2より
生成されたコマンド中間言語を示している。
Command intermediate language 3 indicates a command intermediate language generated by command preprocessor 2.

コマンドシェル4は、生成されたコマンド中間言語によ
りコマンドの処理を実行する。
The command shell 4 executes command processing using the generated command intermediate language.

次に、第2図、及び第3図を参照しながら、本処理方式
の動作を系統的に説明する。
Next, the operation of this processing method will be systematically explained with reference to FIGS. 2 and 3.

先ス、オペレータはコンピュータが具備しているテキス
ト編集プログラムなどで目的の処理を指示したコマンド
プロシジャ1を作成する。
First, the operator creates a command procedure 1 that instructs the desired processing using a text editing program installed in the computer.

次に、コマンドプロシジャ1を指定してコマンドプリプ
ロセッサ2を起動する。
Next, specify command procedure 1 and start command preprocessor 2.

コマンドプリプロセッサ2が起動されると、第2図に示
されるように、コマンドプロシジャファイルからコマン
ドが1個読み出される(ステップ201)。
When the command preprocessor 2 is activated, one command is read from the command procedure file (step 201), as shown in FIG.

読み出しが正常に行われれば(ステップ202YES)
、そのコマンドの解析が行われる(ステップ203)。
If reading is performed normally (step 202 YES)
, the command is analyzed (step 203).

解析の結果、文法が正常であれば(ステップ204YE
S)、そのコマンドは中間言語に変換され(ステップ2
05) 、ファイルに保存される(ステップ206)。
As a result of the analysis, if the grammar is normal (step 204YE)
S), the command is translated into an intermediate language (step 2
05) is saved to a file (step 206).

以上の動作(ステップ201〜206)が、コマンド列
の最終コマンドまで繰り返される(ステップ202>。
The above operations (steps 201 to 206) are repeated until the last command in the command sequence (step 202>).

その間に、コマンドに文法誤りが発見されれば、エラー
メツセージが出力される(ステップ207)このように
、コマンドプロシジャ実行要求の到来に先立ち、解析処
理を行って、各コマンドを中間言語に予め変換しておく
わけである。
During this time, if a syntax error is found in the command, an error message is output (step 207). In this way, before a command procedure execution request arrives, analysis processing is performed and each command is converted into an intermediate language in advance. That's why I keep it that way.

次いで、実行要求が到来すると、コマンドシェルが起動
される。すると、第3図に示されるように、ファイルか
らコマンド中間言語が読み出され(ステップ301)、
その読み出しが正常であれば(ステップ302YES)
、コマンド中間言語にて指示された処理が実行される(
ステップ303)。
Next, when an execution request arrives, a command shell is started. Then, as shown in FIG. 3, the command intermediate language is read from the file (step 301),
If the reading is normal (step 302 YES)
, the process specified in the command intermediate language is executed (
Step 303).

以上の処理を全てのコマンド中間言語が読み出されるま
で繰り返すわけである(ステップ302NO)。
The above process is repeated until all command intermediate languages are read out (step 302: NO).

このように、コマンドプリプロセッサにおける翻訳の段
階で、コマンドを実行するプログラムの選択やパラメー
タチエツクなどが行われているため、コマンドシェルは
目的の処理に専念することができる。
In this way, the command preprocessor selects the program to execute the command, checks the parameters, etc. at the translation stage, so the command shell can concentrate on the desired processing.

その結果、従来のインタープリタ方式がコマンドプロシ
ジャの解析と実行との双方をコマンド実行要求の際に行
うのに対して、本実施例では実行のみを行えばよいため
、その分だけコマンドプロシジャ実行時間を短縮するこ
とができる。
As a result, whereas the conventional interpreter method analyzes and executes a command procedure when a command execution request is made, in this embodiment, only execution is required, so the command procedure execution time is increased accordingly. Can be shortened.

次に、第4図は本発明の第2実施例の構成を示すブロッ
ク図である。
Next, FIG. 4 is a block diagram showing the configuration of a second embodiment of the present invention.

この実施例では、コマンドプロシジャを直接にあるいは
コマンド中間言語を介してのいずれにおいても実行可能
としている。
In this embodiment, the command procedure can be executed either directly or via a command intermediate language.

尚、同図において、前記第1実施例と同一の構成部分に
ついては、同符号を付して説明は省略する。
In the figure, the same components as those in the first embodiment are designated by the same reference numerals, and the explanation thereof will be omitted.

インタープリタ方式の長所は、コマンドプロシジャを変
更した場合、即これを実行できる点にある。
The advantage of the interpreter method is that if you change a command procedure, you can immediately execute it.

そこで、この実施例では、第1実施例で示した中間言語
を経由させる方式に加え、従来のインタープリタ方式を
組み合わせ、コマンドプロシジャ作成段階はインタープ
リタ方式、運用段階はコマンドプリプロセッサ経由方式
を使用できるようにしている。
Therefore, in this embodiment, in addition to the method using the intermediate language shown in the first embodiment, the conventional interpreter method is combined, so that the interpreter method can be used at the command procedure creation stage and the command preprocessor method can be used at the operation stage. ing.

そのため、コマンドシェル4aには、コマンドプロシジ
ャと中間言語との双方を処理できる機能が付与されてい
る。
Therefore, the command shell 4a is provided with the ability to process both command procedures and intermediate languages.

これには、指定されたファイルがコマンドプロシジャか
コマンド中間言語かを判別する機能が必要である。
This requires a function to determine whether the specified file is a command procedure or command intermediate language.

そのためには、ファイル名の接尾語を、コマンドプロシ
ジャは“PPO”とし、コマンド中間言語は“INT”
とするなどファイル名にて判別する方式や、ファイル内
部にコマンドプロシジャがコマンド中間言語かを判別す
る情報を付加する方式を採ればよい。
To do this, the suffix of the file name should be "PPO" for the command procedure and "INT" for the command intermediate language.
You can use a method of identifying the file name, such as by using the file name, or a method of adding information inside the file to determine whether the command procedure is a command intermediate language.

[発明の効果] 以上の実施例の説明でも明らかなように、この発明によ
れば、コマンドプロシジャ実行要求が到来した時点では
中間言語を実行するだけでよいため、コマンド解析が不
要となった分だけ、コマンドプロシジャ処理時間の短縮
化を図ることができる。
[Effects of the Invention] As is clear from the above description of the embodiments, according to the present invention, when a command procedure execution request arrives, it is only necessary to execute the intermediate language, so command analysis is no longer necessary. Therefore, the command procedure processing time can be shortened.

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

第1図は本発明の第1実施例の構成を示すブロック図、
第2図は第1図に示されるコマンドプリプロセッサの動
作を示すフローチャート、第3図は同コマンドシェルの
動作を示すフローチャート、第4図は本発明の第2実施
例の構成を示すブロック図、第5図は従来装置における
コマンドシェルの動作を示すフローチャートである。 1・・・コマンドプロシジャ 2・・・コマンドプリプロセッサ 3・・・コマンド中間言語 4・・・コマンドシェル 代理人  弁理士 則 近  憲 佑 代理人  弁理士 山 下  − j 第1図 第2図 第3図 第4図 第5図
FIG. 1 is a block diagram showing the configuration of a first embodiment of the present invention,
2 is a flowchart showing the operation of the command preprocessor shown in FIG. 1, FIG. 3 is a flowchart showing the operation of the same command shell, and FIG. 4 is a block diagram showing the configuration of the second embodiment of the present invention. FIG. 5 is a flowchart showing the operation of the command shell in the conventional device. 1...Command procedure 2...Command preprocessor 3...Command intermediate language 4...Command shell Agent Patent attorney Nori Chika Kensuke Agent Patent attorney Yamashita - j Figure 1 Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)各構成コマンドによる指示内容を解析する処理と
、解析された指示内容に相当する動作を実現する処理と
を有するコマンドプロシジャの処理方式において、 コマンドプロシジャ実行要求の到来に先立ち、前記解析
処理を行って各コマンドを中間言語に予め変換しておき
、コマンドプロシジャ実行要求が到来した時点では、前
記中間言語に基づいてその指示内容を実現すること、 を特徴とするコマンドプロシジャの処理方式。
(1) In a command procedure processing method that includes a process of analyzing instruction contents of each component command and a process of realizing an operation corresponding to the analyzed instruction contents, the analysis process is performed prior to the arrival of a command procedure execution request. A method for processing a command procedure, characterized in that each command is converted into an intermediate language in advance by performing the following steps, and when a command procedure execution request arrives, the instruction contents are realized based on the intermediate language.
JP1735388A 1988-01-29 1988-01-29 Processing system for command procedure Pending JPH01194053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1735388A JPH01194053A (en) 1988-01-29 1988-01-29 Processing system for command procedure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1735388A JPH01194053A (en) 1988-01-29 1988-01-29 Processing system for command procedure

Publications (1)

Publication Number Publication Date
JPH01194053A true JPH01194053A (en) 1989-08-04

Family

ID=11941682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1735388A Pending JPH01194053A (en) 1988-01-29 1988-01-29 Processing system for command procedure

Country Status (1)

Country Link
JP (1) JPH01194053A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04253271A (en) * 1991-01-29 1992-09-09 Nec Corp Table limiting method for relation data base system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04253271A (en) * 1991-01-29 1992-09-09 Nec Corp Table limiting method for relation data base system

Similar Documents

Publication Publication Date Title
JPH01194053A (en) Processing system for command procedure
JPH03241439A (en) Test data preparation tool
JPH10187461A (en) Language processing system
JPH0210429A (en) Program structure processing system
JP2001255912A (en) Method for executing motion program
JPH0760363B2 (en) Method for automatically creating user-defined commands
JPH0250730A (en) Language converting system based upon common machine word
JPS62159235A (en) List processing system
JPH02253443A (en) Program generating method
CN116009836A (en) RPA programming method, device, equipment and storage medium based on script language
JPH06110750A (en) Automatic generating method for make-file of application program capable of accessing related data base
JPH0223428A (en) Translation type executing system for command type end user language
JPH09231088A (en) Device and method for program conversion execution
JPH0713771A (en) Language processing program
JPS62293310A (en) Executing system for user program of numerical controller
JPS6365542A (en) Debugging system
JPH04209029A (en) Parallel process program translation processor
JPH02178864A (en) Ipl processing system
JPH01147624A (en) Language processing system
JPH03223930A (en) Support system for generation of source
JPS61161514A (en) Numerical control system
JPS63640A (en) Execution control system for partial unit of data flow
JPH02277147A (en) Program test method
JPS63228341A (en) Program syntax checking system
JPS63211037A (en) Program debugging method