JPH02115968A - Input guide system for editor - Google Patents

Input guide system for editor

Info

Publication number
JPH02115968A
JPH02115968A JP63268023A JP26802388A JPH02115968A JP H02115968 A JPH02115968 A JP H02115968A JP 63268023 A JP63268023 A JP 63268023A JP 26802388 A JP26802388 A JP 26802388A JP H02115968 A JPH02115968 A JP H02115968A
Authority
JP
Japan
Prior art keywords
text
function
information
editor
input
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
JP63268023A
Other languages
Japanese (ja)
Inventor
Tetsuo Tanaka
田中 哲雄
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63268023A priority Critical patent/JPH02115968A/en
Publication of JPH02115968A publication Critical patent/JPH02115968A/en
Pending legal-status Critical Current

Links

Landscapes

  • Machine Translation (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To automatically insert the part of a text automatically defined to a text by performing the syntax analysis and the meaning analysis of the text simultaneously when the text is edited by using an editor, and displaying, for example, the same number of frames as that of arguments of a function or a procedure. CONSTITUTION:A command inputted from a keyboard 11 is analyzed at a command analysis part 21, and the syntax analysis and the meaning analysis of the declaration part of an inputted text are performed at a syntax and meaning analysis part 22 when the command is a registration command, and an analysis result is registered on a storage medium as guide information 13 by a guide information retrieval and registration part 23. When the command is a guide command, the guide information with respect to the function or the procedure being inputted is retrieved. Retrieved information is displayed on a display screen 10, and input is guided based on retrieved guide information, and the syntax analysis of an inputted character string is performed, and re- input is requested to the user of the editor when the input is performed incorrectly.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機言語のテキストの編集を行うエディタの
機能とその実現方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an editor function for editing text in a computer language and a method for realizing the same.

〔従来の技術〕[Conventional technology]

通常計算機言語のエディタは、キーボードやマウスなど
の入力手段からのコマンドと文字の入力に従ってテキス
トを編集し、ディスプレーなどの出力手段にその経過を
表示する。しかし、そのコマンドは1文字列の挿入、削
除、複写、Wt換など字面に対する操作のみで、通常の
エディタはテキストの内容(テキストを構成している言
語の構文、意味)に依存する動作を行う機能を持ってい
ない。
A computer language editor usually edits text according to commands and characters input from input means such as a keyboard or mouse, and displays the progress on an output means such as a display. However, these commands only operate on the font, such as inserting, deleting, copying, and converting a single character string; normal editors perform operations that depend on the content of the text (syntax and meaning of the language that composes the text). It has no function.

計算機言語は、その言語に固有の構文、意味を持ってお
り、また言語によってはテキストの記述スタイルが確立
されたものもある。
Computer languages have their own unique syntax and meaning, and some languages have established text writing styles.

誘導機能を持つエディタの大半は言語の構文に関する情
報をもち、その構文に沿ったテキストを誘導するもので
ある。ここで言う意味とは、関数や手続きの引数の数・
データ型など、言語の構文規則からは求めることができ
ない言語仕様に関する情報である。また、誘導機能とは
、エディタ利用者が出力手段に表示されるエディタの要
求通りに文字またはコマンドを入力すれば計算機言語の
構文、意味、記述スタイルに沿ったテキストを作成でき
るようなエディタの機能である。
Most editors with guiding functions have information about the syntax of a language and guide the text according to that syntax. What we mean here is the number of arguments for a function or procedure.
Information about language specifications, such as data types, that cannot be obtained from the syntax rules of the language. In addition, the guidance function is an editor function that allows an editor user to create text that conforms to the syntax, meaning, and writing style of the computer language by inputting characters or commands displayed on the output means as requested by the editor. It is.

また、記述スタイルとはプログラムの式や文の形であり
、言語仕様として規定されてはいないがテキストを作成
するほとんどの場合その形で記述するものである。
A writing style is the form of a program's formulas or statements, and although it is not specified as a language specification, it is written in that form in most cases when creating text.

本発明の出願前に知られている例としては、日立評論、
 Vol、68. Nci5. pp49−54.(1
986)に記載されるように計算機誘導形構造エディタ
が提案されている。しかし、それらの例には意味解析で
得られる情報や記述スタイルに関する情報を用いた誘導
機能はない。
Examples known before the filing of the present invention include Hitachi Review,
Vol, 68. Nci5. pp49-54. (1
A computer-guided structure editor has been proposed as described in 986). However, these examples do not have a guidance function using information obtained through semantic analysis or information regarding writing style.

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

手続きや関数をテキスト中に宣言できる計算機言語のテ
キストを編集する場合、既に入力済みの手続きや関数の
宣言部の情報によって引数の数やデータ型の誘導または
自動的なチエツクが可能であるにもかかわらず、テキス
ト編集時にこのようなチエツクを行なわないため、構文
や意味の誤りは編集終了後の構文・意味解析を行なうま
で発見できない、また、記述スタイルが確立された計算
機言語のスタイルを作成する場合、はとんど自動的にテ
キストを作成できる部分があるにもかかわらず、全て一
文字ずつキーボードなどから入力しなければならない。
When editing text in a computer language that allows procedures and functions to be declared in the text, it is possible to derive or automatically check the number of arguments and data types based on the information in the declaration section of the procedure or function that has already been entered. However, since such checks are not performed when editing text, errors in syntax and meaning cannot be discovered until syntactic and semantic analysis is performed after editing, and it is also possible to create a computer language style with an established writing style. In most cases, even though there are parts where text can be created automatically, you have to enter each character one by one using a keyboard.

本発明はこのような不便を改善すべく、自動的に作成で
きるテキストの部分を自動的に作成するエディタの機能
とその実現方法を提供する。
In order to improve this inconvenience, the present invention provides an editor function that automatically creates text parts that can be automatically created, and a method for realizing the same.

また、引数の多い手続きや関数をテキスト中に挿入する
とき、エディタ利用者は引数の数や各引数のデータ型が
何であったかを確かめるために、いちいちその関数の宣
言部を探すが、もしくは宣言部の・ハードコピーを見な
ければならない。本発明はこの不便を解決すべく、挿入
しようとする関数の宣言部を即座にディスプレーに表示
する機能と、その実現方法を提供する。
Also, when inserting a procedure or function with many arguments into text, editor users search for the declaration section of the function each time to check the number of arguments and the data type of each argument. Must see the hard copy. In order to solve this inconvenience, the present invention provides a function for immediately displaying the declaration section of a function to be inserted on a display, and a method for realizing the function.

従って1本発明の一つの目的は自動的に定まるテキスト
の部分を自動的にテキストに挿入する手段を提供するこ
とにある。
Accordingly, one object of the present invention is to provide a means for automatically inserting automatically defined text portions into text.

本発明の他の目的は、関数又は手続きの引数の数やデー
タ型をテキスト編集時にチエツクする手段を提供するこ
とにある。
Another object of the present invention is to provide a means for checking the number and data types of arguments of a function or procedure when editing text.

本発明の他の目的は、関数又は手続きをテキストに挿入
するとき、エディタ利用者がその関数の宣言部に関する
情報を即座に知る手段を提供することにある。
Another object of the present invention is to provide a means for an editor user to immediately obtain information regarding the declaration section of a function or procedure when inserting the function or procedure into text.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記目的を達成するために、エディタを用いて
テキストを編集するとき、同時にそのテキストの構文解
析、意味解析を行ない、宣言部編集時には上記解析の結
果(以下、誘導情報と呼ぶ)を記憶媒体に記憶し、非宣
言部編集時でかつ宣言済みの関数又は手続きをテキスト
中に挿入する時には、その関数又は手続きに関して上記
媒体に記憶された情報を出力手段に表示し、関数または
手続きの引数の数だけ例えば枠を表示することにより、
引数の入力を誘導し、かつ入力を誘導情報と照らしあわ
せることによりその正しさを検査するものである。ここ
で、上記誘導情報とは、編集の対象としている計算機言
語の関数や手続きの引数の数、データ型などを言う。
In order to achieve the above object, the present invention simultaneously analyzes the syntax and semantics of the text when editing the text using an editor, and uses the results of the above analysis (hereinafter referred to as guidance information) when editing the declaration section. When editing a non-declaration section and inserting a declared function or procedure into the text, the information stored in the medium regarding the function or procedure is displayed on the output means, and the information about the function or procedure is displayed on the output means. For example, by displaying as many frames as the number of arguments,
It guides the input of arguments and checks its correctness by comparing the input with guidance information. Here, the above-mentioned guidance information refers to the number of arguments, data type, etc. of functions and procedures in the computer language to be edited.

また、記述スタイルに関する情報をエディタ内にプログ
ラム又はデータとして持ち、記述スタイルが確立されて
いる部分については、その情報を用いて記述スタイルを
誘導するものである。
Furthermore, the editor has information regarding the writing style as a program or data, and uses that information to guide the writing style for parts where the writing style has been established.

〔作用〕[Effect]

本発明によれば、エディタ利用者は、関数の引数を入力
するとき、誘導された数の引数を入力すればよく3、引
数の数の誤りはなくなる。また5表示されたデータ型の
変数又は関数を入力すればよく、引数のデータ型の誤り
は起こりにくくなる。
According to the present invention, when inputting the arguments of a function, the editor user only has to input the derived number of arguments3, thereby eliminating errors in the number of arguments. In addition, it is only necessary to input a variable or function of the data type displayed in 5, and errors in the data type of the argument are less likely to occur.

更に、引数のデータ型の誤りが起こった場合、エディタ
が再度入力を要求することで誤りはなくなる。
Furthermore, if an error occurs in the data type of an argument, the error will be corrected by the editor requesting input again.

また、テキストの宣言部から自動的に求まる部分はエデ
ィタが自動的に挿入することによって、エディタ利用者
の入力の手間を削減できる。
Furthermore, the editor automatically inserts the portion automatically determined from the declaration section of the text, thereby reducing the input effort of the editor user.

【実施例〕【Example〕

(実施例1) 本発明の実施例を図面に基づき詳細に説明する。 (Example 1) Embodiments of the present invention will be described in detail based on the drawings.

第1図−aは誘導処理手順の一実施例を示すフローチャ
ートである。第1図−b、第1図−〇はそれぞれ第1図
−aの処理103と107の詳細である。第2図はエデ
ィタのシステム構成の一実施例であり、また第3図は関
数の引数の誘導の機能と関数の宣言部表示の機能を手続
き的言語のテキスト編集に適用した場合のディスプレー
画面の遷移例である。
FIG. 1-a is a flowchart showing one embodiment of the guidance processing procedure. FIG. 1-b and FIG. 1-○ are details of the processes 103 and 107 in FIG. 1-a, respectively. Figure 2 shows an example of the system configuration of the editor, and Figure 3 shows the display screen when the functions of deriving function arguments and displaying function declarations are applied to text editing of a procedural language. This is an example of a transition.

第2図において、10はディスプレー 11はキーボー
ド、12はエディタであり、コマンド解釈実行部21.
構文・意味解析部22.誘導情報検索登録部23をもつ
、13は意味解析によって得られた誘導情報を記憶する
媒体である。
In FIG. 2, 10 is a display, 11 is a keyboard, 12 is an editor, and a command interpretation/execution unit 21.
Syntactic/semantic analysis section 22. Reference numeral 13 denotes a medium that has a guidance information search registration section 23 and stores guidance information obtained through semantic analysis.

次に第1図のフローチャートおよび第3図のディスプレ
ー画面の遷移例に基づいて第2図の各部の動作を説明す
る。ただし、エディタ12のコマンドには解析情報を登
録する登録コマンド、誘導機能を起動する誘導コマンド
、通常の編集処理を行う通常コマンド、編集処理を終了
する終了コマンドがあるものとする。
Next, the operation of each part in FIG. 2 will be explained based on the flowchart in FIG. 1 and the transition example of the display screen in FIG. 3. However, it is assumed that the commands of the editor 12 include a registration command for registering analysis information, a guidance command for activating a guidance function, a normal command for performing normal editing processing, and an end command for terminating the editing processing.

まず、キーボード10から入力されたコマンドをコマン
ド解析部21で解析し、コマンドが終了コマンドならば
(101)、処理を終了する(110)。
First, a command input from the keyboard 10 is analyzed by the command analysis section 21, and if the command is an end command (101), the process is ended (110).

コマンドが登録コマンドならば(102)、構文・意味
解析部22で入力済みテキストの宣言部の構文・意味解
析を行い、誘導情報検索・登録部23によって解析結果
を誘導情報13として記憶媒体に登録する(103)。
If the command is a registered command (102), the syntax/semantic analysis unit 22 performs syntactic/semantic analysis of the declaration part of the input text, and the guidance information search/registration unit 23 registers the analysis result in the storage medium as guidance information 13. (103).

コマンドが誘導コマンドならば(104)、入力中の関
数又は手続きに関する誘導情報を検索し、もし入力中の
関数又は手続きに関する情報が未登録ならば(105)
、通常の編集処理を行う(ill)。
If the command is a guidance command (104), the guidance information regarding the function or procedure being input is searched, and if the information regarding the function or procedure being input is not registered (105)
, performs normal editing processing (ill).

そうでなければ、検索した情報をディスプレー画面10
に表示しく106)、検力した誘導情報に基づき入力を
誘導しく107)、入力された文字列の構文解析を行い
(1,08)、入力が正しくない場合は(109)、エ
ディタ利用者に再入力を要求する(107)。
Otherwise, the searched information will be displayed on screen 10.
106), guides input based on the detected guidance information 107), parses the input string (1, 08), and if the input is incorrect (109), prompts the editor user. Re-input is requested (107).

