JPH027121A - Command input control system for program - Google Patents

Command input control system for program

Info

Publication number
JPH027121A
JPH027121A JP63156013A JP15601388A JPH027121A JP H027121 A JPH027121 A JP H027121A JP 63156013 A JP63156013 A JP 63156013A JP 15601388 A JP15601388 A JP 15601388A JP H027121 A JPH027121 A JP H027121A
Authority
JP
Japan
Prior art keywords
command
file
input
check
execution program
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
JP63156013A
Other languages
Japanese (ja)
Inventor
Kahoko Satou
佐藤 佳穂子
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63156013A priority Critical patent/JPH027121A/en
Publication of JPH027121A publication Critical patent/JPH027121A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To make it unnecessary to have the same analyzing logic in a whole execution program and to simplify a constitution by using a command file prepared beforehand and providing a function to carry out a command analyzing processing prior to the execution of the execution program. CONSTITUTION:A command and the argument of the command are inputted from a keyboard and displayed at a CRT 1. An input command is detected by a command detecting mechanism 2 and a command corresponding to the input command is searched from a command file 3. After the command is found out, a general-purpose command checking mechanism 4 refers to respective types of the information of the command file 3 and the argument of the command is checked. When the checking is wholly OKed, it is informed to an execution program side with the message of a format determined beforehand. For the execution program, the validity of the message is not checked and the processing is started as it is.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムのコマンド入力制御方式。[Detailed description of the invention] [Industrial application field] The present invention relates to a program command input control method.

特に実行プログラムの作動における制御プログラムのコ
マンド入力制御方式に関するものである。
In particular, it relates to a command input control method for a control program in the operation of an execution program.

〔従来の技術〕[Conventional technology]

従来のコマンド入力形式の制御プログラムにおいては、
第5図に示すように、キーボードよりコマンドおよび引
数を入力する(フロー10)制御プログラム100では
コマンドに付随する引数のチェックは行っていない。特
定の引数チェックを各実行プログラム200中のフロー
50でコマンドの引数を汎用コマンドチェック機構でチ
ェックしているため、引数の変更時にはプログラムの修
正が必要である。
In conventional command input format control programs,
As shown in FIG. 5, the control program 100 that inputs commands and arguments from the keyboard (flow 10) does not check the arguments accompanying the commands. Since the command argument is checked by a general-purpose command check mechanism in the flow 50 of each execution program 200 for specific argument checking, it is necessary to modify the program when changing the argument.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のコマンド入力形式の制御プログラムは、
コマンドに付随する引数をそのまま実行プログラムへ渡
すので、全実行プログラムが同様の解析ロジックを持た
なければならない。従って。
The conventional command input format control program described above is
Since the arguments accompanying the command are passed to the execution program as is, all execution programs must have the same parsing logic. Therefore.

従来の制御プログラム下の実行プログラムは解析ロジッ
クの作成工数、メモリ容量、障害件数が増大するという
課題がある。
Execution programs under conventional control programs have problems in that the number of man-hours required to create analysis logic, memory capacity, and number of failures increases.

本発明は従来のもののこのような課題全解決したプログ
ラムのコマンド入力制御方式全提供するものである。
The present invention provides a complete command input control method for a program which solves all of the problems of the conventional method.

〔課題全解決するための手段〕[Means to solve all problems]

本発明によると、コマンドの引数全格納したコマンドフ
ァイルと、コマンドが入力されたことを検知するコマン
ド検知機構と、前記コマンドファイルにおける引数全チ
ェックする汎用コマンドチェック機構全有し、コマンド
が入力された時コマンド検知機構によシコマンドを検知
し、前記コマンドファイルから対応するコマンドを探し
、汎用コマンドチェック機構によシ引数全チェックする
ことを特徴とするプログラムのコマンド制御方式%式% 次に2本発明全図面全参照して説明する。
According to the present invention, there is a command file that stores all command arguments, a command detection mechanism that detects that a command has been input, and a general-purpose command check mechanism that checks all the arguments in the command file. A command control method for a program characterized in that a command is detected by a command detection mechanism, a corresponding command is searched for from the command file, and all arguments are checked by a general-purpose command check mechanism. The invention will be explained with reference to all drawings.

