JPH05341976A - Character string editing device - Google Patents

Character string editing device

Info

Publication number
JPH05341976A
JPH05341976A JP15056492A JP15056492A JPH05341976A JP H05341976 A JPH05341976 A JP H05341976A JP 15056492 A JP15056492 A JP 15056492A JP 15056492 A JP15056492 A JP 15056492A JP H05341976 A JPH05341976 A JP H05341976A
Authority
JP
Japan
Prior art keywords
character string
input
display
comparison
character
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
JP15056492A
Other languages
Japanese (ja)
Inventor
Shiyuuji Shimokawa
秋二 下河
Akinori Nishikawa
彰紀 西川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP15056492A priority Critical patent/JPH05341976A/en
Publication of JPH05341976A publication Critical patent/JPH05341976A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Document Processing Apparatus (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To improve editing efficiency in point of time by automatically verifying a character string in a program, etc., while it is being edited. CONSTITUTION:When the character string inputted from an input means 10 is stored in a character buffer 12, and the character string Is displayed on a display means 14, and it is edited by a file editing means 16, a reference character string for comparison registered on a table 18 is compared with an input character string by a character string comparison means 20, and when it is judged that the input character string is not equal to the reference character string by the character string comparison means 20, the display format of the character string on the display means 14 is changed by a display change means 22.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字列編集装置に係
り、例えば、プログラム開発用のいわゆるワークベンチ
等の文字列編集用の環境を提供するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string editing apparatus, and provides an environment for character string editing such as a so-called workbench for program development.

【0002】[0002]

【従来の技術】プログラムの開発を効率化するために
は、いかにバグを少なくするかが課題となる。そして、
プログラム開発に当たっては、バグを少なくするために
はプログラムとして入力した文字列に誤りが無いことが
一つの条件となる。
2. Description of the Related Art In order to improve the efficiency of program development, how to reduce bugs becomes a problem. And
In developing a program, one of the conditions is that there is no error in the character string input as a program in order to reduce bugs.

【0003】この点、従来は各プログラミング言語別の
標準文法書を参照してプログラミング言語としての予約
語の検証を行ったりしている。一方、変数等の文字列は
プログラマが無意味な文字の羅列により勝手に定義する
ため、予め辞書等を用意してスペルの検証を行うのは事
実上不可能である。
In this respect, conventionally, a reserved word as a programming language is verified by referring to a standard grammar for each programming language. On the other hand, a character string such as a variable is arbitrarily defined by a programmer as a list of meaningless characters, so that it is virtually impossible to prepare a dictionary or the like in advance to verify spelling.

【0004】従って、プログラムのミスは目視で確認す
るとか、あるいは、コンパイラを通じて発見するという
作業が必要であった。文法検証を目的として専用のシス
テムも開発されているが、コンパイラによるデバッグと
大差はない。
Therefore, it is necessary to visually check the mistake of the program or to find it through the compiler. A dedicated system has been developed for the purpose of grammar verification, but it is not much different from debugging with a compiler.

【0005】ところで、プログラム開発支援用ツールと
して、例えば、マイクロソフトCVer.6.0のPW
B(プログラマーズワークベンチ)や、同じくマイクロ
ソフト社のQuick Cのワークベンチなどが提供さ
れている。
As a program development support tool, for example, Microsoft CVer. PW of 6.0
B (programmer's workbench) and the workbench of Quick C of Microsoft are also provided.

【0006】これらのツールでは、一度文字列を入力
し、一応のプログラムが完成した段階で、エディタ画面
上でコンパイルしながらデバッグをしていき、バグの存
在する行を示して、プログラマに文法ミスなどの警告を
発する。プログラマはその警告で示されたミスを修正
し、再度コンパイルをしてデバッグされたかを確認す
る。
[0006] With these tools, once a character string is input, and once a program is completed, debugging is performed while compiling on the editor screen, showing lines with bugs, and showing the programmer a syntax error. Issue a warning such as. The programmer corrects the mistake indicated by the warning and recompiles to see if it was debugged.

【0007】[0007]

【発明の技術的課題】このようなツールでは、エディタ
画面からコンパイルできるという利点があり、そうでな
い場合に比べ、バグの部分の修正が容易であるというメ
リットはある。しかし、基本的にコンパイルによるデバ
ッグであるため、プログラムが一応の単位で完成した後
でないとプログラムの検証ができない。このため、プロ
グラムが長ければ長い程、デバッグが容易でなくなり、
迅速なプログラム開発を妨げるという問題が生じてい
た。
Such a tool has the advantage that it can be compiled from the editor screen, and has the advantage that it is easier to correct the bug portion compared to the case where it is not. However, since the debugging is basically a compilation, the program cannot be verified until the program is completed in a tentative unit. Therefore, the longer the program, the harder it is to debug
There was a problem that hindered rapid program development.

【0008】本発明は、以上のような点に鑑みなされた
もので、プログラムの一応の完成の前にそのプログラム
の検証を行えるようにすることを課題とするもので、よ
り詳しくは、文字列の編集中に自動的に文字列の検証を
行うことにより、時間的な効率を向上させ、かつ、プロ
グラム言語が異なっても対応できる汎用性の文字列編集
装置を提供することを課題とする。
The present invention has been made in view of the above points, and it is an object of the present invention to enable verification of a program before the completion of the program, and more specifically, a character string. It is an object of the present invention to provide a versatile character string editing device that improves time efficiency by automatically verifying a character string during editing and is compatible with different programming languages.

【0009】[0009]

【課題を解決するための手段】本発明は、前記課題解決
のため、以下のような手段をとった。すなわち、本発明
の文字列編集装置は、図1の原理図に示したように、
(a) 入力手段10、(b) 文字バッファ12、(c) 表示手
段14、(d) ファイル編集手段16、(e) 基準文字列登
録部38を有するテーブル18、(f) 文字列比較手段2
0、(g) 表示変更手段22、を備えている。
The present invention takes the following means in order to solve the above-mentioned problems. That is, the character string editing device of the present invention, as shown in the principle diagram of FIG.
(a) input means 10, (b) character buffer 12, (c) display means 14, (d) file editing means 16, (e) table 18 having reference character string registration unit 38, (f) character string comparison means Two
0, (g) display changing means 22 is provided.

【0010】前記入力手段10は、例えばキーボード6
8、手書き入力用パッドなど、文字列を入力するための
入力手段である。前記文字バッファ12は、前記入力手
段10により入力した文字列を格納する記憶手段であ
る。
The input means 10 is, for example, a keyboard 6
8. An input unit for inputting a character string, such as a handwriting input pad. The character buffer 12 is a storage unit that stores the character string input by the input unit 10.

【0011】前記表示手段14は、文字バッファ12に
格納された文字列を表示する例えばCRTディスプレイ
70や液晶ディスプレイなどのディスプレイ類、あるい
は、プリンタなどの表示装置である。
The display means 14 is a display such as a CRT display 70 or a liquid crystal display for displaying the character string stored in the character buffer 12, or a display device such as a printer.

【0012】ファイル編集手段16は、入力された文字
列をファイルとして編集するエディタである。前記テー
ブル18は、記憶装置から構成されるもので、比較用基
準文字列を登録するための基準文字列登録部38を有す
るテーブルを構成する。
The file editing means 16 is an editor for editing the input character string as a file. The table 18 is composed of a storage device and constitutes a table having a reference character string registration unit 38 for registering a reference character string for comparison.

【0013】前記テーブル18としては、使用者が自由
に書換可能なユーザー用テーブル24、すなわちユーザ
ー用テーブル24を有することが望ましい。また、前記
テーブル18は、基準文字列をその属性毎に区分して登
録するよう構成するのが望ましい。例えば予約語という
属性に対応して、AAA、BBB、CCC、という基準
文字列を格納し、また、変数という属性に対応して、P
PPP、QQQQ、RRRR、という基準文字列を格納
するといった具合に、属性−基準文字列との対応関係を
設けておくのである。テーブル18の数としてはそれら
属性毎にテーブルを複数設けるというように構成するこ
ともできるが、一つのテーブルを属性毎に区分し、その
属性毎に基準文字列を格納するような構成とすることも
可能である。要は、基準文字列をその属性毎に区分して
登録できればよいのである。
As the table 18, it is desirable to have a user table 24 that can be freely rewritten by the user, that is, a user table 24. Further, it is desirable that the table 18 is constructed so that the reference character string is divided according to its attribute and registered. For example, reference character strings such as AAA, BBB, and CCC are stored corresponding to the attribute of reserved word, and P corresponding to the attribute of variable is stored.
The attribute-reference character string is associated with the reference character strings such as PPP, QQQQ, and RRRR. The number of tables 18 can be configured such that a plurality of tables are provided for each attribute, but one table is divided for each attribute and the reference character string is stored for each attribute. Is also possible. The point is that the reference character string should be registered according to its attribute.

【0014】基準文字列の属性とは種々あるが、プログ
ラム言語として定義されている文字列の場合、先に述べ
たように予約語、変数などの他、演算子、制御文字列、
定数、識別子、記号、データ型、などの属性がある。ま
た、編集中に新規に出現した文字列という属性で分類す
ることも可能である。
Although there are various attributes of the reference character string, in the case of a character string defined as a programming language, as described above, in addition to reserved words, variables, etc., operators, control character strings,
There are attributes such as constants, identifiers, symbols, data types, and so on. It is also possible to classify by an attribute of a character string that newly appears during editing.

【0015】前記文字列比較手段20は、前記入力手段
10で入力した文字列を前記テーブル18に登録された
基準文字列と比較する。前記表示変更手段22は、前記
文字列比較手段20により前記入力文字列が基準文字列
と同一でないと判断されたとき当該文字列の前記表示手
段14での表示形式を変更する。
The character string comparison means 20 compares the character string input by the input means 10 with a reference character string registered in the table 18. The display changing unit 22 changes the display form of the character string on the display unit 14 when the character string comparing unit 20 determines that the input character string is not the same as the reference character string.

【0016】表示形式の変更とは、通常の表示形式から
線を太くした強調文字への変換、通常の表示がゴシック
体である場合、イタリック体や明朝体など他のフォント
に表示形態を返ること、文字列を反転表示すること、文
字列にアンダーラインを付けること、文字列上に網掛け
することなど、通常の文字列表示と異なる表示形式に変
えることである。
The change of the display form means the conversion from the normal display form to the emphasized character with a thick line, and when the normal display is the Gothic type, the display form is returned to another font such as italic type or Mincho type. That is, the character string is displayed in reverse video, the character string is underlined, and the character string is shaded so that the display format is different from the normal character string display.

【0017】ある属性のとき、どのような表示形式にす
るのかという情報は、前記テーブルの属性及び新規文字
列であるかどうかの情報により、プログラム上で予め定
めておくことができる。前記テーブル18に表示形式登
録部32を設け、ここに表示形式を登録しておくことも
可能である。
Information about what kind of display format should be used for a certain attribute can be predetermined on the program according to the attribute of the table and the information on whether it is a new character string. It is also possible to provide a display format registration unit 32 in the table 18 and register the display format there.

【0018】前記テーブル18として自動書換手段19
により自動的に書き換えられる自動書換テーブル26を
備えてもよい。このテーブルも、属性部28、文字列登
録部30、必要に応じて表示形式登録部32を備える。
このようなテーブルを新規文字列登録用テーブルとして
用い、属性として新規文字列としておく。そして、前記
文字列比較手段20により、入力文字列が前記基準文字
列登録部38に登録された基準文字列以外の文字列であ
ると判断されたとき、前記自動書換手段19は、前記基
準文字列以外の文字列を前記新規文字列登録用テーブル
の文字列登録部30に登録する。このとき、前記表示変
更手段22は、新規文字列登録部34に登録された文字
列を表示手段14で表示するにあたり、プログラム等に
より決定された表示形式に従って当該文字列の表示を新
規出現の文字列であることを示す表示形式に変更する。
新規文字列として現れる文字列の中には、スペルミスな
ども含まれる。このような修正されるべき文字列は、そ
の修正入力があったとき、修正された文字列に置き換え
て登録されるようにする。
As the table 18, automatic rewriting means 19
An automatic rewrite table 26 that is automatically rewritten by This table also includes an attribute unit 28, a character string registration unit 30, and a display format registration unit 32 as necessary.
Such a table is used as a new character string registration table, and a new character string is set as an attribute. When the character string comparing means 20 determines that the input character string is a character string other than the reference character string registered in the reference character string registering unit 38, the automatic rewriting means 19 causes the reference character string to be changed. The character strings other than the columns are registered in the character string registration unit 30 of the new character string registration table. At this time, the display changing unit 22 displays the character string registered in the new character string registration unit 34 on the display unit 14 according to the display format determined by the program or the like and displays the newly appearing character string. Change the display format to indicate that it is a column.
Spelling mistakes are included in the character string that appears as a new character string. When a correction input is made, such a character string to be corrected is replaced with the corrected character string and registered.

【0019】自動書換テーブル26には、新規文字列登
録部34の他に既出文字列登録部36を設けてもよい。
既出文字列登録部36は、新規文字列登録部34に登録
されていた新規文字列は2回目のファイル編集時には新
規文字列ではなくなる。そこで、新規文字列登録部34
に登録されている新規文字列を既出文字列登録部36に
移動させる必要がある。既出文字列登録部36はこのた
めのエリアである。新規文字列登録部34に登録されて
いる文字列はファイル編集手段16の起動時あるいは終
了時などに既出文字列登録部36に転送される。
The automatic rewriting table 26 may be provided with an already-existing character string registration unit 36 in addition to the new character string registration unit 34.
In the already-existing character string registration unit 36, the new character string registered in the new character string registration unit 34 is not the new character string when the file is edited for the second time. Therefore, the new character string registration unit 34
It is necessary to move the new character string registered in the above to the already-existing character string registration unit 36. The already-existing character string registration unit 36 is an area for this purpose. The character string registered in the new character string registration unit 34 is transferred to the already-existing character string registration unit 36 when the file editing means 16 is activated or terminated.

【0020】文字列の検証は少なくとも一つの文字列の
入力が完了した後に行うようにする。その検証の開始条
件として、前記入力手段10として、文字列の入力完了
を示す文字列確定キー78を備え、この文字列確定キー
78の入力を待って文字列検証の開始条件とすることが
望ましい。
The character string is verified after the input of at least one character string is completed. As a verification start condition, it is preferable that the input means 10 includes a character string confirmation key 78 indicating completion of input of a character string, and the input of the character string confirmation key 78 is waited for to be a condition for starting character string verification. ..

【0021】文字列確定キー78とは、入力手段10が
キーボード68である場合、CRキー、ESCキー、ス
ペースキー、XFERキー、あるいはCTRLキー+G
キー、CTRLキー+GRPHキー+Hキーなどを例示
できるが、ある所定の入力をもって文字列確定であると
取り決めておけばどのような入力でもよい。
When the input means 10 is the keyboard 68, the character string confirmation key 78 is a CR key, an ESC key, a space key, an XFER key, or a CTRL key + G.
Keys, CTRL key + GRPH key + H key and the like can be exemplified, but any input may be used as long as it is agreed that the character string is confirmed by a predetermined input.

【0022】前記文字列比較手段20は、前記文字列確
定キー78の入力があったとき、文字列の入力が完了し
たものとしてその文字列と基準文字列との比較を開始す
る。但し、文字列確定キー78からの入力が例えば10
回あったとき検証を開始するというように、検証開始時
期を制御するようにしてもよい。
When the character string confirming key 78 is input, the character string comparing means 20 starts the comparison between the character string and the reference character string, assuming that the input of the character string is completed. However, if the input from the character string confirmation key 78 is, for example, 10
The verification start time may be controlled such that the verification is started when there is a turn.

【0023】本発明の最も好適な態様としては、前記テ
ーブルは、基準文字列をその属性毎に区分して登録して
おり、前記文字列比較手段20による入力文字列の比較
は、前記文字列確定キー78の入力を開始条件として行
われ、かつ、前記テーブルにおいて基準文字列の属性毎
に行われ、前記自動書換手段19は、前記文字列比較手
段20による比較の結果、入力文字列がいずれの基準文
字列にも一致しないとき、その入力文字列を新規出現の
文字列である旨を示す新規文字列登録部34に登録し、
前記表示変更手段22は、前記文字列比較手段20によ
る比較の結果、入力文字列が基準文字列に一致すると
き、その一致した基準文字列の属性毎に表示形式を変更
して前記表示手段14に出力し、一方、入力文字列がい
ずれの基準文字列にも一致しないとき、新規出現の文字
列である旨を示す表示形式で前記表示手段14に出力す
るような文字列編集装置である。
In a most preferred aspect of the present invention, the table registers the reference character strings by classifying them according to their attributes, and the comparison of the input character strings by the character string comparing means 20 is performed by the character strings. The confirmation key 78 is input as a start condition, and it is performed for each attribute of the reference character string in the table. The automatic rewriting unit 19 determines whether the input character string is the result of the comparison by the character string comparing unit 20. When the input character string does not match the reference character string of, the input character string is registered in the new character string registration unit 34 indicating that it is a newly appearing character string,
When the input character string matches the reference character string as a result of the comparison by the character string comparing unit 20, the display changing unit 22 changes the display format for each attribute of the matched reference character string, and the display unit 14 On the other hand, when the input character string does not match any of the reference character strings, the character string editing device outputs the character string to the display means 14 in a display format indicating that the character string is a newly appearing character string.

【0024】[0024]

【作用】本発明の編集装置で例えばプログラムを作成す
る場合、以下のようにする。プログラムを作成する場
合、プログラム言語固有の文法に従って、所望の処理を
実現するために必要となる文字列を入力手段10から入
力する。入力手段10から入力された文字列は文字バッ
ファ12に格納され、かつ、表示手段14としての例え
ばCRTディスプレイ70に表示される。入力された文
字列はファイル編集手段16でファイルとして編集され
る。
When a program is created by the editing apparatus of the present invention, the following is done. When creating a program, a character string necessary for realizing a desired process is input from the input means 10 according to the grammar specific to the programming language. The character string input from the input means 10 is stored in the character buffer 12 and displayed on the CRT display 70 as the display means 14, for example. The input character string is edited as a file by the file editing means 16.

【0025】その編集中において、少なくとも一つの文
字列の入力が完了した時点で、文字列確定キー78の入
力を行うと、文字列の検証が開始される。検証は以降の
処理で行う。
When at least one character string is input during the editing, the character string confirmation key 78 is input, and the verification of the character string is started. Verification will be performed in the subsequent processing.

【0026】 テーブル内を検索し、文字バッファ1
2内の文字列とテーブル内の基準文字列とを比較する。 一致する文字列があれば、プログラム言語として誤
りでないことが解るので、文字列の表示形式を表示変更
手段22により変更して前記表示手段14に表示する必
要はない。しかし、前記テーブルに属性と基準文字列と
を対比させて登録してある場合には、一致する文字列が
あるとき、文字列の表示形式を表示変更手段22により
その属性毎に変更して前記表示手段14に表示すると、
入力文字列がどの属性にあるのかを判別できる。
Search the table to find the character buffer 1
Compare the string in 2 with the reference string in the table. If there is a matching character string, it is understood that it is not an error in the programming language, so there is no need to change the display format of the character string by the display changing means 22 and display it on the display means 14. However, when the attribute and the reference character string are registered in the table in contrast with each other, when there is a matching character string, the display format of the character string is changed by the display changing means 22 for each attribute. When displayed on the display means 14,
You can determine which attribute the input string is in.

【0027】 テーブルに該当する文字列が無い場
合、文字バッファ12内の文字列を、新規文字列として
テーブルに登録し、新規文字列であることが分かる形式
で表示手段14に表示することも可能である。
When there is no corresponding character string in the table, the character string in the character buffer 12 can be registered in the table as a new character string and can be displayed on the display unit 14 in a format that can be recognized as a new character string. Is.

【0028】前記、について、例えば、テーブルを
予約語等登録用のテーブルと、新規出現文字列登録用の
テーブルに分けた場合について説明する。まず、予約語
等登録用のテーブルに入力文字列と一致する基準文字列
があれば、このテーブルに存在する文字列であることが
分かるような形式で表示手段14に表示する。予約語等
登録用のテーブルに入力文字列と一致する基準文字列が
存在しない場合は、今度は新規出現文字列用のテーブル
を検索し、同一の文字列があれば、前回までの編集中に
出現した文字列であることが判明するので、その旨が分
かる形式で表示手段14に表示する。そして、テーブル
に該当する文字列が無い場合、文字バッファ12内の文
字列を、新規文字列としてテーブルに登録し、新規文字
列であることが分かる形式で表示手段14に表示する。
Regarding the above, for example, a case where the table is divided into a table for registering reserved words and the like and a table for registering a newly appearing character string will be described. First, if there is a reference character string that matches the input character string in the table for registering reserved words and the like, it is displayed on the display means 14 in such a format that the character string exists in this table. If the reference character string that matches the input character string does not exist in the table for registering reserved words, search the table for newly appearing character strings, and if there is the same character string, edit it until the last time during editing. Since it is determined that the character string has appeared, the character string is displayed on the display unit 14 in a format that can be understood. Then, if there is no corresponding character string in the table, the character string in the character buffer 12 is registered in the table as a new character string, and is displayed on the display means 14 in a format that can be recognized as a new character string.

【0029】例えばプログラミング言語のソースプログ
ラムの編集において、テーブル24に使用者がプログラ
ミング言語の予約語を登録しておき、編集装置を起動す
ると、予約語は小文字、他の変数等の文字列は大文字に
清書されるものとする。
For example, in editing a programming language source program, when a user registers a reserved word in the programming language in the table 24 and activates the editing device, the reserved word is in lower case and the character strings of other variables are in upper case. Shall be written in writing.

【0030】この場合、ファイル中のある文字列が変更
されるか、追加され、英数字外のキーが押下されると1
つの文字列の入力が完了したとみなし、テーブル24を
検索し、それが予約語に該当すれば例えば小文字に変換
され、使用者は入力文字列が予約語であると確認でき
る。さらに、テーブル24に該当する文字列がなければ
テーブル26を検索し、一致する文字列があれば例えば
大文字に変換され、使用者は既出の文字列であることが
確認できる。また、テーブル26にもなければ例えば輝
度の高い大文字で表示され、既出の文字列を誤って入力
した場合、使用者はスペルミスがあることを確認し、即
座に修正することができる。
In this case, when a certain character string in the file is changed or added and a key other than alphanumeric characters is pressed, 1
It is considered that the input of one character string is completed, the table 24 is searched, and if it corresponds to a reserved word, it is converted to, for example, a lowercase character, and the user can confirm that the input character string is a reserved word. Furthermore, if there is no corresponding character string in the table 24, the table 26 is searched, and if there is a matching character string, it is converted to, for example, uppercase, and the user can confirm that the character string has already been issued. Further, if it is not in the table 26, for example, it is displayed in capital letters with high brightness, and if a previously entered character string is erroneously input, the user can confirm that there is a misspelling and correct it immediately.

【0031】このような検証は、文字列確定キー78の
入力毎に行われるので、文字列の編集中にリアルタイム
で文字列の検証を行うことができるものである。本発明
は、プログラムの開発支援用の文字列編集装置として企
図されたものであるが、その応用範囲は、文字列を扱う
場合一般に応用可能である。例えば、文字列編集用のエ
ディタ、英文ワープロでのスペルチェックなどにも応用
できる。従来の英文ワープロでは、スペルチェックの機
能を起動してスペルのチェックをしているが、本発明に
よれば、文字列の入力毎にリアルタイムにスペルチェッ
クを行える。
Since such verification is performed every time the character string confirmation key 78 is input, the character string can be verified in real time while the character string is being edited. The present invention is intended as a character string editing device for supporting the development of a program, but its application range is generally applicable when dealing with character strings. For example, it can be applied to an editor for character string editing, spell check in an English word processor, and the like. In a conventional English word processor, the spell check function is activated to check spelling, but according to the present invention, spell check can be performed in real time every time a character string is input.

【0032】[0032]

【実施例】以下、本発明の実施例を図面を参照して説明
する。本実施例の装置は、図2に示したように、情報処
理装置で構成され、この情報処理装置は、中央処理装置
50、この中央処理装置50に接続された共通バス5
2、この共通バス52に接続されたリードオンリーメモ
リ(ROM)54、ランダムアクセスメモリ(RAM)
56、キーボードインターフェイス58、テキストVR
AM60、CRTコントローラ62、グラフィックVR
AM64、及び、外部記憶装置用インターフェイス66
を備えているとともに、前記キーボードインターフェイ
ス58に接続されたキーボード68、前記CRTコント
ローラ62に接続されたCRTディスプレイ70及び漢
字ROM72、前記外部記憶装置用インターフェイス6
6に接続されたフレキシブルディスクユニットあるいは
ハードディスクユニット74を備えている。フレキシブ
ルディスクユニットあるいはハードディスクユニット7
4により、ファイル編集部16で編集したテキストファ
イル80が記録される。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIG. 2, the apparatus of this embodiment is composed of an information processing apparatus, which is a central processing unit 50 and a common bus 5 connected to the central processing unit 50.
2. Read only memory (ROM) 54 and random access memory (RAM) connected to the common bus 52
56, keyboard interface 58, text VR
AM60, CRT controller 62, graphic VR
AM 64 and external storage device interface 66
And a keyboard 68 connected to the keyboard interface 58, a CRT display 70 and a Kanji ROM 72 connected to the CRT controller 62, and an interface 6 for the external storage device.
A flexible disk unit or a hard disk unit 74 connected to the No. 6 is provided. Flexible disk unit or hard disk unit 7
4, the text file 80 edited by the file editing unit 16 is recorded.

【0033】これら各部における入出力は前記中央処理
装置50で実行される入出力処理用プログラム(basic
input/output sysytem )、通称BIOSにより行われ
る。そして、前記中央処理装置50上にファイル編集部
16が構成されている。また、中央処理装置50内のレ
ジスタにより編集すべき文字列を格納する文字バッファ
12が構成されている。このファイル編集部16には、
文字列比較部20と表示変更指示部22と自動書換手段
19が設けられている。
Input / output in each of these sections is performed by an input / output processing program (basic) executed by the central processing unit 50.
input / output sysytem), commonly known as BIOS. The file editing unit 16 is configured on the central processing unit 50. A register in the central processing unit 50 constitutes a character buffer 12 that stores a character string to be edited. In this file editing unit 16,
A character string comparison unit 20, a display change instruction unit 22, and an automatic rewriting unit 19 are provided.

【0034】以下、各部を詳細に説明する。キーボード
68は、JIS規格に従ったキー配列を有し、文字列の
入力完了を示す文字列確定キー78として、リターンキ
ー(CRキー)を設定してある。文字列確定キー78と
してスペースキーを設定してもよいし、オペレータが自
由に設定できるようにしておいてもよい。キーボード6
8のキーが押されると、キーの並び順に従ったキーコー
ドデータが発生する。キーボード68がデータを発生し
たことにより、ハードウェア割り込みがかかり、BIO
Sに制御が移される。
Each section will be described in detail below. The keyboard 68 has a key arrangement according to the JIS standard, and a return key (CR key) is set as a character string confirmation key 78 indicating completion of input of a character string. A space key may be set as the character string confirmation key 78, or the operator may set it freely. Keyboard 6
When the 8 key is pressed, the key code data according to the arrangement order of the keys is generated. When the keyboard 68 generates data, a hardware interrupt occurs and the BIOS
Control is transferred to S.

【0035】前記リードオンリーメモリ(ROM)54
には、いわゆるキーコードとアスキーコードを対応づけ
た変換テーブル82が設けられている。キーボード68
の押し下げによりキーコードが発生すると、前記変換テ
ーブル82を参照して、キーデータ(アスキーコード)
を作成し、キーコードとともに前記文字バッファ12
(リングバッファ)に格納される。
The read only memory (ROM) 54
Is provided with a conversion table 82 in which so-called key codes and ASCII codes are associated with each other. Keyboard 68
When the key code is generated by pressing down, the key data (ASCII code) is referred to with reference to the conversion table 82.
And create the character buffer 12 with the key code.
It is stored in (ring buffer).

【0036】ランダムアクセスメモリ(RAM)には、
図3及び図4に示したように、使用者が任意に内容設定
可能なユーザー用テーブル24と、ファイル編集部16
による自動書換テーブル26とが形成されている。各テ
ーブルには属性部28と文字列登録部30と表示形式登
録部32とが設けられている。この表示形式登録部32
を設けずに文字列の属性を参照して、プログラムで予め
特定した表示形式を特定するようにしてもよい。その場
合図3、4から表示形式登録部が削除される。なお、属
性、文字列登録部、表示形式は互いに対応関係にある。
表示形式登録部32は、文字列登録部30に登録された
文字列の表示形式を登録する。この表示形式は文字列の
属性毎に異なる。なお、表示形式登録部32の内容は使
用者がプログラム上任意に設定できるようにする。
The random access memory (RAM) includes
As shown in FIGS. 3 and 4, the user table 24, in which the user can arbitrarily set the contents, and the file editing unit 16
And an automatic rewriting table 26 are formed. Each table is provided with an attribute section 28, a character string registration section 30, and a display format registration section 32. This display format registration unit 32
Alternatively, the display format specified in advance by the program may be specified without referring to the attribute of the character string. In that case, the display format registration section is deleted from FIGS. Note that the attribute, the character string registration unit, and the display format have a correspondence relationship.
The display format registration unit 32 registers the display format of the character string registered in the character string registration unit 30. This display format differs for each attribute of the character string. The contents of the display format registration unit 32 can be arbitrarily set by the user on the program.

【0037】ユーザー用テーブル24の文字列登録部3
0には、図3に示したように、使用者により、例えばプ
ログラミング言語の予約語(キーワード)や変数などを
予め登録しておく。例えばC言語で予約語とは、aut
o、break、case、char、const、c
ontinue、default、do、doubl
e、else、enum、extern、float、
for、goto、if、int、long、regi
ster、return、short、sizeof、
static、struct、switch、type
def、union、unsigned、void、w
hileなどである。
Character string registration section 3 of user table 24
As shown in FIG. 3, for example, reserved words (keywords) and variables of programming languages are registered in advance in 0 as shown in FIG. For example, the reserved word in C language is auto
o, break, case, char, const, c
ontinue, default, do, doubl
e, else, enum, extern, float,
for, goto, if, int, long, regi
star, return, short, sizeof,
static, struct, switch, type
def, union, unsigned, void, w
such as hile.

【0038】ユーザー用テーブル24の表示形式登録部
32には、予約語を表す表示形式としてアンダーライ
ン、網かけ、強調文字、フォントの変更などの中から任
意の表示形式を選択して登録する。なお、フォントの変
更を選択した場合、さらにフォントを決定するために、
フォントテーブルを参照し、いずれのフォントを使用す
るか設定する。
In the display format registration section 32 of the user table 24, an arbitrary display format is selected and registered as a display format representing a reserved word, such as underline, halftone dot, emphasized character, and font change. If you choose to change the font,
Refer to the font table and set which font to use.

【0039】また、C言語で、プログラマは変数を任意
に設定できる。例えば変数として、i、n、m、やaa
a、bbb、hensuなどを登録する。変数を示す表
示形式として任意の表示形式を指定する。なお、記号、
演算子、数字のみで構成される文字列は、チェックの対
象としても実際はあまり意味がない。
In the C language, the programmer can set variables arbitrarily. For example, as variables, i, n, m, or aa
Register a, bbb, hensu, etc. Specify any display format as the display format that indicates the variable. The symbol,
A character string consisting only of operators and numbers does not really make much sense as a check target.

【0040】自動書換テーブル26は、図4に示したよ
うに、新規文字列登録部34と既出文字列登録部36と
を有する。新規文字列登録部34は、自動書換手段19
が文字列が新規文字列である場合にその新規文字列を書
き込むためのエリアである。また、新規文字列登録部3
4に対応した表示形式登録部32が設けられている。既
出文字列登録部36は、既出文字列を登録するエリアで
ある。ファイル編集部16の起動時あるいは終了時に新
規文字列登録部34の内容は既出文字列登録部36に転
送される。
As shown in FIG. 4, the automatic rewriting table 26 has a new character string registration unit 34 and an already-existing character string registration unit 36. The new character string registration unit 34 uses the automatic rewriting means 19
Is an area for writing a new character string when the character string is a new character string. Also, the new character string registration unit 3
A display format registration unit 32 corresponding to No. 4 is provided. The already-existing character string registration unit 36 is an area for registering already-existing character strings. When the file editing unit 16 is activated or terminated, the contents of the new character string registration unit 34 are transferred to the already-existing character string registration unit 36.

【0041】CRTコントローラ62は前記テキストV
RAM60に格納されたテキストデータを取出し、CR
Tディスプレイ70に表示する。フォントを指定した場
合は、テキストVRAM60におけるアスキーコード、
英数カナコード、日本語コードに対応するファントパタ
ーンがフォントパターンバッファに読み出され、そのフ
ォントパターンがグラフィックVRAM64に移送され
てCRTディスプレイ70に表示される。
The CRT controller 62 uses the text V
Takes out the text data stored in the RAM 60 and CRs
It is displayed on the T display 70. When the font is specified, ASCII code in the text VRAM60,
The phantom pattern corresponding to the alphanumeric kana code and the Japanese code is read into the font pattern buffer, and the font pattern is transferred to the graphic VRAM 64 and displayed on the CRT display 70.

【0042】前記テキストVRAM60には、アトリビ
ュートエリア76が設けられている。アトリビュートエ
リア76は8ビットからなる文字列修飾情報(アトリビ
ュートデータ)が格納されるレジスタである。このアト
リビュートデータに従って文字列にアンダーラインがひ
かれたり、網がけがなされる等の処理が施される。
The text VRAM 60 is provided with an attribute area 76. The attribute area 76 is a register which stores 8-bit character string decoration information (attribute data). In accordance with this attribute data, the character string is underlined or shaded.

【0043】前記文字列比較部20は、前記キーボード
68から入力された文字列を前記テーブル18に登録さ
れた基準文字列と比較する。例えば、autoが入力さ
れた場合、文字列比較部20の指令により、前記テーブ
ルが検索される。各テーブルのデータと文字バッファ1
2のキーデータとが比較されることにより、autoは
属性が予約語であり、その表示形式がアンダーラインで
あることがわかる。
The character string comparison unit 20 compares the character string input from the keyboard 68 with the reference character string registered in the table 18. For example, when “auto” is input, the table is searched by the command of the character string comparison unit 20. Data of each table and character buffer 1
By comparing with the key data of No. 2, it can be seen that the attribute of auto is a reserved word and its display format is underlined.

【0044】入力された文字列がいずれのテーブルにも
存在しないとき、その属性は新規文字列であることが判
明するので、自動書換テーブル26の属性”新規文字
列”の文字列登録部30に新たに登録される。
When the input character string does not exist in any of the tables, the attribute is found to be a new character string. Therefore, the character string registration unit 30 of the attribute "new character string" of the automatic rewriting table 26 is set. It will be newly registered.

【0045】表示変更部は、CRTディスプレイ70上
に表示される文字列の表示形式を変更指示する。通常
時、文字列は標準表示形式(ゴシック体)でCRTディ
スプレイ70上に表示される。そして、文字列確定キー
78が押されると、各テーブルの表示形式登録部32が
参照され、文字列の属性に対応した表示形式情報に従っ
て文字列のCRTディスプレイ70上での表示形式が変
更される。
The display changing unit gives an instruction to change the display format of the character string displayed on the CRT display 70. Normally, the character string is displayed on the CRT display 70 in the standard display format (Gothic type). Then, when the character string confirmation key 78 is pressed, the display format registration unit 32 of each table is referred to, and the display format of the character string on the CRT display 70 is changed according to the display format information corresponding to the attribute of the character string. ..

【0046】すなわち、例えば、autoが入力された
場合、前記のように、autoは属性が予約語であり、
その表示形式がアンダーラインであることがわかる。こ
のとき、アンダーラインを示すデータがテキストVRA
M60のアトリビュートエリア76に格納され、このア
トリビュート情報に従ってCRTコントローラ62がC
RT画面上のautoにアンダーラインを引く。
That is, for example, when auto is input, as described above, the attribute of auto is a reserved word,
It can be seen that the display format is underlined. At this time, the data indicating the underline is the text VRA.
It is stored in the attribute area 76 of the M60, and the CRT controller 62 stores the C in accordance with the attribute information.
Underline the auto on the RT screen.

【0047】入力された文字列がいずれのテーブルにも
存在しないとき、その属性は新規文字列であり、その新
規文字列は自動書換手段19により文字列登録部30に
新たに登録される。そして、その属性に対応する表示形
式登録部32が参照される。ここでは、網かけが登録さ
れているので、その網かけを示すデータがテキストVR
AM60のアトリビュートエリア76に格納される。こ
のアトリビュート情報に従ってCRTコントローラ62
がCRT画面上の新規文字列に網かけを施す。
When the input character string does not exist in any of the tables, the attribute is a new character string, and the new character string is newly registered in the character string registration unit 30 by the automatic rewriting means 19. Then, the display format registration unit 32 corresponding to the attribute is referred to. Here, since the shading is registered, the data indicating the shading is the text VR.
It is stored in the attribute area 76 of the AM 60. According to this attribute information, the CRT controller 62
Shades the new character string on the CRT screen.

【0048】ファイルを一旦閉じて、再編集する場合、
前回の編集時に新規文字列として登録された文字列は既
出文字列登録部36に転送されている。従って、新規文
字列登録部34は初期化された状態となる。
When the file is closed and edited again,
The character string registered as the new character string at the previous editing is transferred to the already-existing character string registration unit 36. Therefore, the new character string registration unit 34 is in the initialized state.

【0049】なお、文字列確定キー78が押される毎
に、前回登録された新規文字列登録部34の内容を既出
文字列登録部36に転送し、新規文字列登録部34を初
期化するようにしてもよい。
Each time the character string determination key 78 is pressed, the contents of the previously registered new character string registration unit 34 are transferred to the already-existing character string registration unit 36, and the new character string registration unit 34 is initialized. You can

【0050】以上が本実施例の構成であるが、この構成
は本発明の構成と以下のように対応している。 (a) 入力手段10 ・・・キーボード68 (b) 文字バッファ12 ・・・文字バッファ12 (c) 表示手段14 ・・・CRTディスプレイ7
0 (d) テーブル18 ・・ RAM56(24、2
6) (e) 文字列比較手段20 ・・・ファイル編集部16内
の文字列比較部20 (f) 表示変更手段22 ・・・ファイル編集部16内
の表示変更指示部22、テキストVRAMのアトリビュ
ートエリア76 以下、本実施例によるプログラム編集処理例を説明す
る。 <処理例1>処理例1を図5のフローチャートに従って
説明する。
The above is the configuration of the present embodiment, and this configuration corresponds to the configuration of the present invention as follows. (a) Input means 10 ... Keyboard 68 (b) Character buffer 12 ... Character buffer 12 (c) Display means 14 ... CRT display 7
0 (d) Table 18 ... RAM 56 (24, 2)
6) (e) Character string comparing means 20 ... Character string comparing section 20 in the file editing section 16 (f) Display changing means 22 ... Display change instructing section 22 in the file editing section 16 and attributes of the text VRAM Area 76 Hereinafter, an example of program editing processing according to the present embodiment will be described. <Processing Example 1> Processing example 1 will be described with reference to the flowchart of FIG.

