JPH06187139A - Editor - Google Patents

Editor

Info

Publication number
JPH06187139A
JPH06187139A JP35394492A JP35394492A JPH06187139A JP H06187139 A JPH06187139 A JP H06187139A JP 35394492 A JP35394492 A JP 35394492A JP 35394492 A JP35394492 A JP 35394492A JP H06187139 A JPH06187139 A JP H06187139A
Authority
JP
Japan
Prior art keywords
format
input
information
key
file
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
JP35394492A
Other languages
Japanese (ja)
Inventor
Kazuhiro Noda
和広 野田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP35394492A priority Critical patent/JPH06187139A/en
Publication of JPH06187139A publication Critical patent/JPH06187139A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To prevent the generation of format errors due to a program with the little experience and the carelessness of an operator or the like by format controlling an inputted instruction sentence based on format definition information extracted from a format definition file and guiding its format. CONSTITUTION:The format definition information such as the information of delimiters such as processing conditions, kinds and insertion positions including the line feed of parentheses corresponding to the instruction sentences stored in the format definition file 8 is extracted by a format control part 9. Successively, input is performed from a keyboard 1 and input control is performed by an input control part 3. Then, when the input is the instruction sentence, the format control part 9 performs format control based on the format definition information extracted from the format definition file 8 and information stored in a format control information file 10. In this case, the automatic input of else sentences to if sentences or the like is performed for instance and also a cursor is continuously moved until the input completion information of the instruction sentence is confirmed. The format controlled information is stored in the format control information file.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、プログラムのコーデ
ィング時に入力制御とともに書式のガイドも行うエディ
タに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an editor for input control as well as format guide when coding a program.

【0002】[0002]

【従来の技術】図22は例えば従来のエディタを示すブ
ロック図である。図において、1はプログラムの命令文
がキー操作によって入力されるキーボードであり、2は
その入力制御を行うエディタである。このエディタ2内
において、3はキーボード1より入力されたキーを識別
して入力制御を行う入力制御部であり、4はそれが特定
のキーであった場合に位置合わせやカーソル移動などを
行う入力キー制御部、5はこの入力キー制御部4で使用
する制御情報が格納されている入力キー制御ファイルで
ある。6はエディタ2の出力が表示される陰極線管ディ
スプレイ(以下、CRTという)であり、7はエディタ
2でコーディングされたプログラムが格納されるソース
ファイルである。
22 is a block diagram showing a conventional editor, for example. In the figure, reference numeral 1 is a keyboard into which command statements of a program are input by key operation, and 2 is an editor for controlling the input. In the editor 2, reference numeral 3 is an input control unit for identifying a key input from the keyboard 1 and controlling the input, and 4 is an input for performing a position adjustment or cursor movement when the key is a specific key. The key control unit 5 is an input key control file in which control information used by the input key control unit 4 is stored. Reference numeral 6 is a cathode ray tube display (hereinafter referred to as CRT) on which the output of the editor 2 is displayed, and 7 is a source file in which the program coded by the editor 2 is stored.

【0003】次に動作について説明する。ここで、図2
3はこのエディタ2の処理の流れを示すフローチャート
である。まず、ステップST1においてキーボード1の
キー操作によってキー情報がエディタ2に入力される。
エディタ2ではそのキー情報を入力制御部3にて受け取
り、ステップST2でその入力されたキーの識別を行
う。次に、受け取ったキー情報が命令文であるか否かを
識別するため、ステップST3でそのキーが特定のキ
ー、例えばカッコキーやタブキー等であるか否かを判断
する。特定のキーであればステップST4において、そ
のカッコキーやタブキーに対して、閉じカッコの位置決
めや自動入力、カーソルの移動等を行う。このステップ
ST4におけるキー制御の処理は、入力キー制御ファイ
ル5に格納されている制御情報に基づいて入力キー制御
部4にて実行される。
Next, the operation will be described. Here, FIG.
3 is a flowchart showing the flow of processing of the editor 2. First, in step ST1, key information is input to the editor 2 by operating a key on the keyboard 1.
The editor 2 receives the key information at the input control unit 3, and identifies the input key at step ST2. Next, in order to identify whether or not the received key information is a command statement, it is determined in step ST3 whether or not the key is a specific key, such as a parenthesis key or a tab key. If it is a specific key, in step ST4, the closing parenthesis is positioned, automatic input is performed, and the cursor is moved with respect to the parenthesis key or the tab key. The key control process in step ST4 is executed by the input key control unit 4 based on the control information stored in the input key control file 5.