第1図は本発明の一実施例の構成図で、キーは一ドより
コマンドとコマンドの引数全入力し。
FIG. 1 is a block diagram of an embodiment of the present invention, in which all commands and command arguments are input using the 1 key.

CRT 1に表示する。入力コマンドをコマンド検知機
構2が検知し、コマンドファイル3よυ入力コマンドに
対応するコマンドを探す。コマンドを見つけた後に、汎
用コマンドチェック機構4がコマンドファイル3の各種
情報全参照し、コマンドの引数をチェックする。
Display on CRT 1. The command detection mechanism 2 detects the input command and searches the command file 3 for a command corresponding to the υ input command. After finding the command, the general-purpose command check mechanism 4 refers to all the various information in the command file 3 and checks the arguments of the command.

この制御手順を第2図に示す。This control procedure is shown in FIG.

まず、フロー10でキーボードより第4図に示すコマン
ドおよび引数全入力する。入力順序はコマンド名を除き
順不同でよい。
First, in flow 10, all commands and arguments shown in FIG. 4 are input from the keyboard. The input order may be in any order except for the command name.

次に、入力されたデータをコマンド名(AAAA)■。Next, enter the input data as the command name (AAAA).

装置番号(すrrl、 n)■、ファイル名(、I−F
iLE。
Device number (srrl, n) ■, file name (, I-F
iLE.

、 0−FiLE、 )■、オプション情報(−01−
02)■。
, 0-FiLE, )■, option information (-01-
02)■.

付加入力情報(MEMBER)■の5つに分解する。Additional input information (MEMBER) is broken down into five parts.

分解後、フロー20においてコマンド検知機構2が検知
したコマンド名全キーとして、フロー30でコマンドフ
ァイル3中より該当コマンドのレコード金リードする。
After decomposition, the command name detected by the command detection mechanism 2 in flow 20 is used as the entire key to read the record of the corresponding command from the command file 3 in flow 30.

コノ時、コマンド名に該当するキーがないと“′コマン
ドなし″として判断しコマンド再入力を行う必要がある
。該当コマンドが見つかると、フロー50において汎用
コマンドチェック機構4がコマンドに続く引数のチェッ
クをレコードの内容と比較しながら行っていく。
At this time, if there is no key corresponding to the command name, it will be determined that there is no command and it will be necessary to re-enter the command. When the applicable command is found, in flow 50, the general-purpose command checking mechanism 4 checks the argument following the command while comparing it with the contents of the record.

引数のチェックは、装置番号チェック、ファイル名チェ
ック、オプション情報チェック、付加入力情報チェック
の4段階がある。
There are four stages of argument checking: device number check, file name check, option information check, and additional input information check.

装置番号チェックは、コマンドファイル3内に入出力装
置の使用可否を、装置に対応するピントのオン/オフに
より設定しておき、入力情報の装置番号指定が可能か否
かをチェックする4、ファイを名チェックは、入力情報
の1ファイル名(入力ファイル名または出力ファイル名
)が8バイト以内であること、また、コマンドファイル
3内にファイル名使用可否を設定し、入力情報のファイ
ル名数が指定ファイル名数と一致するか否か全チェック
する。
To check the device number, set whether or not the input/output device can be used in the command file 3 by turning on/off the focus corresponding to the device, and then check whether the device number can be specified in the input information.4. The name check is to make sure that one file name (input file name or output file name) of input information is within 8 bytes, and also to set whether or not file names can be used in command file 3, and to check that the number of file names of input information is within 8 bytes. Checks all files to see if they match the specified number of file names.

オプション情報チェックハ、コマンrファイル3内にパ
− 直後のオプションキャラクタおよび他オグションキ
ャラクタとの同時指定可否全設定しておき、入力情報の
オプション情報指定が可能か否かをチェックする。
Option information check: In the command r file 3, the option character immediately after par and whether or not it can be specified simultaneously with other option characters are all set, and it is checked whether the option information of the input information can be specified.