【0051】この処理例では、文字列確定キー78が押
される毎に、前回登録された新規文字列登録部34の内
容を既出文字列登録部36に転送し、新規文字列登録部
34を初期化するようにした。
In this processing example, every time the character string confirmation key 78 is pressed, the contents of the previously registered new character string registration unit 34 are transferred to the already-existing character string registration unit 36, and the new character string registration unit 34 is initialized. I tried to turn it on.

【0052】まず、入力装置としてのキーボード68、
あるいは、ファイルからの入力をバッファに追加する
(ステップ100)。ついで、確定キーが押された否か
が判断される(ステップ101)。確定キーが押されて
いない場合、前記ステップ100が繰返される。確定キ
ーが押されると、ステップ102に処理が移行する。
First, a keyboard 68 as an input device,
Alternatively, the input from the file is added to the buffer (step 100). Then, it is judged whether or not the confirm key has been pressed (step 101). If the confirm key has not been pressed, step 100 is repeated. When the enter key is pressed, the process proceeds to step 102.

【0053】ステップ102では、編集文字バッファの
文字列をテーブル24から検索し、文字列比較部20
が、文字バッファ12内における文字列とユーザー用テ
ーブル24の内容が対比される(ステップ103)。
In step 102, the character string in the edited character buffer is retrieved from the table 24, and the character string comparison unit 20
However, the character string in the character buffer 12 and the contents of the user table 24 are compared (step 103).