【0004】この制御結果はエディタ2よりCRT6に
送られ、ステップST5でその画面上に表示されて入力
のガイドを行う。一方、ステップST3で特定のキーで
はないと判断された場合には、そのキー情報がそのまま
CRT6に送られて画面表示される。その後、ステップ
ST6で入力待ちかエディット終了かを判断し、入力待
ちの状態であれば処理をステップST1に戻して前述し
た一連の処理を繰り返し、ステップST6でエディット
終了が検出されると全ての処理を終了する。
The control result is sent from the editor 2 to the CRT 6 and is displayed on the screen in step ST5 to guide the input. On the other hand, when it is determined in step ST3 that the key is not the specific key, the key information is sent to the CRT 6 as it is and displayed on the screen. Then, in step ST6, it is determined whether the input is awaited or the edit is completed. If the input is awaited, the process is returned to the step ST1 and the series of processes described above is repeated. To finish.

【0005】[0005]

【発明が解決しようとする課題】従来のエディタは以上
のように構成されているので、それを用いてプログラム
のコーディングを行った場合、プログラマの経験不足、
あるいは作業者の不注意などによって書式誤りが発生し
やすく、書式誤りが発生するとデバッグツールやコンパ
イルを実行するまで発見できないという問題点があっ
た。
Since the conventional editor is constructed as described above, when a program is coded using it, the programmer lacks experience.
Alternatively, there is a problem that a format error is likely to occur due to carelessness of a worker, and if the format error occurs, it cannot be detected until a debugging tool or compilation is executed.

【0006】この発明は上記のような問題点を解消する
ためになされたもので、作業者の不注意や経験の浅いプ
ログラマなどによる書式誤りの発生を防止できるエディ
タを得ることを目的とする。
The present invention has been made in order to solve the above problems, and an object thereof is to obtain an editor capable of preventing the carelessness of an operator and the occurrence of a format error caused by an inexperienced programmer.

【0007】[0007]

【課題を解決するための手段】請求項1に記載の発明に
係るエディタは、命令文の書式定義情報を格納した書式
定義ファイル、それより抽出された書式定義情報に基づ
いて命令文の書式制御を行う書式制御部、および書式制
御された情報を格納する書式制御情報ファイルを設けた
ものである。
An editor according to a first aspect of the present invention is a format definition file storing format definition information of a statement, and a format control of a statement based on the format definition information extracted from the format definition file. A format control section for performing the above, and a format control information file for storing the format-controlled information are provided.

【0008】また、請求項2に記載の発明に係るエディ
タは、各命令文をファンクションキーに割り当てるため
の情報を書式定義ファイルに付加したものである。
In the editor according to the second aspect of the present invention, information for assigning each command statement to a function key is added to the format definition file.

【0009】[0009]

【作用】請求項1に記載の発明における書式制御部は、
入力された命令文を書式定義ファイルから抽出した書式
定義情報に基づいて書式制御して、その書式をガイドす
ることにより、作業者の不注意や経験の浅いプログラマ
などによる書式誤りの発生を未然に防止することができ
るエディタを実現する。
The format control section in the invention described in claim 1
By controlling the format of the input command statement based on the format definition information extracted from the format definition file and guiding the format, the carelessness of the operator and the occurrence of format errors by inexperienced programmers etc. can be prevented. Realize an editor that can be prevented.

【0010】また、請求項2に記載の発明における書式
定義ファイルは、各命令文をファンクションキーに割り
当てるための情報を持つことにより、キーボードのファ
ンクションキーより命令文を入力することを可能とす
る。
The format definition file according to the second aspect of the present invention has information for assigning each command statement to a function key, so that the command statement can be input from the keyboard function keys.