コマンドが終了コマンド、登録コマンド、誘導コマンド
のいずれでもなければ1通常の編集処理を行う(111
)、これを終了コマンドが入力されるまで繰り返す。
If the command is not a termination command, registration command, or guidance command, perform normal editing processing (111).
), repeat this until the end command is input.

上記構文・意味解析は、計算機言語のコンパイラやイン
タプリタにおける構文・意味解析と同様の方法で行う。
The above syntactic/semantic analysis is performed in the same manner as syntactic/semantic analysis in computer language compilers and interpreters.

第3図のディスプレー画面31の状態で登録コマンドが
入力されると、エディタは誘導情報34として関数の引
数の数とデータ型を記憶媒体に登録する。また誘導コマ
ンドが入力されると、上述の誘導情報34をエディタ利
用者が読み易い形でディスプレー画面に出力しく330
)、その誘導情報を用いて入力を誘導する。
When a registration command is input in the state of the display screen 31 in FIG. 3, the editor registers the number of arguments and data type of the function as guidance information 34 in the storage medium. Furthermore, when a guidance command is input, the above-mentioned guidance information 34 is output to the display screen in a format that is easy for the editor user to read 330.
), the guidance information is used to guide the input.

第3図において■記号33190記号332はエディタ
利用者が入力すべき位置を表わし、特に■記号331は
次に入力すべき位置を表わしている。なお、ディスプレ
ー画面に宣言部の情報を表示する場合、意味解析の結果
を表示するのではなく、宣言部のテキスト中の位置を記
憶しておき、その位置の文字列をそのまま出力しても同
じ効果が得られる。
In FIG. 3, ■ symbol 33190 symbol 332 represents the position where the editor user should input, and especially ■ symbol 331 represents the position where the editor user should input next. Note that when displaying the information of the declaration part on the display screen, instead of displaying the result of semantic analysis, it is possible to memorize the position of the declaration part in the text and output the string at that position as is. Effects can be obtained.

