JPS62236746A - Method for emphasis-outputting character string - Google Patents

Method for emphasis-outputting character string

Info

Publication number
JPS62236746A
JPS62236746A JP61080035A JP8003586A JPS62236746A JP S62236746 A JPS62236746 A JP S62236746A JP 61080035 A JP61080035 A JP 61080035A JP 8003586 A JP8003586 A JP 8003586A JP S62236746 A JPS62236746 A JP S62236746A
Authority
JP
Japan
Prior art keywords
character string
data
stack
output
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
JP61080035A
Other languages
Japanese (ja)
Inventor
Hideo Endo
遠藤 英夫
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP61080035A priority Critical patent/JPS62236746A/en
Publication of JPS62236746A publication Critical patent/JPS62236746A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/30Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for printing with large type, e.g. on bulletins, tickets

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To enhance the efficiency of desk debugging by making the programming point easy to catch, especially, on a program list by facilitating the discrimination between a character string and the other part, by searching for a predetermined charac ter string from the character string data outputted from an output device and applying emphasis processing to the part of said character string to output the same. CONSTITUTION:For example, 'AA' is entered in a designated word table as a designat ed word and a character string search part 2 is equipped not only with a pushup stack 4 for referring to the designated word but also with an output route 5 for outputting emphasized character string data and a route 6 for outputting the character data as it is without emphasizing the same. At first, one character data is taken out from input data to be set to the first bite of the stack 4 of the character string search part 2 and, next, the next one character data is taken out from the input data to be set to the second bite of the stack 4. The content of the stack 4 is compared with the designated word data of the designated word table 1 and, when the data of the stack 4 is 'AA', the first and second bites of the stack 4 are successively taken out in a character string replacing part 3 and altered to an emphasized character to be outputted from the output route 5 and the stack 4 is cleared to advance the processing of the next character string data.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、コンピュータシステムにおける文字列強調出
力方法に関し、特に、プログラムリスト等の出力文字列
データ中の所定の文字列に対し自動的に強調処理を行な
い出力する文字列強調出力方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a character string emphasis output method in a computer system, and in particular, to a method for automatically emphasizing a predetermined character string in output character string data such as a program list. This invention relates to a character string emphasis output method that performs processing and outputs.