【0011】[0011]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。図1はこの発明によるエディタの一実施例を示す
ブロック図である。図において、1はキーボード、2は
エディタ、3は入力制御部、6はCRT、7はソースフ
ァイルであり、図22に同一符号を付した従来のそれら
と同一、あるいは相当部分であるため詳細な説明は省略
する。また、8はプログラム言語の命令文およびその命
令文に対応したカッコ(開き、閉じ)の行替えを含んだ
挿入位置と種類、カーソル位置(複数)、処理条件など
の区切り文字の情報等の書式定義情報が格納された書式
定義ファイルであり、この書式定義ファイル8にはま
た、対象言語特有の書式なども記述されている。9はこ
の書式定義情報などに基づいてカッコの挿入やカーソル
の移動等を行う書式制御部であり、10はこの書式制御
部9で書式制御が行われた情報が格納される書式制御情
報ファイルである。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an editor according to the present invention. In the figure, 1 is a keyboard, 2 is an editor, 3 is an input control unit, 6 is a CRT, and 7 is a source file, which are the same as or equivalent to those of the conventional ones shown in FIG. The description is omitted. Further, 8 is a format of information such as a delimiter character such as an insertion position and type including cursor line breaks (opening and closing) corresponding to the command language, and a cursor position (plurality), a processing condition, and the like. This is a format definition file in which definition information is stored. The format definition file 8 also describes a format unique to the target language. Reference numeral 9 denotes a format control unit that inserts parentheses and moves a cursor based on the format definition information, and 10 is a format control information file that stores information that is format-controlled by the format control unit 9. is there.

【0012】次に動作について説明する。ここで、図2
はこのように構成されたエディタ2の処理の流れを示す
フローチャートである。まず、ステップST11にて書
式定義ファイル8に格納されていた、命令文に対応した
カッコ(開き、閉じ)の行替えを含む挿入位置と種類、
カーソル位置(複数)、処理条件等の区切り文字の情報
などの書式定義情報が書式制御部9によって抽出され
る。次に、ステップST12およびST13において従
来の場合と同様に、キーボード1からのキーボード入
力、および入力制御部3による入力制御が行われる。次
いで、ステップST14でそれが命令文であるか否か判
断される。この場合、カッコキーやタブキー等で判断し
ていた従来の場合とは異なり、キー情報の集まりである
命令文そのもので判断している。
Next, the operation will be described. Here, FIG.
Is a flow chart showing the flow of processing of the editor 2 configured as described above. First, at step ST11, the insertion position and type, including the line break of the parentheses (open and close) corresponding to the command statement, stored in the format definition file 8,
The format control unit 9 extracts format definition information such as cursor positions (plurality) and information about delimiters such as processing conditions. Next, in steps ST12 and ST13, keyboard input from the keyboard 1 and input control by the input control unit 3 are performed as in the conventional case. Then, in step ST14, it is determined whether or not it is a statement. In this case, unlike the conventional case where the parenthesis key or the tab key is used for the determination, the instruction statement itself, which is a collection of key information, is used for the determination.

【0013】ステップST14による判断の結果、それ
が命令文であった場合、書式制御部9はステップST1
5において、ステップST11で書式定義ファイル8よ
り抽出した書式定義情報と、書式制御情報ファイル10
に格納されている情報を基に書式制御を行う。なお、こ
の書式制御では、カッコキーやタブキーに対して、閉じ
カッコの位置決めや自動入力、カーソルの移動等を行う
従来のキー制御とは異なり、命令文に対しての位置決
め、ユーザが入力すべき箇所へのカーソル移動、命令文
と対になる命令文、例えばif文に対するelse文等
の自動入力なども行われ、カーソルの移動は、入力必須
項目が複数あれば、命令文の入力終了情報が確認される
まで継続して行われる。そして、その他の対象言語特有
の書式ガイドも行う。
If the result of determination in step ST14 is that it is an imperative sentence, the format control section 9 determines in step ST1.
5, the format definition information extracted from the format definition file 8 in step ST11 and the format control information file 10
Format control based on the information stored in. Note that this format control is different from the conventional key control that positions the closing brace, automatically inputs, moves the cursor, etc. for the parenthesis key and the tab key. The cursor is moved to a position, and an instruction sentence paired with the instruction sentence, for example, an else sentence for an if sentence is automatically input, and the like. It will continue until confirmed. It also provides formatting guides specific to other target languages.