(実施例2) 本発明の他の実施例を図面を用いて詳細に説明する。こ
こでは、記述スタイルの確立された言語の例として代数
的仕様記述言語を取り上げる。
(Example 2) Another example of the present invention will be described in detail using the drawings. Here, we will take an algebraic specification description language as an example of a language with an established description style.

代数的仕様記述は、通常データ型宣言部、関数宣言部、
変数宣言部2等式集合部よりなり、関数は、構成子と定
義関数に分けられる。代数的仕様記述言語のテキストを
作成する場合、等大集合部は次にスタイルで記述する。
An algebraic specification usually consists of a data type declaration section, a function declaration section,
It consists of a variable declaration part and two equation set parts, and functions are divided into constructors and definition functions. When creating text for an algebraic specification description language, the isometric set part is next described in style.

代数的仕様記述では、構成子を f五、 fz、 ・・・l  fll とし、定義関数を gl*  g2e ”’e  gn とすると、等大集合部を次のスタイルで記述する。In the algebraic specification, the constructor f5, fz, ...l flll and the definition function is gl* g2e ”’e gn Then, the isometric set part is described in the following style.

gz(fx(・・・))=・・・; ga(fz(・・・))=・・・; gn(ft(・・・))=・・・; gz(fz(・・・))=・・・; g 2(f z(・・・));・・・;gn(fz(・
・・))=・・・; g s(f m(・・・))=・・・;gz(fm(・
・・))=・・・; gn(fm(・・・))=・・・; 上記記述スタイルの誘導を本発明に適用した実施例を図
面を用いて説明する。
gz(fx(...))=...; ga(fz(...))=...; gn(ft(...))=...; gz(fz(...) )=...;g 2(f z(...));...;gn(fz(・
・・))=...; g s(f m(...))=...;gz(fm(・
...))=...; gn(fm(...))=...; An embodiment in which the above description style induction is applied to the present invention will be described with reference to the drawings.