【0054】そして、そして、一致する基準文字列が存
在すれば、その基準文字列の属性に対応する表示形式登
録部32の情報が表示変更部の指示によりアトリビュー
トエリア76に取り込まれ、CRTコントローラ62に
よりCRTディスプレイ70に表示形式を変えて表示さ
れる(ステップ104)。
Then, if there is a matching reference character string, the information of the display format registration section 32 corresponding to the attribute of the reference character string is taken into the attribute area 76 by the instruction of the display changing section, and the CRT controller 62. Then, the display format is changed and displayed on the CRT display 70 (step 104).

【0055】ユーザー用テーブル24に入力文字列が存
在しない場合、ステップ105で編集文字バッファ内の
文字列を自動書換テーブル26から検索する。自動書換
テーブル26の既出文字列登録部36に入力文字列と一
致する基準文字列が存在すれば(ステップ106)、そ
の基準文字列の属性に対応する表示形式情報が表示変更
部の指示によりアトリビュートエリア76に取り込ま
れ、CRTコントローラ62によりCRTディスプレイ
70に表示形式を変えて表示する(ステップ107)。
If the input character string does not exist in the user table 24, the character string in the edit character buffer is searched from the automatic rewriting table 26 in step 105. If the reference character string that matches the input character string exists in the already-existing character string registration unit 36 of the automatic rewriting table 26 (step 106), the display format information corresponding to the attribute of the reference character string is attributed by the instruction of the display changing unit. It is taken into the area 76, and the CRT controller 62 changes the display format and displays it on the CRT display 70 (step 107).