【0014】このようにして書式制御が行われた情報
は、ステップST16で書式制御情報ファイル10に格
納される。なお、この書式制御情報ファイル10には、
入力された命令文やそれに対応するカッコの位置、およ
び判定文の位置等のソースファイル7の書式が格納され
る。ここで、前記ステップST15の書式制御にて、挿
入や削除などの操作が実行された場合には、この書式制
御情報ファイル10を参照することによって、正しいカ
ッコの挿入位置、カーソルの移動位置の算出、あるいは
命令文の削除時などにおける、対応する閉じカッコの削
除や、閉じカッコのみの削除の拒絶なども行うことがで
きる。
The information subjected to the format control in this manner is stored in the format control information file 10 in step ST16. In addition, in this format control information file 10,
The format of the source file 7 such as the input command statement, the position of parentheses corresponding to the command statement, and the position of the judgment statement is stored. Here, when an operation such as insertion or deletion is executed in the format control of step ST15, the correct parenthesis insertion position and cursor movement position are calculated by referring to this format control information file 10. , Or when deleting a statement, the corresponding closing parenthesis can be deleted, or the deletion of only the closing parenthesis can be rejected.

【0015】この書式制御の結果はエディタ2よりCR
T6に送られ、ステップST17でその画面上に表示さ
れる。一方、ステップST14で命令文ではないと判断
された場合には、そのキー情報がそのままCRT6に送
られてステップST17で画面表示される。その後、ス
テップST18で入力待ちかエディット終了かを判断
し、入力待ちの状態であれば処理はステップST12に
戻されて、上記一連の処理が繰り返され、ステップST
18でエディット終了が検出されると全ての処理を終了
する。
The result of this format control is CR from the editor 2.
It is sent to T6 and displayed on the screen in step ST17. On the other hand, if it is determined in step ST14 that it is not a command statement, the key information is sent to the CRT 6 as it is and displayed on the screen in step ST17. Then, in step ST18, it is determined whether the input is awaited or the editing is completed. If the input is awaited, the process is returned to the step ST12, and the series of processes described above are repeated.
When the end of editing is detected in 18, all processing is ended.

【0016】次に、コーディング時の書式がどのように
ガイドされるかについて、if文を例に具体的に説明す
る。ここで、図3〜図21はキーボード入力とともに変
化するCRT6の画面の表示状態を示す説明図である。
なお、図中、黒塗りの矩形はカーソル位置を示し、アン
ダーラインは対応する入力操作に対して書式ガイドされ
た部分を示す。
Next, how to guide the format at the time of coding will be specifically described by using an if sentence as an example. Here, FIG. 3 to FIG. 21 are explanatory views showing the display state of the screen of the CRT 6 which changes with keyboard input.
In the figure, the black rectangle indicates the cursor position, and the underline indicates the portion that is format-guided to the corresponding input operation.