第4図は記述スタイルの誘導機能によるディスプレー画
面の遷移例、第5図は関数宣言部と変数宣言部の構文・
意味解析の結果得られる誘導情報、第6図は関数の引数
の誘導機能によるディスプレー画面の遷移例を表わす一
実施例である。
Figure 4 shows an example of display screen transitions using the description style guidance function, and Figure 5 shows the syntax and structure of the function declaration section and variable declaration section.
FIG. 6 is an example of the guidance information obtained as a result of the semantic analysis, showing an example of the transition of the display screen due to the function argument guidance function.

第4図中のテキストは代数的仕様記述言語で書かれてお
り、データ宣言部401、関数宣言部402.403、
変数宣言部404、等大集合部405からなる。この言
語では、関数宣言部、変数宣言部の情報を用いて等大集
合部を誘導する・。
The text in FIG. 4 is written in an algebraic specification language, including a data declaration section 401, function declaration sections 402 and 403,
It consists of a variable declaration section 404 and an equal size set section 405. In this language, the information in the function declaration section and variable declaration section is used to derive the equi-large set section.

第4図のディスプレー画面40の状態で登録コマンドが
入力されると、エディタは第5図に示す誘導情報51〜
54を記憶媒体に登録する。誘導情報登録後、誘導コマ
ンドが入力されると、誘導情報の構成子51と誘導情報
の定義関数52を合成して等式の左辺としてディスプレ
ーに表示する。
When a registration command is input in the state of the display screen 40 shown in FIG. 4, the editor displays guidance information 51 to 51 shown in FIG.
54 is registered in the storage medium. After the guidance information is registered, when a guidance command is input, the constructor 51 of the guidance information and the definition function 52 of the guidance information are combined and displayed on the display as the left side of the equation.

