JPH0319971B2 - - Google Patents
Info
- Publication number
- JPH0319971B2 JPH0319971B2 JP58115859A JP11585983A JPH0319971B2 JP H0319971 B2 JPH0319971 B2 JP H0319971B2 JP 58115859 A JP58115859 A JP 58115859A JP 11585983 A JP11585983 A JP 11585983A JP H0319971 B2 JPH0319971 B2 JP H0319971B2
- Authority
- JP
- Japan
- Prior art keywords
- name
- input
- sentence
- type
- sentences
- 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
- Debugging And Monitoring (AREA)
- Devices For Executing Special Programs (AREA)
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明は、対話形プログラム処理方式に係り、
特に入力手段より文章を入力する毎にその文章の
正誤を判定する対話形プログラム入力処理方式に
関する。[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an interactive program processing method,
In particular, the present invention relates to an interactive program input processing method that determines whether a sentence is correct or incorrect each time it is input through an input means.
近年、データの入力、確認手段としてキーボー
ドやデイスプレイを備え、キーボードから所望の
データを入力すると共に、デイスプレイに表示さ
れた入力状態或いは処理結果を参照しながら、対
話形式でデータの入力、及びデータ処理を行なう
システムが実用化されている。
In recent years, keyboards and displays have been used as data input and confirmation means, and in addition to inputting desired data from the keyboard, data can be input and processed in an interactive manner while referring to the input status or processing results displayed on the display. A system that performs this has been put into practical use.
この種のシステムとして最もよく知られている
のが、航空、鉄道の座席の予約システムであり、
オペレータが入力装置より予約情報を入力しなが
ら対話形式で予約処理を行なうものである。 The most well-known systems of this type are airline and railway seat reservation systems.
An operator performs reservation processing in an interactive manner while inputting reservation information through an input device.
また、この種のシステムとして、入力装置より
プログラムを構成する文章、単語等を順次入力し
ながらプログラムを作成する所謂対話形式のプロ
グラム入力、処理システムが実用化されつつあ
る。 Furthermore, as this type of system, a so-called interactive program input and processing system in which a program is created by sequentially inputting sentences, words, etc. constituting a program from an input device is being put into practical use.
斯かる従来のシステムにおいては、入力された
1つ1つの文章に対する誤りは検出できるまでに
至つている。然し乍ら、入力された文章に含まれ
る変数の型が、入力済みの文章中で規定されてい
る型と一致しているか否かについてまで補償があ
るとか言い難い。むしろ、従来のこの種のシステ
ムでは未だそこまで至つていないと推測される。
その理由として、型の一致を判定するためには、
使用されている変数の型を登録しておき、新らた
に文章が入力された場合に、既に登録済みの文章
の型と比較することが必要とされ、しかもこの型
の登録及び管理が非常に困難であると考えられる
からである。 In such conventional systems, errors in each input sentence can be detected. However, it is difficult to say that there is compensation as to whether or not the types of variables included in the input text match the types defined in the input text. In fact, it is presumed that conventional systems of this type have not yet reached this point.
The reason is that to determine type matching,
It is necessary to register the types of variables used, and when a new sentence is input, to compare it with the type of the already registered sentence. Moreover, registering and managing this type is extremely difficult. This is because it is considered to be difficult.
一方において、この様に対話形のプログラム入
力、処理システムには、単に文章の入力だけでな
く、入力された文章の削除等も自由に行なえるこ
とが要求されつつある。この場合、一度型が登録
された変数であつても、その変数を使用する文章
がすべて削除されたときには、既に登録されてい
る型を取り削さなければならない。通常、変数は
複数の文章中で使用されるので、登録済みの型を
取り消すには、入力された文章すべてを調べなけ
ればならず、そのためには多大の時間を要する。
しかもプログラムの入力操作の応答性が著しく悪
くなる。 On the other hand, such interactive program input and processing systems are increasingly being required to be able not only to simply input sentences but also to freely delete inputted sentences. In this case, even if a type has been registered for a variable, if all sentences that use that variable are deleted, the already registered type must be deleted. Usually, variables are used in multiple sentences, so to cancel a registered type, it is necessary to examine all the input sentences, which takes a lot of time.
Moreover, the responsiveness of program input operations becomes significantly worse.
このため、斯かるシステムにおいては、1つ1
つの文章が入力された時点では、変数の型の正誤
の判定を行なわず、すべての文章が入力された
後、即ち、プログラム全体が入力された後に一括
してこの種の判定を行なつている。従つて、誤つ
て同一の変数が複数の型で使用された場合には、
その変数を使用している全ての文章をチエツクし
て、修正しなければならない。プログラムの修正
工数は、通常のプログラマーで1日当り200〜300
行程度と考えられるので、数1000ステツプに及ぶ
プログラム中に主要な変数の型の使用誤りがある
と、その修正作業に数時間乃至1日も費すことに
なる。しかも、修正箇所が多数ある場合には、修
正のし忘れや、一度修正したものを再修正してし
まうという事態も起る。 Therefore, in such a system, each
The system does not check whether the variable type is correct or incorrect when one sentence is input, but performs this type of judgment all at once after all sentences have been input, that is, after the entire program has been input. . Therefore, if the same variable is accidentally used in multiple types,
All sentences that use that variable must be checked and corrected. The number of man-hours required for program modification is 200 to 300 per day for a typical programmer.
It is considered to be about a line, so if there is an error in the use of a major variable type in a program that spans several thousand steps, it will take several hours to a day to correct it. Moreover, when there are many corrections, situations may occur where people forget to make corrections or end up re-editing what has already been corrected.
従つて、本発明の目的は、上述の如き欠点を除
去し、入力されるプログラムの構成文章の正誤
を、変数の型も含めて容易に判定することがで
き、かつ修正のための作業工数を大幅に削減した
対話形プログラム処理方式を提供することにあ
る。
Therefore, an object of the present invention is to eliminate the above-mentioned drawbacks, to easily determine the correctness of the constituent sentences of an input program, including the types of variables, and to reduce the number of man-hours required for correction. The object of the present invention is to provide a greatly reduced interactive program processing method.
而して、本発明はキーボードの如き入力手段よ
り入力されたプログラムの構成文を内部コードに
変換して格納する対話形プログラム入力、処理シ
ステムにおいて実現される。即ち、プログラムを
構成する文章中に使用されている変数を含む名
称、及び該名称の使用頻度を少なくとも登録する
テーブルを有し、入力手段より新らたに文章が入
力されるたびに、テーブルを検索し、当該文章中
の名称が既に他で使用されているか否かを判定
し、使用されている場合に該名称の使用頻度を更
新する。一方、他で未だ使用されていないと判定
されれば、当該名称を新らたにテーブルに登録す
る。しかる後、入力されたプログラムは内部コー
ドに変換される。また、ある文章を削除する場合
には、該文章中に使用されている名称の使用頻度
が所定値例えば“0”になつたときに該名称は他
の文章中で使用されていないとみなされ、当該文
章が取り消される。
Thus, the present invention is realized in an interactive program input and processing system that converts the constituent sentences of a program input through an input means such as a keyboard into internal code and stores the internal code. That is, it has a table that registers at least the names including variables used in sentences constituting the program and the frequency of use of the names, and the table is updated every time a new sentence is input from the input means. Search, determine whether the name in the text has already been used elsewhere, and if so, update the frequency of use of the name. On the other hand, if it is determined that the name has not been used elsewhere, the name is newly registered in the table. After that, the input program is converted into internal code. Also, when deleting a certain sentence, when the frequency of use of the name used in the sentence reaches a predetermined value, for example "0", the name is considered not to be used in other sentences. , the text will be canceled.
以下、図面を参照して本発明の一実施例につい
て説明する。
An embodiment of the present invention will be described below with reference to the drawings.
第1図は、実施例の説明に供する対話形プログ
ラム入力、処理システムの構成を示す図である。
この図において、入力表示部1は、デイスプレイ
11及びキーボード12から成り、キーボード1
2からは、プログラムを構成する文章等各種デー
タ、及びフアンクシヨン情報が入力される。ま
た、デイスプレイ11には、確認のためにキーボ
ード12から入力されたデータが表示されたり、
後述する処理部2からのデータの処理結果が表示
される。 FIG. 1 is a diagram showing the configuration of an interactive program input and processing system for explaining an embodiment.
In this figure, the input display section 1 consists of a display 11 and a keyboard 12.
From 2, various data such as sentences constituting the program and function information are input. The display 11 also displays data entered from the keyboard 12 for confirmation,
The results of processing data from the processing unit 2, which will be described later, are displayed.
処理部2は、キーボード12より入力される文
章の解析を行なう。この解析の結果、誤りがあれ
ば入力表示部1に対してメツセージを出力し、デ
イスプレイ11にエラー表示する。ここで、入力
される文章の解析とは、通常のコンパイラで行な
われている技法、即ちプログラム言語の文法に従
つて容易に実現され得る。一方、解析の結果が正
しければ、入力された文章を内部コードに変換す
る。この内部コードに変換された文章は内部コー
ドバツフア3に格納される。 The processing unit 2 analyzes sentences input from the keyboard 12. If there is an error as a result of this analysis, a message is output to the input display section 1 and an error is displayed on the display 11. Here, the analysis of the input text can be easily realized using a technique used in a normal compiler, that is, according to the grammar of the programming language. On the other hand, if the analysis result is correct, the input text is converted into internal code. The text converted into this internal code is stored in the internal code buffer 3.
処理部2は、また後述するテーブル4内のデー
タの更新及び取消し処理を行なう。 The processing unit 2 also performs processing for updating and canceling data in the table 4, which will be described later.
テーブル4は、メモリ内に構成されるもので、
その形式は、文章中に含まれる名称、その型、及
びその名称が使用された回数を保持するカウンタ
部より成る。 Table 4 is configured in memory,
The format consists of a counter section that holds the name contained in the text, its type, and the number of times the name is used.
次に、この様な構成から成るシステムの処理動
作について説明する。まず、第2図に示すフロー
チヤートを参照して入力された文章の通常の処理
動作について説明する。 Next, the processing operation of the system having such a configuration will be explained. First, the normal processing operation for input sentences will be explained with reference to the flowchart shown in FIG.
キーボード12より1つの文章が入力される
と、処理部2は当該プログラムの言語の文法に従
つて入力された文章を解析する。この解析の結
果、誤りが発見されれば、エラーメツセージを返
送し、デイスプレイ11にその旨表示する。そし
て、例えば、再度文章を入力する様にガイダンス
表示される。 When a sentence is input from the keyboard 12, the processing unit 2 analyzes the input sentence according to the grammar of the language of the program. If an error is found as a result of this analysis, an error message is returned and the display 11 indicates the fact. Then, for example, guidance is displayed to prompt the user to input the text again.
一方、上記解析の結果、入力された文章の構文
が正しいと判定された場合には、その文章中で使
用されている名称が既にテーブル4に登録されて
いるか否かが調べられる。このテーブル4の検索
によつて、テーブル4内に未だ存在していないこ
とが判ると、当該名称、その型、及びカウンタ部
には使用回数(この場合初めてなので“1”)が
登録される。これに対して、当該名称が既にテー
ブル4に登録されている場合には、登録済みの名
称に対応する型と、今回入力された文章中で使用
されている型とを比較し、一致すれば、当該名称
に対応する型が正常であるとみなして、カウンタ
部の内部を更新即ちプラス“1”する。一方、型
の比較において、両者が一致しなければ、当該名
称に対応する型に不一致誤りがあると判断され
る。この判断の結果は、デイスプレイ11に送ら
れ、その旨表示される。オペレータはこれを見
て、型を再確認した上で文章を再入力することに
なる。 On the other hand, if it is determined that the syntax of the input sentence is correct as a result of the above analysis, it is checked whether the name used in the sentence has already been registered in the table 4. If it is found by searching the table 4 that the item does not yet exist in the table 4, the name, its type, and the number of times it has been used (in this case, "1" because it is the first time) are registered in the counter section. On the other hand, if the name is already registered in Table 4, the type corresponding to the registered name is compared with the type used in the currently input text, and if they match, , it is assumed that the type corresponding to the name is normal, and the inside of the counter section is updated, that is, plus "1". On the other hand, when comparing the types, if the two do not match, it is determined that there is a mismatch error in the type corresponding to the name. The result of this judgment is sent to the display 11 and displayed accordingly. The operator looks at this, double-checks the type, and re-enters the text.
この様に、処理部2において、構文のチエツ
ク、及びその構文中で使用されている変数を含む
名称及びその型のチエツクが行なわれると共に、
そのチエツク結果に従つてテーブル4の内容が更
新される。そして、一連のチエツクが正しい場合
には、入力された文章が内部コードに変換され、
その結果は、内部コードバツフア3に格納され
る。 In this way, the processing unit 2 checks the syntax, the names including variables used in the syntax, and their types, and
The contents of table 4 are updated according to the check results. If the series of checks is correct, the input text is converted into an internal code,
The result is stored in the internal code buffer 3.
次に、第3図に示すフローチヤートを参照して
文章が削除された場合の処理動作について説明す
る。キーボード12より削除すべき指令及び削除
される対象となる文章が指定されると、処理部2
は内部コードバツフア3から指定された文章の内
部コードを取り出す。また、テーブル4から、当
該文章中に使用されている名称及びその関連情報
を取り出す。そして、カウンタ部の内容を“1”
減算すると共に、カウンタ部の値が“0”か否か
をチエツクする。その値が“0”以外ならば、当
該名称は、他の文章でまだ使用されていることを
示しているので、テーブル4内の当該名称に関連
する処理はそのまま即ち継続中であるとし、当該
文章の内部コードのみを内部コードバツフア3か
ら削除する。一方、カウンタ部の値が“0”なら
ば、その名称を使用している文章は他にないこと
を示すので、テーブル4より当該名称及び関連情
報を取り消す。このテーブル4の処理の後、内部
コードバツフア3より当該文章の内部コードを削
除する。 Next, processing operations when a text is deleted will be described with reference to the flowchart shown in FIG. When a command to be deleted and a sentence to be deleted are specified from the keyboard 12, the processing unit 2
extracts the internal code of the specified text from the internal code buffer 3. Also, from Table 4, the names used in the text and their related information are extracted. Then, set the contents of the counter section to “1”
At the same time as subtracting, it is checked whether the value of the counter section is "0" or not. If the value is other than "0", it indicates that the name is still being used in another sentence, so it is assumed that the process related to the name in Table 4 remains unchanged, that is, it is continuing. Only the internal code of the text is deleted from the internal code buffer 3. On the other hand, if the value of the counter section is "0", this means that there is no other text using that name, so the name and related information are deleted from Table 4. After processing this table 4, the internal code of the text is deleted from the internal code buffer 3.
以上説明した様に、本発明によれば、ある単位
例えば1単位の文章が入力される毎に、その文章
中で使用されている変数を含む名称の正誤を判定
し、その結果、誤りと判れば、その時点で再入力
等の訂正動作を促す様にしたので、その都度修正
作業が行なえる。従つて、すべての文章の入力が
完了したら直ちにプログラムの実行に移ることが
でき、従来技術の如き修正作業のためにすべての
文章をチエツクするという労力も省け、また修正
が更に他の誤りを引き起すという事態もなくな
る。
As explained above, according to the present invention, each time a certain unit, for example, one unit of text is input, it is determined whether a name including a variable used in that text is correct or not, and as a result, it is determined whether the name is correct or incorrect. For example, since a correction operation such as re-input is prompted at that point, correction work can be performed each time. Therefore, the program can be executed immediately after all the sentences have been inputted, and the effort of checking all the sentences for correction work as in the prior art is saved, and the corrections do not lead to further errors. There will be no need to wake up.
第1図は、本発明の一実施例の説明に供する対
話形プログラム入力、処理システムの構成を示す
図、第2図は入力された文章の処理動作を説明す
るためのフローチヤート、第3図はある文章を削
除するための処理動作の説明に供するフローチヤ
ート。
1……入力表示部、2……処理部、3……内部
コードバツフア、4……テーブル。
FIG. 1 is a diagram showing the configuration of an interactive program input and processing system for explaining an embodiment of the present invention, FIG. 2 is a flowchart for explaining the processing operation of input text, and FIG. is a flowchart that explains the processing operations for deleting a certain sentence. 1...Input display section, 2...Processing section, 3...Internal code buffer, 4...Table.
Claims (1)
を内部コードに変換して格納する対話形プログラ
ム処理方式であつて、プログラムを構成する文章
中に使用されている名称、及び該名称の使用頻度
と型を少なくとも登録する名称テーブルを有し、
該入力手段より新たに文章が入力される度に該名
称テーブルを検索し、そこで入力された文章中の
名称が既に入力されている文章中で使用されてい
るか否かを判定し、使用されている場合には該名
称テーブルの該名称の使用頻度の値を更新すると
共に登録済みの型に対応した内部コードに変換
し、使用されていない場合には該名称テーブルに
その名称、使用頻度、型を新たに登録すると共に
その型に対応した内部コードに変換し、該入力手
段より文章の削除が指定される度に該名称テーブ
ルを検索し、削除された文章中の名称の使用頻度
の値を更新し、該名称が入力済みの文章中で使用
されなくなつた場合は、該名称テーブルから該名
称を削除することを特徴とする対話形プログラム
処理方式。1. An interactive program processing method that converts the constituent sentences of a program inputted from an input means into internal codes and stores them, and the name used in the sentences constituting the program, as well as the frequency and type of use of the name. has a name table that registers at least
Every time a new sentence is input from the input means, the name table is searched, and it is determined whether the name in the input sentence is used in a sentence that has already been input. If it is not used, update the usage frequency value of the name in the name table and convert it into an internal code that corresponds to the registered type, and if it is not used, update the name, usage frequency, and type in the name table. is newly registered and converted into an internal code corresponding to the type, and each time deletion of a sentence is specified from the input means, the name table is searched and the value of the frequency of use of the name in the deleted sentence is calculated. An interactive program processing method characterized by deleting the name from the name table when the name is updated and is no longer used in an input sentence.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58115859A JPS608935A (en) | 1983-06-29 | 1983-06-29 | Interactive program processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58115859A JPS608935A (en) | 1983-06-29 | 1983-06-29 | Interactive program processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS608935A JPS608935A (en) | 1985-01-17 |
| JPH0319971B2 true JPH0319971B2 (en) | 1991-03-18 |
Family
ID=14672906
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58115859A Granted JPS608935A (en) | 1983-06-29 | 1983-06-29 | Interactive program processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS608935A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0782185B2 (en) * | 1987-03-09 | 1995-09-06 | コニカ株式会社 | Albada type reverse galileo finder |
| JP2558780Y2 (en) * | 1993-06-11 | 1998-01-14 | 株式会社鎌倉製作所 | Ventilation equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS52106244A (en) * | 1976-03-03 | 1977-09-06 | Hitachi Ltd | Program module control system |
-
1983
- 1983-06-29 JP JP58115859A patent/JPS608935A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS608935A (en) | 1985-01-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6279006B1 (en) | Structured data management system and computer-readable recording medium storing structured data management program | |
| US4853873A (en) | Knowledge information processing system and method thereof | |
| US8515786B2 (en) | Rule generation system adapted for an insurance claim processing system | |
| CN107665227B (en) | Data version control method and data version controller | |
| US4817032A (en) | User programmable data processor | |
| CN120104112A (en) | A code generation method, device, equipment and medium based on script syntax | |
| JPH0319971B2 (en) | ||
| JP2000148756A (en) | Bilingual sentence error detection device | |
| KR20230013601A (en) | Revision history change program, revision history integration program, and revision history integration system | |
| JPH1185536A (en) | Automatic error correction apparatus and method for source program | |
| JP2006344012A (en) | Data input system, data input program | |
| JPH07160714A (en) | Japanese sentence proofreading device | |
| US20250190821A1 (en) | Knowledge extraction apparatus and knowledge extraction method | |
| JP3329476B2 (en) | Kana-Kanji conversion device | |
| JPH04257029A (en) | Editor | |
| JPH10143371A (en) | Case search system and case search method | |
| JPH07160494A (en) | Correction device for input character string at coding time | |
| JP2806352B2 (en) | Dictionary maintenance equipment for machine translation | |
| JP2015088067A (en) | Mining analyzer, method and program | |
| JPH0696117A (en) | Document change support system | |
| JP2022169011A (en) | Input sentence verification device and program | |
| JPH1040089A (en) | Method for generating data transfer program | |
| CN119690803A (en) | Code detection method, device and equipment | |
| JP2765634B2 (en) | How to specify time in natural language | |
| JP3646783B2 (en) | Request confirmation type information provision device |