【0017】まず、“if(”が入力されてif文であ
ることが認識されると、図3に示すように、判定式部分
の閉じカッコ“)”と処理命令部分のカッコ“{}”が
自動的に入力される。このとき、処理命令部分の開きカ
ッコはif文の最終列、閉じカッコは行替えを行ってi
f文と同一の列に記述する。以下、処理命令部分のカッ
コは全て同様のレベル合わせを行うものとする。また、
処理命令部分の開きカッコと閉じカッコの間は1行空け
て入力が必要であることを強調する。なお、カーソルは
判定式部分に移動して挿入状態となる。ここで、判定式
“a=b”を入力してリターンキーを操作すると、図4
のように判定式部分の開きカッコと閉じカッコの間にそ
の判定式が記述され、カーソルは処理命令部分に移動し
て挿入状態となる。ただし、そのカーソル位置はif文
より下がった位置となる。以下、処理命令部分は全て同
様の位置合わせを行うものとする。
First, when "if (" is input and it is recognized that it is an if sentence, as shown in FIG. 3, the closing parenthesis ")" of the judgment expression part and the parenthesis "{}" of the processing instruction part are shown. Is automatically entered. At this time, the opening parenthesis of the processing instruction part is changed to the last column of the if statement, and the closing parenthesis is changed to the i
Describe in the same column as the f sentence. Hereinafter, all the parentheses in the processing instruction part are subjected to the same level matching. Also,
Emphasize that one line is required between the opening and closing parentheses in the processing instruction section. Note that the cursor moves to the judgment formula portion and enters the insertion state. Here, if the judgment formula “a = b” is input and the return key is operated,
As described above, the judgment expression is described between the opening parenthesis and the closing parenthesis of the judgment expression portion, and the cursor moves to the processing instruction portion and enters the insertion state. However, the cursor position is lower than the if sentence. Hereinafter, it is assumed that all the processing instruction parts perform similar alignment.