これをすべての組合せについて行う。その結果ディスプ
レー画面は第4図のディスプレー画面41のようになる
。このとき、構成子の引数は、誘導情報54に示される
データ型の変数を誘導情報53から検索して決定する。
Do this for all combinations. As a result, the display screen becomes like the display screen 41 in FIG. 4. At this time, the argument of the constructor is determined by searching the guidance information 53 for variables of the data type indicated in the guidance information 54.

本実施例によれば、構成子と定義関数の全ての組につい
てその値が定義されるようにエディタが誘導するので、
入力漏れがなくなる。また、構成子や定義関数を追加し
たときテキスト中のどの部分を修正すれば良いかをエデ
ィタ利用者は即座に知ることができる。
According to this embodiment, since the editor guides the values to be defined for all pairs of constructors and definition functions,
No more missing input. Furthermore, when adding a constructor or definition function, the editor user can immediately know which part of the text should be modified.

なお、誘導情報の登録はコマンドによらず、関数宣言部
、変数宣言部が挿入された時点でエディタが自動的に行
う方式も有りうる。
Note that the guide information may be registered automatically by the editor when the function declaration section or variable declaration section is inserted, without depending on the command.

また、構成子と定義関数の区別が構文から判断できない
場合は、エディタ利用者からの入力によって判断する。
If the distinction between a constructor and a defined function cannot be determined from the syntax, it is determined based on input from the editor user.