【0056】ステップ106で自動書換テーブル26に
入力文字列と一致する基準文字列が存在しないと判定さ
れた場合、入力文字列は新規文字列登録部34に登録さ
れ、新規文字列であるという属性に対応する表示形式情
報が表示変更部の指示によりアトリビュートエリア76
に取り込まれ、CRTコントローラ62によりCRTデ
ィスプレイ70に表示形式を変えて表示される(ステッ
プ108)。
When it is determined in step 106 that the reference character string that matches the input character string does not exist in the automatic rewriting table 26, the input character string is registered in the new character string registration unit 34 and is an attribute that the character string is a new character string. The display format information corresponding to the
And is displayed on the CRT display 70 in a different display format by the CRT controller 62 (step 108).

【0057】新規文字列登録部34に登録された文字列
と同一の文字列が入力された場合、前回の文字列は既に
既出文字列登録部36に転送されているので、既出文字
列として表示される。
When the same character string as the character string registered in the new character string registration unit 34 is input, the previous character string has already been transferred to the already-existing character string registration unit 36 and is therefore displayed as the already-existing character string. To be done.

【0058】以上の処理は文字列確定キー78が押され
る毎に行われる。このため、使用者は文字列を入力毎に
リアルタイムに入力文字列の属性をその表示形式から把
握することができる。特に、入力文字列が新規文字列で
ある場合、なんらかのエラーが存在することが予想され
るので、プログラマーにデバッグを促すことができる。 <処理例2>処理例2では、例えば、図6に示したよう
なC言語による文字列を入力するものとする。このプロ
グラムは1からnまでの数の累計を求めるプログラムで
ある。なお、編集に先だって、C言語の予約語、プログ
ラム中で使用しようと思っているプリプロセッサ命令、
関数は予め登録しておく。記号は処理対象としない。ま
た、数字のみで構成される文字列や先頭が数字の文字
列、全角日本語文字列は処理対象としない。予約語、プ
リプロセッサ命令、関数、制御文字、書式並びはアンダ
ーラインを引くという表示形式、新規文字列はボールド
文字、その他は通常表示とする。
The above processing is performed every time the character string confirmation key 78 is pressed. Therefore, the user can grasp the attribute of the input character string from the display format in real time every time the character string is input. In particular, when the input character string is a new character string, some error is expected to exist, so that the programmer can be encouraged to debug. <Processing Example 2> In the processing example 2, for example, a character string in C language as shown in FIG. 6 is input. This program is a program for obtaining the total of the numbers 1 to n. In addition, prior to editing, reserved words in C language, preprocessor instructions that you intend to use in the program,
Register the function in advance. Symbols are not subject to processing. In addition, character strings that consist only of numbers, character strings that start with numbers, and full-width Japanese character strings are not processed. Reserved words, preprocessor instructions, functions, control characters, format sequences are underlined, new characters are bold, and others are normally displayed.