【0018】次に処理命令として“if(”が入力され
ると、図5に示すように、図3の場合と同様の処理によ
って判定式部分と処理命令部分のカッコが自動入力さ
れ、さらに、判定式“c<0”が入力されてリターンキ
ーが操作されると、図6に示すようにその判定式が記述
される。次に“d=1”が処理命令として入力され、リ
ターンキーが操作されると、図7に示すように区切り文
字“;”が自動入力され、次の行に1行追加してカーソ
ルも移動する。次に、入力の必要がなければリターンキ
ーのみを操作する。これによって、図8に示すようにi
f文に対応するelse文、および処理命令部分のカッ
コが自動入力され、カーソルは“else”の後に移動
する。
Next, when "if (" is input as a processing instruction, as shown in FIG. 5, the determination expression portion and the parentheses of the processing instruction portion are automatically input by the same processing as in FIG. 3, and further, When the judgment expression "c <0" is input and the return key is operated, the judgment expression is described as shown in Fig. 6. Next, "d = 1" is input as a processing instruction, and the return key is pressed. When operated, the delimiter ";" is automatically input as shown in Fig. 7, one line is added to the next line and the cursor is also moved.Next, if there is no need to input, only the return key is operated. As a result, as shown in FIG.
The else sentence corresponding to the f sentence and the parentheses of the processing instruction portion are automatically input, and the cursor moves after “else”.

【0019】次に、“if”を入力して命令文を“el
seif”とすると、if文の場合と同様に判定式部分
のカッコが図9のごとく自動入力される。その後、判定
式を結合処理するために開きカッコ“(”を入力する
と、図10に示すように対応する閉じカッコが自動入力
される。次いで判定式“c=0”を入力してリターンキ
ーを操作すると、図11のようにその判定式が前記カッ
コ内に記述され、カーソルが結合命令部分へ移動する。
次に、結合命令“&&”が入力されてリターンキーが操
作されると、図12に示すようにカーソルは判定部分に
移動し、さらに、開きカッコ“(”の入力によって、図
13のように閉じカッコが自動入力される。ここで、判
定式“x>0”を入力してリターンキーの操作を行う
と、図14に示すようにその判定式が前記カッコ内に記
述されて、カーソルが結合処理部分へ移動する。
Next, "if" is input to change the command statement to "el".
If "seif" is set, the parentheses of the judgment expression portion are automatically input as in the case of the if statement as shown in Fig. 9. After that, when the opening parenthesis "(" is input to combine the judgment expressions, it is shown in Fig. 10. Then, the corresponding closing parenthesis is automatically input.When the judgment expression “c = 0” is input and the return key is operated, the judgment expression is described in the parentheses as shown in FIG. Move to the part.
Next, when the join command “&&” is input and the return key is operated, the cursor moves to the determination part as shown in FIG. 12, and further, by inputting the opening bracket “(”, as shown in FIG. The closing parenthesis is automatically entered.When the judgment expression "x>0" is input and the return key is operated, the judgment expression is described in the parentheses as shown in FIG. Move to the join processing part.

【0020】結合処理の必要がなければリターンキーの
みが操作される。これによりカーソルは図15に示すよ
うに処理命令部分に移動して挿入状態となる。ここで、
処理命令“d=2”が入力されてリターンキーが操作さ
れれば、図16に示すように区切り文字“;”が自動入
力され、次の行に1行追加してカーソルをそこに移動さ
せる。ここでも入力の必要がなければリターンキーのみ
が操作され、図17に示すように、else文および処
理命令部分のカッコが自動入力されて、カーソルは“e
lse”の後に移動する。次に、リターンキーを操作し
て命令文を“else”にすると、図18に示すように
カーソルが処理命令部分へ移動して挿入状態となる。
If there is no need to perform the combining process, only the return key is operated. As a result, the cursor moves to the processing instruction portion and enters the insertion state as shown in FIG. here,
When the processing command “d = 2” is input and the return key is operated, the delimiter “;” is automatically input as shown in FIG. 16, one line is added to the next line, and the cursor is moved there. . Here again, if there is no need to input, only the return key is operated, and as shown in FIG. 17, the else statement and the parentheses of the processing instruction are automatically input, and the cursor is "e".
Then, when the return key is operated to change the command statement to “else”, the cursor moves to the processing command portion and enters the insertion state as shown in FIG.

【0021】ここで、処理命令として“d=3”を入力
した後にリターンキーを操作すると、図19のように区
切り文字“;”が自動的に入力される。この場合には、
命令文が“else”であるため、2つ目のif文の終
了と判断して1つ目のif文に合わせてelse文およ
び処理命令部分のカッコがさらに自動入力される。この
時、カーソルは“else”の後に移動する。次に、リ
ターンキーを操作して命令文を“else”にすると、
図20に示すように、カーソルが処理命令部分へ移動し
て挿入状態となる。処理命令が必要ない場合にはリター
ンキーが操作され、それによって1つ目のif文を終了
し、カーソルは図21に示すようにif文の外に移動す
る。
If the return key is operated after "d = 3" is input as the processing instruction, the delimiter ";" is automatically input as shown in FIG. In this case,
Since the instruction statement is “else”, it is determined that the second if statement has ended, and the parentheses of the else statement and the processing instruction portion are further automatically input according to the first if statement. At this time, the cursor moves after "else". Next, if you operate the return key to set the statement to "else",
As shown in FIG. 20, the cursor moves to the processing instruction portion and enters the insertion state. When the processing instruction is not necessary, the return key is operated, thereby ending the first if sentence and moving the cursor to outside the if sentence as shown in FIG.

【0022】以上、if文について書式ガイドの一例を
説明したが、for文、do文など他の命令文において
も同様であり、書式のガイドでは基本的には以下の4つ
の処理が行われる。 “)”,“{”,“}”,“;”,“:”等のカッ
コや区切り文字の自動入力。 命令文、カッコ、処理命令等の位置合わせ。 入力必須部分等の入力位置へのカーソルの移動。 if文に対するelse文、do文に対するwhi
le文、switch文に対するcase文やdefa
ult文などの、命令文に対応した命令文の自動入力。
Although an example of the format guide for the if statement has been described above, the same applies to other command statements such as a for statement and a do statement, and the format guide basically performs the following four processes. Automatic input of parentheses and delimiters such as ")", "{", "}", ";", ":". Positioning of statements, parentheses, processing instructions, etc. Move the cursor to the input position such as the required input field. else statement for if statement and whi for do statement
case statement and default for le statement and switch statement
Automatically input command statements corresponding to command statements such as ult statements.

【0023】ここで、上記書式のガイドはその一実施例
を示したものであり、命令文、カッコ、処理命令などの
位置合わせ(フォーマット)は、書式定義ファイル8に
て任意に設定できるものであることはいうまでもない。
Here, the above-mentioned format guide shows one example thereof, and the alignment (format) of command statements, parentheses, processing instructions, etc. can be arbitrarily set in the format definition file 8. Needless to say.

【0024】なお、上記実施例の書式定義ファイル8を
各言語対応に持つことにより、複数の言語に対応するこ
とができるエディタが実現できる。
By having the format definition file 8 of the above embodiment for each language, it is possible to realize an editor that can support a plurality of languages.

【0025】実施例2.また、上記実施例1では、プロ
グラム言語の命令文の入力は、作業者によるキーボード
1の操作によって行う場合について述べたが、命令文を
キーボード1の各ファンクションキーに割り当てるため
の情報を書式定義ファイル8に付加し、ファンクション
キーよりワンタッチで命令文をエディタ2に入力するよ
うにしてもよい。具体的には、例えば#1ファンクショ
ンキーを操作すると“if(”、#2ファンクションキ
ーを操作すると“for(”など、各命令文が自動的に
エディタ2に入力され、エディタ2はこのキーボード入
力に先立つステップST11にて、その命令文をファン
クションキーと対応付けておけば、それ以降は実施例1
の場合と全く同様に処理を進めることができる。
Example 2. Further, in the first embodiment described above, the case where the command sentence of the programming language is input by the operation of the keyboard 1 by the operator has been described. 8 may be added, and the command statement may be input to the editor 2 with one touch of the function key. Specifically, for example, when the # 1 function key is operated, each command sentence such as “if (” and when the # 2 function key is operated, “for (”, etc. is automatically input to the editor 2, and the editor 2 inputs the keyboard. In step ST11 prior to the above, if the command statement is associated with the function key, the subsequent steps will be described in the first embodiment.
The processing can proceed in exactly the same way as in the case of.

【0026】このことによって、キー入力回数を削減す
ることができ、命令文の認識を容易に行うことが可能と
なる。また、上記実施例1では入力の終了をリターンキ
ーの操作によって確認するものであったため、ブランク
行を挿入することは不可能であったが、この実施例2の
ように、入力終了認識もファンクションキーにて設定す
ることによりブランク行の入力も可能となる。
As a result, the number of times of key input can be reduced, and the command statement can be easily recognized. Further, in the first embodiment, the end of the input is confirmed by the operation of the return key, so it is impossible to insert a blank line. However, as in the second embodiment, the input end recognition is also a function. A blank line can be input by setting with the key.

【0027】[0027]

【発明の効果】以上のように、請求項1に記載の発明に
よれば、入力された命令文を書式定義情報に基づいて書
式制御してその書式をガイドするように構成したので、
作業者の不注意や経験の浅いプログラマなどによる書式
誤りの発生を未然に防止することが可能となり、ソース
コードの修正や書式の再チェックのための時間が削減で
きて、ソフトウェアの生産性を向上させることができる
エディタが得られる効果がある。
As described above, according to the first aspect of the present invention, the format of the input command statement is controlled based on the format definition information to guide the format.
It is possible to prevent the occurrence of format errors due to carelessness of workers and inexperienced programmers, and it is possible to reduce the time for correcting the source code and rechecking the format, thus improving software productivity. There is an effect that an editor that can be obtained is obtained.

【0028】また、請求項2に記載の発明によれば、各
命令文をファンクションキーに割り当てるための情報を
書式定義ファイルに付加するように構成したので、キー
ボードのファンクションキーより命令文を入力すること
が可能となって、キー入力が削減でき、命令文の認識を
容易に行うことが可能となる。
According to the second aspect of the invention, since the information for assigning each command statement to the function key is added to the format definition file, the command statement is input from the function key of the keyboard. This makes it possible to reduce the key input and easily recognize the command statement.

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

【図1】この発明によるエディタの一実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of an editor according to the present invention.

【図2】上記実施例における動作の流れを示すフローチ
ャートである。
FIG. 2 is a flowchart showing a flow of operations in the above embodiment.

【図3】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 3 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図4】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 4 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図5】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 5 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図6】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 6 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図7】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 7 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図8】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 8 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図9】上記実施例のキーボード入力に対する画面表示
を示す説明図である。
FIG. 9 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図10】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 10 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図11】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 11 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図12】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 12 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図13】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 13 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図14】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 14 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図15】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 15 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図16】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 16 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図17】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 17 is an explanatory diagram showing a screen display in response to a keyboard input in the above embodiment.

【図18】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 18 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図19】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 19 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図20】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 20 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図21】上記実施例のキーボード入力に対する画面表
示を示す説明図である。
FIG. 21 is an explanatory diagram showing a screen display in response to a keyboard input of the above embodiment.

【図22】従来のエディタを示すブロック図である。FIG. 22 is a block diagram showing a conventional editor.

【図23】その動作の流れを示すフローチャートであ
る。
FIG. 23 is a flowchart showing the flow of the operation.

【符号の説明】[Explanation of symbols]

1 キーボード 3 入力制御部 7 ソースファイル 8 書式定義ファイル 9 書式制御部 10 書式制御情報ファイル 1 keyboard 3 input control section 7 source file 8 format definition file 9 format control section 10 format control information file

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 キーボードより入力された情報を識別し
て、それがプログラム言語の命令文であるか否かを判断
する入力制御部と、前記命令文の書式定義情報が格納さ
れた書式定義ファイルと、前記書式定義ファイルから抽
出した前記書式定義情報に基づいて、前記入力制御部で
命令文と判断された情報の書式制御を行う書式制御部
と、前記書式制御部で書式制御された情報が格納される
書式制御情報ファイルとを備えたエディタ。
1. An input control unit for identifying information input from a keyboard to determine whether or not it is a command statement of a programming language, and a format definition file storing format definition information of the command statement. And a format control unit that controls the format of the information determined to be a command statement by the input control unit based on the format definition information extracted from the format definition file, and information that is format-controlled by the format control unit. An editor with a format control information file to be stored.
【請求項2】 前記書式定義ファイルに、前記命令文の
それぞれを前記キーボードのファンクションキーに割り
当てるための情報を付加し、前記命令文の入力を前記キ
ーボードのファンクションキーより入力することを特徴
とする請求項1に記載のエディタ。
2. The format definition file is provided with information for assigning each of the command statements to a function key of the keyboard, and the command statement is input through the function keys of the keyboard. The editor according to claim 1.
JP35394492A 1992-12-16 1992-12-16 Editor Pending JPH06187139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35394492A JPH06187139A (en) 1992-12-16 1992-12-16 Editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35394492A JPH06187139A (en) 1992-12-16 1992-12-16 Editor

Publications (1)

Publication Number Publication Date
JPH06187139A true JPH06187139A (en) 1994-07-08

Family

ID=18434270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35394492A Pending JPH06187139A (en) 1992-12-16 1992-12-16 Editor

Country Status (1)

Country Link
JP (1) JPH06187139A (en)

Similar Documents

Publication Publication Date Title
US5231670A (en) Voice controlled system and method for generating text from a voice controlled input
CN107544437B (en) Machining program editing device, method and storage medium
JPH06187139A (en) Editor
KR102357029B1 (en) The combined process registration apparatus and method using interactive program in computer numarical control machine tools
JPH03257508A (en) Nc automatic programming system for interactive language
JPS63286905A (en) Editing device for numerical control data
JPH0371209A (en) Abnormality detector for numerical control program
JPS5827242A (en) Controlling system between programs
JPS62203268A (en) Mechanical translation system
JP2518157B2 (en) Method and device for generating revision history of program
JP3259987B2 (en) Interactive numerical controller
JP3283055B2 (en) Program editing device
JPS63276186A (en) Character reader
JPH03222038A (en) Parameter input system in program
JPH07200560A (en) Document preparing device
JPH0317740A (en) Program editing support system
JPH04148305A (en) Edited part confirming system
JPH03229295A (en) Cursor movement system for screen editing time
JPS63292305A (en) Nc automatic programming device
JPS608935A (en) Interactive program processing system
JPH0261715A (en) Command interpreter with memory function
WO1987001476A1 (en) Method of confirming a robot program
WO1989011689A1 (en) System for preparing a machining program
JPH04211825A (en) Program generating device
JPH05241813A (en) Automatic program addition correction system