第6図に示すように代数的仕様記述言語の場合も、前記
第3図に示した手続き的言語と同様に関数の引数の誘導
も行える。このときの誘導情報は第5図の誘導情報54
である。
As shown in FIG. 6, in the case of an algebraic specification description language, arguments of a function can also be derived in the same way as in the procedural language shown in FIG. The guidance information at this time is guidance information 54 in Figure 5.
It is.

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

以上に説明したとおり本発明によれば自動的に定まるテ
キストの部分を自動的にテキストに挿入でき、効率良く
テキストの編集を行うことができる。
As described above, according to the present invention, automatically determined text portions can be automatically inserted into text, and text can be edited efficiently.

また、関数または手続きの引数の数やデータ型をテキス
ト編集時にチエツクするため、誤りの訂正を短時間で行
うことができる。
Additionally, since the number of arguments and data types of a function or procedure are checked when editing text, errors can be corrected in a short time.

また、関数または手続きをテキストに挿入するとき、そ
の関数の宣言部をディスプレー画面に表示するため、エ
ディタ利用者がいちいちその関数の宣言部を探す必要が
なくなる。
Furthermore, when a function or procedure is inserted into text, the declaration part of the function is displayed on the display screen, so the editor user does not have to search for the declaration part of the function one by one.

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