【0059】ファイル編集部16を起動させた後、所望
のプログラムをキーボード68から当該プログラムを入
力して記述する。図6のプログラムを編集するために、
キーボード68から文字列が入力されるとき、以下の処
理が行われる。
After the file editing unit 16 is activated, a desired program is entered from the keyboard 68 and described. To edit the program in Figure 6,
When a character string is input from the keyboard 68, the following processing is performed.

【0060】まず、/*が入力される。入力文字列を示す
キーデータは前記のように文字バッッファに格納され
る。次にCRキーが押されると、入力文字列が確定し、
文字列比較部20が起動して/*を示すデータがテーブル
に存在するか判定する。/*は記号であり処理対象ではな
いので、通常表示で表示される。
First, / * is input. The key data indicating the input character string is stored in the character buffer as described above. Next, when the CR key is pressed, the input character string is confirmed,
The character string comparison unit 20 is activated to determine whether or not data indicating / * exists in the table. / * Is a symbol and not a target of processing, so it is displayed in the normal display.

【0061】次に、”累計プログラム”が入力されCR
キーが押される。この文字列も処理対象外でCRTには
通常形式で表示される。以下、処理対象外の文字列の説
明は省略する。
Next, the "cumulative program" is input and CR is entered.
The key is pressed. This character string is also not processed and is displayed in the normal format on the CRT. Hereinafter, the description of the character string that is not the processing target will be omitted.

【0062】includeが入力されると、これはプ
リプロセッサ命令であるため、その属性データから、表
示形式情報=「アンダーライン」が索引され、そのアン
ダーラインを示すデータがテキストVRAM60のアト
リビュートエリア76に格納される。このアトリビュー
ト情報に従ってCRTコントローラ62がCRT画面上
の文字列”include”にアンダーラインを施す。
他の文字列も以上と同様にしてテーブルでの登録内容と
比較され、対応する属性に従い所定の表示形式で表示さ
れる。その態様は以下の表1の通りである。
When include is input, since this is a preprocessor instruction, the display format information = “underline” is indexed from the attribute data, and the data indicating the underline is stored in the attribute area 76 of the text VRAM 60. To be done. According to this attribute information, the CRT controller 62 underlines the character string "include" on the CRT screen.
Other character strings are also compared with the registered contents in the table in the same manner as above, and displayed in a predetermined display format according to the corresponding attribute. The modes are as shown in Table 1 below.

【0063】[0063]

【表1】 [Table 1]

【0064】この表1の対応関係から、前記プログラム
は、CRTディスプレイ70に図7のように表示され
る。このプログラムで、関数printfと入力すべき
ところ、prontfとスペルミスしてしまった場合、
関数に対応するテーブルにprontfの標準文字は登
録されていないので、prontfは新規文字列として
新規文字列登録部34に登録され、ボールド文字として
表示される。プログラマはその表示形式により、pro
ntfが新規に出現したものであることを知る。このよ
うな文字列が新規で出現するのはおかしいので、プログ
ラマはなんらかのスペルミスの存在に気づく。よって、
prontfをprintfに書換え、文字列確定キー
78を押すと、再度ユーザー用テーブル24が検索され
る。この2度目の検索で、printfは関数であるこ
とが判明する。同時に、新規文字列登録部34のpro
ntfも書換えられ、その後、既出文字列登録部36に
転写されるが、ユーザー用テーブル24に既に登録され
ているので、既出文字列登録部36からは削除される。
From the correspondence relationship in Table 1, the program is displayed on the CRT display 70 as shown in FIG. In this program, if you should type the function printf but misspell it as frontf,
Since the standard character of frontf is not registered in the table corresponding to the function, the frontf is registered as a new character string in the new character string registration unit 34 and displayed as a bold character. Depending on the display format, the programmer
Know that ntf is a new appearance. It's strange for a new string to appear like this, so the programmer notices some spelling mistakes. Therefore,
When the printf is rewritten to the printf and the character string confirmation key 78 is pressed, the user table 24 is searched again. This second search reveals that printf is a function. At the same time, pro of the new character string registration unit 34
The ntf is also rewritten and then transferred to the already-existing character string registration unit 36, but since it has already been registered in the user table 24, it is deleted from the already-existing character string registration unit 36.

【0065】このように、属性毎に表示形式を変更して
表示できるので、文字列の種類を視認できる。その結
果、入力文字列が新規文字列であれば、その新規文字列
にはスペルミスなどなんらかのエラーがあるのではない
かと推定される。
As described above, since the display format can be changed and displayed for each attribute, the type of character string can be visually recognized. As a result, if the input character string is a new character string, it is presumed that there is some error such as a spelling error in the new character string.

【0066】なお、間違った新規文字列を書換えたのち
も新規文字列であれば、その書換え後の内容で登録が修
正される。また、テーブルの基準文字列と一致する文字
列があれば、プログラム言語として誤りでないことが解
る。
If the new character string is rewritten after the incorrect new character string is rewritten, the registration is corrected with the contents after the rewriting. Also, if there is a character string that matches the reference character string in the table, it is understood that it is not an error in the programming language.

【0067】[0067]

【発明の効果】本発明によれば、文字列編集中にスペル
ミス等のエラーや、プログラム言語に無い文字列を確認
でき、正確な文字列編集作業を行うことができる。特
に、プログラム編集用として使用した場合、バグの少な
いプログラムをコンパイラすることなく編集することが
できる。
According to the present invention, an error such as a misspelling or a character string which is not in the programming language can be confirmed during the character string editing, and an accurate character string editing operation can be performed. In particular, when used for program editing, it is possible to edit a program with few bugs without compiling.

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

【図1】本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例を示すブロック図FIG. 2 is a block diagram showing an embodiment of the present invention.

【図3】ユーザー用テーブルを示した図FIG. 3 is a diagram showing a user table.

【図4】自動書換テーブルを示した図FIG. 4 is a diagram showing an automatic rewriting table.

【図5】本発明の実施例による処理例1を示すフローチ
ャート図
FIG. 5 is a flowchart showing a processing example 1 according to the embodiment of the present invention.

【図6】編集すべきプログラムファイルの例[Fig. 6] Example of program file to be edited

【図7】図6のプログラムの編集中における表示例を示
した図
7 is a diagram showing a display example while the program of FIG. 6 is being edited.

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

10・・・入力手段、 12・・・文字バッファ、 14・・・表示手段、 16・・・ファイル編集手段(ファイル編集部)、 18・・・テーブル、 19・・・自動書換手段、 20・・・文字列比較手段(文字列比較部)、 22・・・表示変更手段(表示変更指示部)、 24・・・ユーザー用テーブル、 26・・・自動書換テーブル、 28・・・属性部、 30・・・文字列登録部、 32・・・表示形式登録部、 34・・・新規文字列登録部、 36・・・既出文字列登録部、 38・・・基準文字列登録部、 50・・・中央処理装置、 52・・・共通バス、 58・・・キーボードインターフェイス、 60・・・テキストVRAM、 62・・・CRTコントローラ、 64・・・グラフィックVRAM、 66・・・外部記憶装置用インターフェイス、 68・・・キーボード、 70・・・CRTディスプレイ、 74・・・ハードディスクユニット、 76・・・アトリビュートエリア、 78・・・文字列確定キー、 80・・・テキストファイル、 82・・・変換テーブル。 10 ... Input means, 12 ... Character buffer, 14 ... Display means, 16 ... File editing means (file editing section), 18 ... Table, 19 ... Automatic rewriting means, 20. ..Character string comparison means (character string comparison section), 22 ... Display change means (display change instruction section), 24 ... User table, 26 ... Automatic rewriting table, 28 ... Attribute section, 30 ... Character string registration unit, 32 ... Display format registration unit, 34 ... New character string registration unit, 36 ... Existing character string registration unit, 38 ... Reference character string registration unit, 50. ..Central processing unit, 52 ... Common bus, 58 ... Keyboard interface, 60 ... Text VRAM, 62 ... CRT controller, 64 ... Graphic VRAM, 66 ... External storage device interface Face, 68 ... Keyboard, 70 ... CRT display, 74 ... Hard disk unit, 76 ... Attribute area, 78 ... Character string determination key, 80 ... Text file, 82 ... Conversion table.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】(a) 文字列を入力するための入力手段(1
0)と、(b) 入力手段(10)により入力した文字列を
格納する文字バッファ(12)と、(c) 文字バッファ
(12)に格納された文字列を表示する表示手段(1
4)と、(d) 入力された文字列を編集するファイル編集
手段(16)と、(e) 比較用基準文字列を登録するため
の基準文字列登録部(38)を有するテーブル(18)
と、(f) 前記入力手段(10)で入力した文字列を前記
テーブル(18)に登録された基準文字列と比較する文
字列比較手段(20)と、(g) この文字列比較手段(2
0)により前記入力文字列が基準文字列と同一でないと
判断されたとき当該文字列の前記表示手段(14)での
表示形式を変更する表示変更手段(22)と、を備えた
文字列編集装置。
1. (a) Input means (1) for inputting a character string
0), (b) a character buffer (12) for storing the character string input by the input means (10), and (c) a display means (1) for displaying the character string stored in the character buffer (12).
4), (d) file editing means (16) for editing the input character string, and (e) a table (18) having a reference character string registration unit (38) for registering a reference character string for comparison.
(F) a character string comparison means (20) for comparing the character string input by the input means (10) with a reference character string registered in the table (18), and (g) this character string comparison means ( Two
0), when the input character string is determined not to be the same as the reference character string, the display string changing means (22) for changing the display format of the character string on the display means (14). apparatus.
【請求項2】 前記テーブル(18)は、使用者が自由
に書換可能なユーザー用テーブルを有する請求項1記載
の文字列編集装置。
2. The character string editing apparatus according to claim 1, wherein the table (18) has a user table which can be freely rewritten by a user.
【請求項3】 前記テーブル(18)への自動書換手段
(19)を備えるとともに、前記テーブル(18)は、
新規文字列登録部(34)を有し、前記文字列比較手段
(20)により、入力文字列が前記基準文字列登録部
(38)に登録された基準文字列以外の文字列であると
判断されたとき、前記自動書換手段(19)は、前記基
準文字列以外の文字列を新規文字列登録部(34)に登
録し、前記表示変更手段(22)は、新規文字列登録部
(34)に登録された文字列を表示手段(14)で表示
するにあたり、当該文字列の表示を新規出現の文字列で
あることを示す表示形式に変更する請求項1記載の文字
列編集装置。
3. The automatic rewriting means (19) for the table (18) is provided, and the table (18) is
A new character string registration unit (34) is provided, and the character string comparison unit (20) determines that the input character string is a character string other than the reference character string registered in the reference character string registration unit (38). When this is done, the automatic rewriting means (19) registers a character string other than the reference character string in the new character string registration section (34), and the display changing means (22) causes the new character string registration section (34). The character string editing device according to claim 1, wherein, when the character string registered in () is displayed by the display means (14), the display of the character string is changed to a display format indicating that the character string is a newly appearing character string.
【請求項4】 前記入力手段(10)は、文字列の入力
完了を示す文字列確定キー(78)を備え、前記文字列
比較手段(20)は、前記文字列確定キー(78)の入
力があったとき、文字列の入力が完了したものとしてそ
の文字列と基準文字列との比較を開始することを特徴と
する請求項1記載の文字列編集装置。
4. The input means (10) comprises a character string confirmation key (78) indicating completion of input of a character string, and the character string comparison means (20) inputs the character string confirmation key (78). The character string editing apparatus according to claim 1, wherein when the input is present, it is determined that the input of the character string is completed and the comparison between the character string and the reference character string is started.
【請求項5】 前記テーブル(18)は、基準文字列を
その属性毎に区分して登録しており、 前記文字列比較手段(20)による入力文字列の比較
は、前記文字列確定キー(78)の入力を開始条件とし
て行われ、かつ、前記テーブル(18)において基準文
字列の属性毎に行われ、 前記自動書換手段(19)は、前記文字列比較手段(2
0)による比較の結果、入力文字列がいずれの基準文字
列にも一致しないとき、その入力文字列を新規出現の文
字列である旨を示す新規文字列登録部(34)に登録
し、 前記表示変更手段(22)は、前記文字列比較手段(2
0)による比較の結果、入力文字列が基準文字列に一致
するとき、その一致した基準文字列の属性毎に表示形式
を変更して前記表示手段(14)に出力し、一方、入力
文字列がいずれの基準文字列にも一致しないとき、新規
出現の文字列である旨を示す表示形式で前記表示手段
(14)に出力することを特徴とする請求項4記載の文
字列編集装置。
5. The table (18) registers reference character strings by classifying them according to their attributes, and comparing the input character strings by the character string comparison means (20) is performed by the character string confirmation key ( 78) is input as a start condition and is performed for each attribute of the reference character string in the table (18), the automatic rewriting means (19) is the character string comparing means (2).
When the input character string does not match any of the reference character strings as a result of comparison by 0), the input character string is registered in the new character string registration unit (34) indicating that it is a newly appearing character string, The display changing means (22) is the character string comparing means (2).
When the input character string matches the reference character string as a result of comparison by 0), the display format is changed for each attribute of the matched reference character string and output to the display means (14), while the input character string 5. The character string editing device according to claim 4, wherein when the character string does not match any of the reference character strings, the character string is output to the display means (14) in a display format indicating that the character string is a newly appearing character string.
JP15056492A 1992-06-10 1992-06-10 Character string editing device Pending JPH05341976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15056492A JPH05341976A (en) 1992-06-10 1992-06-10 Character string editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15056492A JPH05341976A (en) 1992-06-10 1992-06-10 Character string editing device

Publications (1)

Publication Number Publication Date
JPH05341976A true JPH05341976A (en) 1993-12-24

Family

ID=15499642

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15056492A Pending JPH05341976A (en) 1992-06-10 1992-06-10 Character string editing device

Country Status (1)

Country Link
JP (1) JPH05341976A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006215896A (en) * 2005-02-04 2006-08-17 Nec Micro Systems Ltd Management method for identifier for conditional compilation and preparation supporting device for computer program and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006215896A (en) * 2005-02-04 2006-08-17 Nec Micro Systems Ltd Management method for identifier for conditional compilation and preparation supporting device for computer program and program

Similar Documents

Publication Publication Date Title
US5418718A (en) Method for providing linguistic functions of English text in a mixed document of single-byte characters and double-byte characters
US6311323B1 (en) Computer programming language statement building and information tool
JPH05341976A (en) Character string editing device
JPH10301933A (en) Document processor, its method and recording medium
JP2870375B2 (en) Sentence correction device
JP4050745B2 (en) Text input system
JPH0250505B2 (en)
JP2795930B2 (en) Document creation support device
JP3316884B2 (en) Language translator
JPS61175855A (en) Kana to kanji converting device
JP3292403B2 (en) Document processing device with translation function
JP2783611B2 (en) Document creation device
JP2728341B2 (en) Information processing device
JP2889052B2 (en) Character typeface processing method and apparatus
JPS59165124A (en) Japanese language word processor
JPH11195022A (en) Character processor, method for character processing and record medium
JPS6162162A (en) Method for text display
JPH02144761A (en) Sentence producing device
JPS60196868A (en) Kana/kanji converter
JPH03156667A (en) Document editing processor
JPH0544700B2 (en)
JPS6265162A (en) Kana-kanji converting system
JPH04332073A (en) Method and device for processing character
JPH08329052A (en) Reading and notation converting method
JPH01318156A (en) Document processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010925