付加入力情報チェックは、コマンドファイル3内に付加
入力項目数を設定しておき、入力情報の付加入力情報数
が指定項目数と同じかそれ以下であり、また指定が可能
か否かをチェックする。
To check additional input information, set the number of additional input items in the command file 3, and check whether the number of additional input information in the input information is the same as or less than the specified number of items, and whether it can be specified. .

以上の4つのチェックが全てOKであった場合。If all of the above four checks are OK.

フロー70であらかじめ取り決めたフォーマットノメソ
セーノ(コマンドメツセージ)により実行プログラム側
へ通知する。
In flow 70, a notification is sent to the execution program side using a predetermined format (command message).

実行プログラムはそのメツセージの妥当性のチェックは
せず、そのまま処理を開始する。
The execution program does not check the validity of the message and starts processing it as is.

解析例を以下に示す。An analysis example is shown below.

第1図のCRT lに示すように実行プログラムである
copyユーティリティのコマンド入力後、コマンド検
知機構2はr C0PY JコマンドC4全検知し。
As shown in CRT 1 in FIG. 1, after inputting the command of the copy utility, which is an execution program, the command detection mechanism 2 detects all r C0PY J commands C4.

コマンドファイル3より第3図に示すrcopy」コマ
ンドファイルするコマンドファイルレコード金探す。
From command file 3, search for the command file record gold, which is the "rcopy" command file shown in Figure 3.

第3図Hコマンドファイル3中(7) r C0PY 
jコマンドの内容全示し、lはコマンド名、2はロード
モジューレ名、3は入力装置種別、4は入カニニット番
号、5は入力ファイル名、6は出力装置種別。
Figure 3 H command file 3 (7) r C0PY
j shows the full contents of the command, l is the command name, 2 is the load module name, 3 is the input device type, 4 is the input unit number, 5 is the input file name, and 6 is the output device type.

7は出カニニット番号、8は出カフアイル名、9はオプ
ション情報、10は付加入力項目数を示す。
7 is the output unit number, 8 is the output file name, 9 is option information, and 10 is the number of additional input items.

続いて汎用コマンドチェック機構4により引数C2〜C
6のチェックを行う。゛す”直後のC2およびC5は入
力装置および出力装置としてそれぞれ使用可否指定の妥
当性全チェックする。C4は入力ファイル名、C5は出
力ファイル名全参照しそれぞれがファイル名全必要とし
ているか、また8バイト以内の名称であるかをチェック
する。 −直後の06はオプションキャラクタとしてオ
プション情報全参照し、「P」が指定可能なキャラクタ
であること全チェックする。「C0PY」コマンドには
付加入力情報はないことを付加入力項目数でチェックす
る。
Next, the general-purpose command check mechanism 4 checks the arguments C2 to C.
Perform check 6. C2 and C5 immediately after "Issu" fully check the validity of the usability specifications as input and output devices, respectively.C4 refers to the input file name, and C5 refers to the output file name, and each checks whether the entire file name is required or not. Check whether the name is within 8 bytes. - Refer to all the option information as the 06 immediately after it is an option character, and check that "P" is a character that can be specified. It is checked by the number of additional input items that there is no additional input information for the "C0PY" command.

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

以上説明したように2本発明は実行グロダラムの実行に
先立ち、あらかじめ作成しておいたコマンドファイル全
使用しコマンド解析処理を代行する機能金有することに
より、全実行グロダラムが同様の解析ロジックを持つと
いうことが不要となり。
As explained above, the present invention uses all the command files created in advance and has a function that performs command analysis processing on behalf of the executed Grodarum, so that all the executed Grodarums have the same analysis logic. That becomes unnecessary.

従って解析ロノックの作成工数、メモリ容量、障害件数
全減少することができ、またコマンドファイル全変更す
ることで引数の変更が容易に行える効果がある。
Therefore, the number of man-hours for creating the analysis ronoc, memory capacity, and number of failures can be reduced, and arguments can be easily changed by changing the entire command file.

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