[従来の技術1 プログラムのデバッグを行なうときの基本的かつ有効な
方法のひとつである机上デバッグの際には、プログラミ
ング言語で書かれたプログラムリストを用いる。
[Prior Art 1] In desktop debugging, which is one of the basic and effective methods for debugging programs, a program list written in a programming language is used.

[発明が解決しようとする問題点] ところで、このリストは通常、単一の種類の文字で書か
れ、言語の予約語や変数名等の区別がつき難くなってい
る。従って、プログラマが言語に不慣れな場合には、プ
ログラミングのポイントである予約語を押えることがで
きず、デバッグが進まなかったりプログラムが正しくな
いのに誤って正しいと判断してしまう等の問題があった
。また、プログラマは、このリストを参照して特定の変
数等に注目したい場合は、自分でマーカ等を用いて印を
付けなければならなかった。
[Problems to be Solved by the Invention] By the way, this list is usually written using a single type of characters, making it difficult to distinguish language reserved words, variable names, etc. Therefore, if the programmer is unfamiliar with the language, he or she may not be able to remember reserved words, which is the key point of programming, and this may cause problems such as debugging not progressing or incorrectly determining that the program is correct when it is incorrect. Ta. Furthermore, if the programmer wanted to refer to this list and focus on a particular variable, he had to mark it himself using a marker or the like.

本発明の目的は、上述の従来形の問題点に鑑み、コンピ
ュータシステムにおける各種の出力について、指定語や
予約語等の所定の文字列を強調することにより当該文字
列を際立たせて他の部分と区別し易くし、特にプログラ
ムリスト上でプログラミングポイントを押えやすくして
机上デバッグの効率を上げることにある。
In view of the above-mentioned problems of the conventional method, an object of the present invention is to emphasize a predetermined character string such as a designated word or a reserved word in various outputs from a computer system, thereby making the character string stand out and other parts. The purpose is to make it easier to distinguish between the two, and to make it easier to identify programming points especially on the program list, thereby increasing the efficiency of desktop debugging.

[問題点を解決するための手段および作用]上記の目的
を達成するため、本発明の文字列強調出力方法は、入力
装置、出力装置、記憶装置および中央処理装置を具備す
るコンピュータシステムにおいて、上記出力装置から出
力する文字列データ中の所定の文字列を検索し、検索結
果に基づいて該所定の文字列部分に強調処理を施した後
、出力づることを特徴とする。
[Means and effects for solving the problems] In order to achieve the above object, the character string emphasis output method of the present invention is provided in a computer system equipped with an input device, an output device, a storage device, and a central processing unit. The present invention is characterized in that a predetermined character string is searched for in character string data outputted from an output device, and the predetermined character string portion is emphasized based on the search results before being output.

これにより、出力結果である文字列データ中で当該所定
の文字列を目立たせることができる。
This allows the predetermined character string to stand out in the character string data that is the output result.

この所定の文字列は、指定語として外部より指定可能と
してもよいし、予め定められた予約語であってもよい。
This predetermined character string may be externally designated as a specified word, or may be a predetermined reserved word.

また、出力装置はプリンタやCRT等の表示装置とする
ことができる。出力装置をプリンタとし、出力する文字
列データをプログラムのリストとすれば、プログラムの
リスト上でデバッグ時等のポイントとなる所定の文字列
を他の部分と区別して際立たせることができる。
Further, the output device can be a display device such as a printer or a CRT. If the output device is a printer and the character string data to be output is a program list, a predetermined character string that is a key point during debugging can be distinguished from other parts on the program list.

[実 施 例] 以下、図面を用いて本発明の詳細な説明する。[Example] Hereinafter, the present invention will be explained in detail using the drawings.

本発明の文字列強調出力方法は、例えば通常のコンピュ
ータシステムに文字列サーチ部、文字置換部、指定語テ
ーブルを備えることにより実現できる。
The character string emphasis output method of the present invention can be realized, for example, by equipping a normal computer system with a character string search section, a character replacement section, and a specified word table.

第1図は、本発明の一実施例に係る文字列強調出力方法
を適用したシステムの当該構成部分を示す。同図におい
て、1は指定語テーブルであり、ユーザが予め指定した
強調すべき文字列が登録されている。2は文字列サーチ
部であり、入力文字列データに対し指定語テーブルを参
照しながら指定語が含まれていないかどうか検索しチェ
ックする。3は文字列置換部であり、文字列サーチ部で
検査した結果に基づいて指定文字列の部分を強調文字に
変更する。
FIG. 1 shows the constituent parts of a system to which a character string emphasis output method according to an embodiment of the present invention is applied. In the figure, reference numeral 1 denotes a designated word table, in which character strings to be emphasized specified in advance by the user are registered. Reference numeral 2 denotes a character string search unit, which searches and checks whether or not a designated word is included in input character string data while referring to a designated word table. Reference numeral 3 denotes a character string replacement unit, which changes a designated character string portion to a highlighted character based on the result of the check performed by the character string search unit.

上記構成において、第2図の左側に示したようなプログ
ラムリストデータを入力データとして与えたとする。こ
のとき、指定語としてrAAJを指定語テーブルに登録
しておけば、図中右側に示すような出力データが出力さ
れる。指定語であるrAAJの部分が太字となり強調さ
れていることがわかる。
In the above configuration, assume that program list data as shown on the left side of FIG. 2 is given as input data. At this time, if rAAJ is registered as a specified word in the specified word table, output data as shown on the right side of the figure will be output. It can be seen that the designated word rAAJ is highlighted in bold.

次に、第3図の構成図および第4図のフローチャートを
参照して、第2図のように指定語rAAjを強調する際
の処理の手順を説明する。
Next, the procedure for emphasizing the specified word rAAj as shown in FIG. 2 will be described with reference to the configuration diagram in FIG. 3 and the flowchart in FIG. 4.

第3図において、指定語テーブル1には指定語としてr
AAJが登録されている。また、文字列サーチ部2は指
定語の検索のための先入れ先出しスタック4を備えてい
る。また、5は強調された文字列データの出力ルート、
6は強調されず入力データをそのまま出力するルートを
示す。
In Figure 3, designated word table 1 contains r as a designated word.
AAJ is registered. The character string search unit 2 also includes a first-in, first-out stack 4 for searching for specified words. In addition, 5 is the output route of the highlighted character string data,
6 shows a route in which the input data is output as is without being emphasized.

第4図において、まず、ステップS1で入力データから
1文字データを取り出し、ステップS2で取り出しが成
功したかどうかチェックする。取り出しが失敗した場合
は終了とし、再び始めに戻ってステップS1より開始す
る。1文字取り出せた場合は、ステップS3でこの文字
データを文字列サーチ部のスタック4の1バイト目にセ
ットする。
In FIG. 4, first, in step S1, one character data is extracted from input data, and in step S2, it is checked whether the extraction was successful. If the extraction fails, the process is terminated, and the process returns to the beginning and starts from step S1. If one character is extracted, this character data is set in the first byte of stack 4 of the character string search section in step S3.

次に、ステップS4で入力データから次の1文字データ
を取り出し、ステップS5で取り出しが成功したかどう
かチェックする。取り出し失敗のときはステップS7へ
分岐する。取り出し成功のときは、ステップS6でこの
文字データを文字列サーチ部のスタック4の2バイト目
にセットする。
Next, in step S4, the next character data is extracted from the input data, and in step S5, it is checked whether the extraction was successful. If the extraction fails, the process branches to step S7. If the retrieval is successful, this character data is set in the second byte of the stack 4 of the character string search section in step S6.

ステップS7ではスタック4の内容と指定語テーブル1
の指定語データを比較する。ここでは指定語としてrA
AJが登録されているから、スタッり4の内容とこのr
AAJとを比較することとなる。
In step S7, the contents of stack 4 and specified word table 1 are
Compare specified word data. Here, the designated word is rA
Since AJ is registered, the contents of star 4 and this r
This will be compared with AAJ.

ステップS7でスタック4のデータがrAAJであった
ときはステップS8に分岐し、文字列置換部3において
スタック4の1バイト目を取り出し、強調文字に変更し
て第3図の出力ルート5から出力する。同様に、ステッ
プS9でスタック4の2バイト目を取り出し、強調文字
に変更して第3図の出力ルート5から出力する。次に、
スタック4をクリアし、ステップS1に戻り次の文字列
データについて処理を進める。
If the data in the stack 4 is rAAJ in step S7, the process branches to step S8, and the character string replacement unit 3 extracts the first byte of the stack 4, changes it to an emphasized character, and outputs it from the output route 5 in FIG. do. Similarly, in step S9, the second byte of the stack 4 is taken out, changed to an emphasized character, and outputted from the output route 5 in FIG. next,
The stack 4 is cleared, and the process returns to step S1 to proceed with the processing for the next character string data.

一方、ステップS7でスタック4のデータがrAAJで
ないと判別した場合は、ステップ811でスタック4の
1バイト目を第3図の出力ルートロから出力する。さら
に、ステップ312でスタック4の2バイト目のデータ
を1バイト目にセットし、ステップ813でスタック4
の2バイト目をクリアする。その侵、ステップ314で
スタック4に文字データが存在するかどうか判別し、文
字データがあればステップS4に分岐する。スタック4
に文字データがない場合は、終了とし、入力データがま
だあるときには再びステップS1より開始される。
On the other hand, if it is determined in step S7 that the data in stack 4 is not rAAJ, in step 811 the first byte of stack 4 is output from the output router shown in FIG. Furthermore, in step 312, the data of the second byte of stack 4 is set to the first byte, and in step 813, the data of the stack 4 is set to the first byte.
Clear the second byte of. In step 314, it is determined whether character data exists in the stack 4. If character data exists, the process branches to step S4. stack 4
If there is no character data, the process ends, and if there is still input data, the process starts again from step S1.

以上のような処理を繰返し、指定語を強調して出力して
いく。
The above process is repeated to emphasize and output the designated word.

なお、本実施例では出力データを太字として強調を行な
っているが、強調処理はこれに限らず種々のものが適用
できる。例えば、文字の字体、色または大きさ等を変え
てもよいし、表示装置への出力の場合は文字を点滅させ
る等により強調することとしてもよい。
Note that in this embodiment, the output data is emphasized by making it bold, but the emphasizing process is not limited to this, and various other emphasizing processes can be applied. For example, the font, color, or size of the characters may be changed, or when output to a display device, the characters may be highlighted by blinking or the like.

本実施例によれば、ユーザが指定した文字列が強調され
るので特定の変数のフォa−がし易くなる。また、変数
の打ち間違い等も発見され易くなる。
According to this embodiment, the character string specified by the user is highlighted, making it easier to focus on a specific variable. In addition, errors in typing variables, etc., become easier to discover.

また、本実施例の指定語テーブルの代わりに、あるいは
指定語テーブルに加えて、予約語を登録した予約語テー
ブルを設け、これらを強調するようにすれば、予約語が
目立つようになり構文エラーやタイプミスも見つけ易く
なる。
In addition, instead of or in addition to the specified word table in this embodiment, a reserved word table in which reserved words are registered is provided and these are emphasized.The reserved words will become more noticeable and cause syntax errors. It also makes it easier to spot typos.

ざらに、本発明の文字列強調出力方法はコンピュータシ
ステムに適用するものであるが、近年よく使用されてい
るO8であるUNIX(AT&Tベル研究所が開発した
O8の商品名)において適用しフィルタとして構成する
ことにより、tJNIX上で扱う文字列データに対し所
定の強調処理を簡便に行なうことができ便宜である。
In general, the character string emphasis output method of the present invention is applied to computer systems, but it can also be applied as a filter to UNIX (trade name of O8 developed by AT&T Bell Laboratories), which is the O8 that has been frequently used in recent years. By configuring this, predetermined emphasis processing can be easily performed on character string data handled on tJNIX, which is convenient.

[発明の効果〕 以上説明したように、本発明によれば、コンピュータシ
ステムにおいて、出力装置から出力する文字列データ中
から所定の文字列を検索し検索結果に基づいてその所定
の文字列部分に強調処理を施した後出力するようにして
いるので、当該文字列が際立って他の部分と区別し易く
なり、特にプログラムリスト上でプログラミングポイン
トを押えやすく机上デバッグの効率を上げることができ
る。
[Effects of the Invention] As explained above, according to the present invention, in a computer system, a predetermined character string is searched from character string data output from an output device, and a predetermined character string portion is searched based on the search result. Since the character string is output after being emphasized, the character string stands out and can be easily distinguished from other parts, making it easier to identify programming points, especially on the program list, and improving the efficiency of desktop debugging.

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

第1図は、本発明の一実施例に係る文字列強調出力方法
を適用したシステムの当該部分の構成図、第2図は、プ
ログラムリストデータを上記実施例により出力した際の
出力例、 第3図は、指定語を強調する際の処理手順を説明するた
めの構成図、 第4図は、指定語を強調する際の処理手順を説明するた
めのフローチャートである。 1・・・指定語テーブル、  2・・・文字列サーチ部
、3・・・文字列置換部。
FIG. 1 is a block diagram of the relevant part of a system to which a character string emphasis output method according to an embodiment of the present invention is applied, and FIG. 2 is an output example when program list data is output according to the above embodiment. FIG. 3 is a block diagram for explaining the processing procedure when emphasizing a specified word, and FIG. 4 is a flowchart for explaining the processing procedure when emphasizing the specified word. 1...Specified word table, 2...Character string search section, 3...Character string replacement section.

Claims (1)

【特許請求の範囲】 1、入力装置、出力装置、記憶装置および中央処理装置
を具備するコンピュータシステムにおいて、上記出力装
置から出力する文字列データ中の所定の文字列を検索し
、検索結果に基づいて該所定の文字列部分に強調処理を
施した後、出力することを特徴とする文字列強調出力方
法。 2、前記所定の文字列が、外部より指定可能な特許請求
の範囲第1項記載の文字列強調出力方法。 3、前記所定の文字列が、予め定められた予約語である
特許請求の範囲第1項記載の文字列強調出力方法。 4、前記出力装置が、プリンタである特許請求の範囲第
2または3項記載の文字列強調出力方法。 5、前記プリンタが出力する文字列データが、プログラ
ムのリストである特許請求の範囲第4項記載の文字列強
調出力方法。 6、前記出力装置が、表示装置である特許請求の範囲第
1、2または3項記載の文字列強調出力方法。
[Claims] 1. In a computer system equipped with an input device, an output device, a storage device, and a central processing unit, a predetermined character string is searched for in character string data output from the output device, and based on the search result. A character string emphasis output method characterized in that the predetermined character string portion is subjected to emphasis processing and then outputted. 2. The character string emphasis output method according to claim 1, wherein the predetermined character string can be specified externally. 3. The character string emphasis output method according to claim 1, wherein the predetermined character string is a predetermined reserved word. 4. The character string emphasis output method according to claim 2 or 3, wherein the output device is a printer. 5. The character string emphasis output method according to claim 4, wherein the character string data output by the printer is a list of programs. 6. The character string emphasis output method according to claim 1, 2 or 3, wherein the output device is a display device.
JP61080035A 1986-04-09 1986-04-09 Method for emphasis-outputting character string Pending JPS62236746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61080035A JPS62236746A (en) 1986-04-09 1986-04-09 Method for emphasis-outputting character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61080035A JPS62236746A (en) 1986-04-09 1986-04-09 Method for emphasis-outputting character string

Publications (1)

Publication Number Publication Date
JPS62236746A true JPS62236746A (en) 1987-10-16

Family

ID=13707003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61080035A Pending JPS62236746A (en) 1986-04-09 1986-04-09 Method for emphasis-outputting character string

Country Status (1)

Country Link
JP (1) JPS62236746A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5950187A (en) * 1995-11-30 1999-09-07 Fujitsu Limited Document retrieving apparatus and method thereof for outputting result corresponding to highlight level of inputted retrieval key
JP2008269184A (en) * 2007-04-18 2008-11-06 Mitsubishi Electric Corp Program review support device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5950187A (en) * 1995-11-30 1999-09-07 Fujitsu Limited Document retrieving apparatus and method thereof for outputting result corresponding to highlight level of inputted retrieval key
JP2008269184A (en) * 2007-04-18 2008-11-06 Mitsubishi Electric Corp Program review support device

Similar Documents

Publication Publication Date Title
JPH04271443A (en) Method and device for data base constitution
JPH0581327A (en) Information retrieval supporting processor
JPS62236746A (en) Method for emphasis-outputting character string
JPS6118074A (en) Pre-editing system
JPS6162975A (en) Dictionary index processor
JP3608864B2 (en) Typesetting method and apparatus
JP3466761B2 (en) Document processing apparatus and control method thereof
JP2855027B2 (en) Graphic display device
JPH09330107A (en) Comment adding method of ladder chart generation cad system for programmable controller
JPH0731315Y2 (en) Electronics
JPS62154169A (en) Dictionary retrieving method for kana-to-kanji converting device
JPH01195576A (en) Dictionary editor device
JPS62256069A (en) Document processor
JPH06309366A (en) Key word extraction system
JP2965578B2 (en) Document creation support method
JP2973520B2 (en) Display method in electronic document editing device
JPS619726A (en) Electronic dictionary
JPS62256070A (en) Document processor
JPH0215364A (en) Document processor
JPH01161577A (en) Natural language processor
JPH07249034A (en) Character string extraction processor
JPS63196973A (en) Kana/kanji converting system
JPH01288919A (en) English word retrieving device
JPS62203226A (en) Document processor
JPS62203228A (en) Document processor