第1図は本発明の誘導処理手順の一実施例を示すフロー
チャート、第2図は本発明の一実施例のシステム構成の
ブロック図、第3図は関数の引数の誘導機能と関数の宣
言部表示機能を手続き的言語に適用した場合のディスプ
レー画面の遷移例。 第4図は記述スタイルの誘導機能によるディスプレー画
面の遷移例、第5図は関数宣言部と変数宣首部の構文・
意味解析の結果得られる誘導情報の睨、明図、第6図は
関数の引数の誘導機能の実施例におけるディスプレー画
面の遷移例である。 10・・・ディスプレー、11・・・キーボード、12
・・・エディタ、13・・・誘導情報の記憶媒体、21
・・・コマンド解釈実行部、22・・・構文意味解析部
、23・・・誘導情報検索登録部、331,332・・
・入力位第 ロー 第 図−〇 区− コマント岬末(K行4甲2 V3 5   口 第6図 テン入7°レー画面6I テ゛イス7゛レー画釦62
Fig. 1 is a flowchart showing an embodiment of the derivation processing procedure of the present invention, Fig. 2 is a block diagram of a system configuration of an embodiment of the present invention, and Fig. 3 shows the derivation function of function arguments and the declaration section of the function. An example of display screen transition when the display function is applied to a procedural language. Figure 4 shows an example of display screen transitions using the description style guide function, and Figure 5 shows the syntax of the function declaration section and variable declaration section.
A clear view of the guidance information obtained as a result of the semantic analysis, and FIG. 6 is an example of the transition of the display screen in an embodiment of the function argument guidance function. 10...Display, 11...Keyboard, 12
...Editor, 13...Storage medium for guidance information, 21
...Command interpretation execution unit, 22...Syntax and semantic analysis unit, 23...Guidance information search registration unit, 331, 332...
・Input position Row number - 〇 section - End of Cape Comant (K line 4 A2 V3 5 mouth Fig. 6 Ten 7° Ray screen 6I Tice 7 Ray button 62

Claims (1)

【特許請求の範囲】 1、計算機言語で記述されたテキストの構文解析手段、
意味解析手段、解析情報の登録・検索手段をもち、手続
きや関数を定義できる計算機言語のテキストの構文解析
・意味解析を行いながらテキストを編集するエディタに
おいて、関数や手続きの宣言時にその引数のデータタイ
プや数に関する情報を登録し、登録済みの関数名や手続
き名がテキストに挿入されると、登録済みの情報を用い
て入力を誘導し、即座に構文解析・意味解析を行い、登
録済みの情報と照合し、誤つた入力ならばその旨エディ
タ利用者に伝えることを特徴とするエディタにおける入
力誘導方式。 2、請求項1の入力誘導方式において、関数や手続きを
定義できる計算機言語のテキストの編集中に、宣言済み
の関数や手続きをテキスト中に挿入するとき、その関数
又は手続きの宣言部にある情報をディスプレーなどの出
力手段に表示することを特徴とする入力誘導機能。 3、計算機言語で記述されたテキストの構文解析手段、
意味解析手段、解析情報の登録・検索手段をもち、記述
スタイルが確立された確立機言語の記述スタイルに関す
る情報をエディタ内に記憶し、その情報から自動的に定
まる部分は自動的に編集中テキストに挿入することを特
徴とする入力誘導機能。
[Claims] 1. Means for parsing text written in a computer language;
In an editor that has a semantic analysis means, a means for registering and searching analysis information, and edits the text while performing syntactic and semantic analysis of text in a computer language that can define procedures and functions, when declaring a function or procedure, the argument data is When information about types and numbers is registered, and a registered function name or procedure name is inserted into text, input is guided using the registered information, syntactic and semantic analysis is performed immediately, and the registered function name or procedure name is inserted into the text. An input guidance method in an editor, which compares information with information and, if the input is incorrect, informs the editor user of the fact. 2. In the input guidance method of claim 1, when a declared function or procedure is inserted into the text while editing a text in a computer language that can define functions or procedures, the information in the declaration part of the function or procedure An input guidance function characterized by displaying on an output means such as a display. 3. Means for parsing text written in computer language;
It has a semantic analysis means, a means for registering and searching analysis information, and stores information about the writing style of the language in which the writing style has been established in the editor, and the parts that are automatically determined from that information are automatically updated to the text being edited. An input guidance function characterized by being inserted into.
JP63268023A 1988-10-26 1988-10-26 Input guide system for editor Pending JPH02115968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63268023A JPH02115968A (en) 1988-10-26 1988-10-26 Input guide system for editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63268023A JPH02115968A (en) 1988-10-26 1988-10-26 Input guide system for editor

Publications (1)

Publication Number Publication Date
JPH02115968A true JPH02115968A (en) 1990-04-27

Family

ID=17452819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63268023A Pending JPH02115968A (en) 1988-10-26 1988-10-26 Input guide system for editor

Country Status (1)

Country Link
JP (1) JPH02115968A (en)

Similar Documents

Publication Publication Date Title
US7127704B2 (en) Interactive software engineering tool with support for embedded lexical contexts
EP0370778B1 (en) Method for manipulating digital text data
Welsh et al. A design rationale for a language‐based editor
Reps et al. The Synthesizer Generator: A system for constructing language-based editors
US5813019A (en) Token-based computer program editor with program comment management
US7337391B2 (en) Method and system for stylesheet execution interactive feedback
US5752058A (en) System and method for inter-token whitespace representation and textual editing behavior in a program editor
EP0752649A2 (en) System and method for textual editing of structurally-represented computer programs with on-the-fly typographical display
JPS6375835A (en) Apparatus for generating intended code, program, list and design document
JPH1078964A (en) Method and system for identifying and analyzing generally confused word by natural language parser
Cowan et al. Rita - an Editor and User Interface for Manipulating Structured Documents
US20050039108A1 (en) Fast tag entry in a multimodal markup language editor
Lunney et al. Syntax-directed editing
Budinsky et al. SRE—a syntax recognizing editor
JPH02115968A (en) Input guide system for editor
Begel Spoken language support for software development
KR20220003106A (en) Systems and methods of computer-assisted computer programming
EP0410062B1 (en) Dynamic selection of logical element data format
JP3003459B2 (en) Program creation support device
CN117687620A (en) File generation method and device, terminal equipment and computer readable storage medium
Ferreira Syntax-Directed Editor Generator
JPH04237365A (en) Difference detecting system and automatic editing system for text processor
Shilling Automated reference librarians for program libraries and their interaction with language-based editors (software engineering, program development tools)
JPH0561679A (en) Interactive interface system
Milde et al. The Universal XML Organizer: UXO.