第1図は本発明の一実施例の構成図、第2図および第5
図は本発明および従来のコマンド入力形式の制御プログ
ラムにおける制御フローを示す図。 第3図は本発明において使用するコマンドファイルレコ
ードの一例の詳細図、第4図はコマンドの一般入力形式
を示す図である。 記号の説明:1・・・CRT 、 2・・・コマンド検
知機構。 3・・・コマンドファイル、4・・・汎用コマンドチェ
ック機構。 第 図 第 図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 and FIG.
The figure is a diagram showing a control flow in a control program of the present invention and a conventional command input format. FIG. 3 is a detailed diagram of an example of a command file record used in the present invention, and FIG. 4 is a diagram showing the general input format of commands. Explanation of symbols: 1...CRT, 2...Command detection mechanism. 3... Command file, 4... General purpose command check mechanism. Figure Figure

Claims (1)

【特許請求の範囲】[Claims] 1、コマンドの引数を格納したコマンドファイルと、コ
マンドが入力されたことを検知するコマンド検知機構と
、前記コマンドファイルにおける引数をチェックする汎
用コマンドチェック機構を有し、コマンドが入力された
時コマンド検知機構によりコマンドを検知し、前記コマ
ンドファイルから対応するコマンドを探し、汎用コマン
ドチェック機構により引数をチェックすることを特徴と
するプログラムのコマンド制御方式。
1. It has a command file that stores command arguments, a command detection mechanism that detects when a command is input, and a general-purpose command check mechanism that checks the arguments in the command file, and detects commands when they are input. A command control method for a program, characterized in that a command is detected by a mechanism, a corresponding command is searched from the command file, and an argument is checked by a general-purpose command check mechanism.
JP63156013A 1988-06-25 1988-06-25 Command input control system for program Pending JPH027121A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63156013A JPH027121A (en) 1988-06-25 1988-06-25 Command input control system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63156013A JPH027121A (en) 1988-06-25 1988-06-25 Command input control system for program

Publications (1)

Publication Number Publication Date
JPH027121A true JPH027121A (en) 1990-01-11

Family

ID=15618410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63156013A Pending JPH027121A (en) 1988-06-25 1988-06-25 Command input control system for program

Country Status (1)

Country Link
JP (1) JPH027121A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017116500A1 (en) 2016-07-28 2018-02-01 Panasonic Intellectual Property Management Co., Ltd. Light emitting device and light emitting device system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6398731A (en) * 1986-10-15 1988-04-30 Nec Corp Parameter analyzing system in command input

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6398731A (en) * 1986-10-15 1988-04-30 Nec Corp Parameter analyzing system in command input

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017116500A1 (en) 2016-07-28 2018-02-01 Panasonic Intellectual Property Management Co., Ltd. Light emitting device and light emitting device system

Similar Documents

Publication Publication Date Title
CA2241767C (en) A system for transforming and exchanging data between distributed heterogeneous computer systems
JPH027121A (en) Command input control system for program
US20080216099A1 (en) System for Generating Optimized Computer Data Field Conversion Routines
EP0692112A1 (en) Dynamic browser system
JPH1031584A (en) Automatic device for verification of software
JP2821304B2 (en) Error message display device
JP2508193B2 (en) Registered text conversion device
JPH11120029A (en) Software test data generation support method
JP2507676B2 (en) Index I / O statement execution processing method
JP2500385B2 (en) Input data management method
JP4439599B2 (en) Input data audio output device
JPH06332749A (en) Register analysis processor
JPS6243718A (en) Message output system
JPH05204708A (en) Debugger processing system
JPH04138550A (en) Analytical processing system for command character string syntax
JPS6359647A (en) Display system for exceptional event information
JPH1091403A (en) Program linkage verification system
JPS61253577A (en) Japanese word processing filter
JPH03186933A (en) Symbol processing system for language processing system
JPH07281879A (en) Application program editing device
JPH04246726A (en) Inspection system for module specifications
JPH0228839A (en) Load module generating system for routine single test processing system
JPH09114789A (en) General console device and console device
JPH03240139A (en) Static program analyzing system
JPH04303236A (en) Program input system