JPH07160494A - Correction device for input character string at coding time - Google Patents

Correction device for input character string at coding time

Info

Publication number
JPH07160494A
JPH07160494A JP5340444A JP34044493A JPH07160494A JP H07160494 A JPH07160494 A JP H07160494A JP 5340444 A JP5340444 A JP 5340444A JP 34044493 A JP34044493 A JP 34044493A JP H07160494 A JPH07160494 A JP H07160494A
Authority
JP
Japan
Prior art keywords
word
keyword
source program
words
character string
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.)
Granted
Application number
JP5340444A
Other languages
Japanese (ja)
Other versions
JP2636720B2 (en
Inventor
Atsushi Enjiyou
敦 圓浄
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP5340444A priority Critical patent/JP2636720B2/en
Publication of JPH07160494A publication Critical patent/JPH07160494A/en
Application granted granted Critical
Publication of JP2636720B2 publication Critical patent/JP2636720B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To reduce misinput which is caused when a source program is coded. CONSTITUTION:In a storage device 2, the grammar of a language used to generate a source program, words which are prepared for the language, a character string which is inputted from an input part 31 so as to generate the source program, etc., are stored. A key word extraction part 11 extracts a word which meets grammatical conditions (e.g. function name) as a key word from the character string inputted from the input part 31 and a retrieval means 12 performs fuzzy retrieval in the storage device 2 to find words which are similar to the key word and words which match the key word. When only words which are similar to the key word is found by the retrieval means 12, a determining means 13 determines one of the found words as a correct word corresponding to the key word and an alteration means 14 substitutes the word which is judged by the determining means 13 to be correct for the key word in the source program that is being generated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ソースプログラムのコ
ーディング時に発生する入力ミスを少なくすることがで
きるコーディング時の入力文字列修正装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for correcting an input character string at the time of coding, which can reduce input errors occurring at the time of coding a source program.

【0002】[0002]

【従来の技術】プログラムのデバッグを行なう場合、ソ
ースプログラム中に存在する入力ミスが少ないほど、デ
バッグを効率的に行なうことができるが、従来は、作成
されたソースプログラムを入力してコンパイル,デバッ
グを行ない、その過程に於いてエラーが発生すると、修
正可能なら修正するだけであった(例えば、特開平3−
263129号公報)。
2. Description of the Related Art When a program is debugged, the fewer input mistakes that exist in the source program, the more efficient the debugging can be. However, conventionally, the created source program is input and compiled and debugged. When an error occurs in the process, if it can be corrected, it is only corrected (for example, JP-A-3-
No. 263129).

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
は、既に作成されたソースプログラムを対象にして修正
を行なっているだけであり、ソースプログラムのコーデ
ィング時の入力ミスのチェックは、操作者の責任に於い
て行なわれるので、ソースプログラム中に存在する入力
ミスが多くなり、その結果、デバッグを効率的に行なう
ことができなくなる場合があるという問題があった。
As described above, conventionally, the correction is made only for the source program already created, and the operator checks the input error when coding the source program. Since it is performed under the responsibility of, the number of input errors existing in the source program increases, and as a result, there is a problem that debugging cannot be efficiently performed.

【0004】本発明の目的は、ソースプログラムのコー
ディング時に発生する入力ミスを少なくすることができ
るコーディング時の入力文字列修正装置を提供すること
にある。
An object of the present invention is to provide an input character string correction device at the time of coding, which can reduce input errors occurring at the time of coding a source program.

【0005】[0005]

【課題を解決するための手段】本発明は上記目的を達成
するため、ソースプログラムの作成に使用する言語の文
法と、該言語で用意されている語と、入力部から入力さ
れる作成中のソースプログラムの文字列と、該作成中の
ソースプログラムとリンクされる作成済みのソースプロ
グラムとを格納する記憶装置と、前記入力部から入力さ
れる文字列の中から、予め定められている文法上の条件
を満たす語を前記記憶装置に記憶されている文法に基づ
いて抽出し、抽出した語をキーワードとするキーワード
抽出手段と、前記記憶装置に格納されている前記言語で
用意されている語及び作成済みのソースプログラムか
ら、前記キーワード抽出手段で抽出されたキーワードと
一致する語及び類似する語を検索し、類似する語を検索
でき、且つ一致する語を検索できなかった場合、検索結
果を出力する検索手段と、該検索手段から出力された検
索結果中の1語を、前記キーワードに対応する正しい語
と特定する確定手段と、前記記憶装置に格納されている
作成中のソースプログラム中の文字列の内、前記キーワ
ードに対応する語を、前記確定手段が特定した語に書き
換える変更手段とを備えたものである。
In order to achieve the above object, the present invention provides a grammar of a language used to create a source program, words prepared in the language, and Based on a predetermined grammar from a character string of the source program, a storage device that stores the created source program linked to the source program being created, and a character string input from the input unit. Keyword extraction means for extracting a word satisfying the condition of 1) on the basis of a grammar stored in the storage device, and using the extracted word as a keyword; and a word prepared in the language stored in the storage device, and From the created source program, a word matching the keyword extracted by the keyword extracting means and a similar word can be searched for, and a similar word can be searched for and match. When it is not possible to search, the search means for outputting the search result, the determining means for identifying one word in the search result output from the search means as a correct word corresponding to the keyword, and storing in the storage device Among the character strings in the source program being created, the word corresponding to the keyword is rewritten to the word specified by the determining means.

【0006】[0006]

【作用】入力部から文字列が入力されると、キーワード
抽出手段が、入力文字列からキーワード(例えば、関数
名)を抽出し、検索手段が、記憶装置に格納されている
言語によって用意されている語や、現在作成中のソース
プログラムとリンクされる他のソースプログラムを検索
し、上記キーワードと一致する語及び類似する語を探し
出す。
When the character string is input from the input unit, the keyword extracting means extracts a keyword (for example, a function name) from the input character string, and the searching means is prepared according to the language stored in the storage device. Existing words or other source programs linked to the source program currently being created are searched for a word that matches the above keyword and a similar word.

【0007】検索手段でキーワードに類似する語のみが
探し出されると、確定手段が、その内の1語をキーワー
ドに対応する正しい語と特定し、ソースプログラム中の
キーワードに対応する文字列を確定手段が特定した語に
書き換える。
When only the word similar to the keyword is found by the searching means, the determining means identifies one of the words as the correct word corresponding to the keyword and determines the character string corresponding to the keyword in the source program. Rewrite the word specified by the means.

【0008】[0008]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0009】図1は本発明の実施例のブロック図であ
り、プログラム制御により動作するデータ処理装置1
と、記憶装置2と、入出力装置3とから構成される。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a data processing device 1 operated by program control is shown.
And a storage device 2 and an input / output device 3.

【0010】記憶装置2は、ソースプログラムの作成に
使用する言語の文法,予約語が格納される言語知識記憶
部21と、ライブラリ関数の関数名が格納されるライブ
ラリ記憶部22と、現在作成中のソースプログラム及び
現在作成中のソースプログラムとリンクされる他のソー
スプログラムが格納されるソースプログラム記憶部23
とを有する。
The storage device 2 stores a grammar of a language used to create a source program and a language knowledge storage unit 21 in which reserved words are stored, a library storage unit 22 in which function names of library functions are stored, and currently being created. Source program storage unit 23 that stores the source program of the above and other source programs linked with the source program currently being created
Have and.

【0011】入出力装置3は、キーボード等の入力部3
1と、ディスプレイ装置等の出力部32とから構成され
る。
The input / output device 3 is an input unit 3 such as a keyboard.
1 and an output unit 32 such as a display device.

【0012】データ処理装置1は、キーワード抽出手段
11と、検索手段12と、確定手段13と、変更手段1
4とから構成される。
The data processing device 1 includes a keyword extracting means 11, a searching means 12, a confirming means 13, and a changing means 1.
4 and.

【0013】キーワード抽出手段11は、入力部31か
ら入力された文字列の中から、予め定められている文法
上の条件を満たす語を、言語知識記憶部21に格納され
ている文法に基づいて抽出し、キーワードとする機能を
有する。
Based on the grammar stored in the language knowledge storage unit 21, the keyword extraction unit 11 selects a word satisfying a predetermined grammatical condition from the character string input from the input unit 31 based on the grammar stored in the language knowledge storage unit 21. It has a function to extract and use as a keyword.

【0014】検索手段12は、言語知識記憶部21,ラ
イブラリ記憶部22,ソースプログラム記憶部23を検
索することにより、キーワード抽出手段11で抽出され
たキーワードと類似する語及び一致する語を探し出し、
類似する語を探し出せ、且つ一致する語を探し出せなか
った場合、探し出した語を検索結果として出力する機能
を有する。
The search means 12 searches the language knowledge storage unit 21, the library storage unit 22, and the source program storage unit 23 to find a word similar to the keyword extracted by the keyword extraction unit 11 and a matching word,
When a similar word can be found and a matching word cannot be found, it has a function of outputting the found word as a search result.

【0015】確定手段13は、検索手段12が探し出し
た語の内の1語を、前記キーワードに対応する正しい語
と特定する機能を有する。
The fixing means 13 has a function of specifying one of the words found by the searching means 12 as the correct word corresponding to the keyword.

【0016】変更手段14は、ソースプログラム記憶部
23に格納されている作成中のソースプログラム中の上
記キーワードに対応する文字列を、検索手段12が特定
した語に書き換える機能及び出力部32の画面に表示さ
れているソースプログラム中の上記キーワードに対応す
る文字列を、検索手段12が特定した語に書き換える機
能を有する。
The changing means 14 has a function of rewriting a character string corresponding to the keyword in the source program being created stored in the source program storage section 23 into a word specified by the searching means 12 and a screen of the output section 32. It has a function of rewriting the character string corresponding to the above-mentioned keyword in the source program displayed in (1) to the word specified by the searching means 12.

【0017】図2はキーワード抽出手段11の処理例を
示す流れ図、図3は検索手段12の処理例を示す流れ
図、図4は確定手段13の処理例を示す流れ図、図5は
変更手段14の処理例を示す流れ図であり、以下各図を
参照して本実施例の動作を説明する。
FIG. 2 is a flow chart showing a processing example of the keyword extracting means 11, FIG. 3 is a flow chart showing a processing example of the searching means 12, FIG. 4 is a flow chart showing a processing example of the confirming means 13, and FIG. It is a flow chart showing a processing example, and the operation of the present embodiment will be described below with reference to the drawings.

【0018】プログラマがソースプログラムを作成する
ために入力部31から入力した文字列は、出力部32の
画面に表示されると共に、記憶装置2内のソースプログ
ラム記憶部23に格納される。また、上記した文字列
は、データ処理装置1内のキーワード抽出手段11にも
加えられる。
The character string input by the programmer from the input unit 31 to create the source program is displayed on the screen of the output unit 32 and stored in the source program storage unit 23 in the storage device 2. The above-mentioned character string is also added to the keyword extracting means 11 in the data processing device 1.

【0019】キーワード抽出手段11は、入力部31か
ら文字列が入力されると、図2に示すように、入力文字
列と言語知識記憶部21に格納されている文法とに基づ
いて、入力文字列の中から、文法上の特定の条件を満た
す語をキーワードとして抽出する (ステップS1)。こ
こで、キーワードとして抽出する語の文法上の条件は任
意なものとすることができ、例えば、関数名とすること
ができる。
When the character string is input from the input unit 31, the keyword extracting means 11 determines the input character string based on the input character string and the grammar stored in the language knowledge storage unit 21, as shown in FIG. Words satisfying a specific grammatical condition are extracted as keywords from the sequence (step S1). Here, the grammatical condition of the word extracted as the keyword can be arbitrary, for example, a function name.

【0020】キーワード抽出手段11は、キーワードを
抽出すると (ステップS2がYES)、抽出したキーワ
ードを検索手段12に渡し (ステップS3)、その後、
ステップS1の処理に戻る。
When the keyword extracting means 11 extracts the keyword (YES in step S2), the extracted keyword is passed to the searching means 12 (step S3), and thereafter,
The process returns to step S1.

【0021】キーワード抽出手段11は、入力部31か
らソースプログラムの入力終了が指示されるまで (ステ
ップS4がYES)、上記した処理を繰り返し行なう。
The keyword extracting means 11 repeats the above-described processing until the input section 31 gives an instruction to end the input of the source program (YES in step S4).

【0022】検索手段12は、キーワード抽出手段11
からキーワードが渡されると、図3に示すように、言語
知識記憶部21中の予約語,ライブラリ記憶部22中の
関数名,ソースプログラム記憶部23中の現在作成中の
ソースプログラムとリンクされる他のソースプログラム
を検索対象として、上記キーワードをキーにしたあいま
い検索を行なう (ステップS11)。
The search means 12 is the keyword extraction means 11
When a keyword is passed from, a reserved word in the language knowledge storage unit 21, a function name in the library storage unit 22, and a source program currently being created in the source program storage unit 23 are linked as shown in FIG. An ambiguous search is performed by using another source program as a search target with the keyword as a key (step S11).

【0023】ここでいうあいまい検索とは、語の比較に
於いて、完全に一致する語以外に、部分的な違いを含む
語も検索する処理を意味する。また、部分的な違いと
は、置換(間違った文字が使われていること),脱落
(欠落した文字があること),余剰(余分な文字がある
こと),前後(文字の順番が入れ替わっていること)等
である。尚、本実施例では不一致箇所が2箇所までの語
を検索対象とする。
The fuzzy search referred to here means a process of searching for a word including a partial difference in the word comparison, in addition to the completely matched word. Partial differences include replacement (using the wrong character), dropout (there is a missing character), surplus (there is an extra character), before and after (the order of the characters is changed). Being) etc. It should be noted that in the present embodiment, words having up to two non-matching portions are searched.

【0024】検索手段12は、ステップS11のあいま
い検索により、キーワードと完全に一致する語を検索で
きた場合、即ち、キーワードの綴りが正しい場合 (ステ
ップS12,S13が共にYES)及びキーワードと完
全に一致する語も、一部のみが相違する語も検索できな
かった場合 (ステップS12がNO)は、検索結果がな
いことを確定手段13に通知する (ステップS16)。
The searching means 12 can find a word that exactly matches the keyword by the fuzzy search in step S11, that is, if the spelling of the keyword is correct (YES in both steps S12 and S13), and the word is completely matched with the keyword. If neither a matching word nor a partially different word could not be searched (NO in step S12), the confirmation unit 13 is notified that there is no search result (step S16).

【0025】また、ステップS11のあいまい検索によ
り、キーワードと一部のみが相違する語だけを検索でき
た場合(ステップS12がYES,ステップS13がN
O)は、検索した語に不一致個数情報を付加して確定手
段13に渡すと共に、キーワードを確定手段13に渡す
(ステップS14,S15)。ここで、不一致個数情報
とは、検索した語とキーワードと不一致箇所の個数を示
す情報である。
Further, when the fuzzy search in step S11 allows the retrieval of only words that are partially different from the keyword (YES in step S12, N in step S13).
O) adds the mismatch count information to the searched word and passes it to the fixing means 13, and also passes the keyword to the fixing means 13.
(Steps S14, S15). Here, the mismatch count information is information indicating the number of mismatched parts between the searched word and keyword.

【0026】確定手段13は、図4に示すように、検索
手段12から検索結果がないことが通知されると (ステ
ップS21がYES)、出力部32の画面に検索結果が
得られなかったことを示す表示を行なう (ステップS2
2)。
As shown in FIG. 4, when the decision means 13 is notified by the search means 12 that there is no search result (YES in step S21), the search result is not obtained on the screen of the output unit 32. Is displayed (step S2
2).

【0027】また、検索手段12から不一致個数情報が
付加された語とキーワードとが送られてきた場合 (ステ
ップS21がNO)は、送られてきた語の中から最も不
一致個数の少ない語を選択する (ステップS23)。
Further, when the word and the keyword to which the mismatch count information is added are sent from the search means 12 (NO in step S21), the word having the smallest mismatch count is selected from the sent words. Yes (step S23).

【0028】ステップS23で選択した語が1語のみの
場合 (ステップS24がNO)は、確定手段13は上記
選択した語とキーワードとを変更手段14に渡す (ステ
ップS25)。
When only one word is selected in step S23 (NO in step S24), the determining means 13 passes the selected word and keyword to the changing means 14 (step S25).

【0029】また、ステップS23で複数の語を選択し
た場合 (ステップS24がYES)は、確定手段13
は、選択した全ての語をキーワードと置き換える語の候
補として出力部32の画面に表示すると共に、キーワー
ドを出力部32の画面に表示する (ステップS26)。
If a plurality of words are selected in step S23 (YES in step S24), the determining means 13
Displays all the selected words as candidates for words to replace the keywords on the screen of the output unit 32 and displays the keywords on the screen of the output unit 32 (step S26).

【0030】出力部32の画面にステップS23で選択
された複数の語及びキーワードが表示されると、プログ
ラマは、候補として表示された語の内の1つを、例え
ば、カーソルを合わせる等して指示する。
When the plurality of words and keywords selected in step S23 are displayed on the screen of the output section 32, the programmer selects one of the words displayed as a candidate by, for example, matching the cursor. Give instructions.

【0031】確定手段13は、候補の内の1つが指示さ
れると (ステップS27がYES)、指示された語とキ
ーワードとを変更手段14に渡す (ステップS28)。
When one of the candidates is designated (YES in step S27), the confirming means 13 passes the designated word and keyword to the changing means 14 (step S28).

【0032】変更手段14は、確定手段13からキーワ
ード及びそれと置き換える語が送られてくると、図5に
示すように、ソースプログラム記憶部23に格納されて
いる現在作成中のソースプログラムの該当部分(キーワ
ードの部分)を送られてきた語に書き換え (ステップS
31)、更に、出力部32の画面に表示されているソー
スプログラムの該当部分の表示を送られてきた語に変更
する (ステップS32)。
When a keyword and a word to replace it are sent from the confirming means 13, the changing means 14 receives the relevant part of the source program currently being created stored in the source program storage section 23 as shown in FIG. Rewrite (keyword part) to the sent word (step S
31) Further, the display of the relevant part of the source program displayed on the screen of the output unit 32 is changed to the sent word (step S32).

【0033】次にC言語でコーディングする場合を例に
して図1の具体的な動作を説明する。
Next, the specific operation of FIG. 1 will be described by taking the case of coding in C language as an example.

【0034】今、関数funcTion( ) を含む文字
列が入力部31から入力されたとする。
Now, it is assumed that a character string including the function funcTion () is input from the input unit 31.

【0035】入力部31から入力された関数funcT
ion( ) を含む文字列は、キーワード抽出手段11に
加えられる。また、上記文字列はソースプログラム記憶
部23に格納されると共に、出力部32の画面に表示さ
れる。
The function funcT input from the input unit 31
The character string including ion () is added to the keyword extracting means 11. The character string is stored in the source program storage unit 23 and displayed on the screen of the output unit 32.

【0036】キーワード抽出手段11は、funcTi
on( ) を含む文字列が加えられると、予め定められて
いる文法上の条件に合う語を上記文字列から抽出する
(図2,ステップS1)。
The keyword extracting means 11 uses funcTi
When a character string including on () is added, a word that meets a predetermined grammatical condition is extracted from the character string (FIG. 2, step S1).

【0037】今、例えば、予め定められている文法上の
条件が関数名であるとすると、キーワード抽出手段11
は関数funcTion( ) の関数名funcTion
を抽出することになる。
Now, for example, if the predetermined grammatical condition is a function name, the keyword extracting means 11
Is the function name funcTion of the function funcTion ().
Will be extracted.

【0038】キーワードとして関数名funcTion
を抽出すると、キーワード抽出手段11は、それを検索
手段12に渡す (ステップS3)。
Function name funcTion as a keyword
When the keyword is extracted, the keyword extracting means 11 passes it to the searching means 12 (step S3).

【0039】検索手段12は、キーワード抽出手段11
からキーワードとして関数名funcTionが渡され
ると、キーワードfuncTionと類似した語を検索
する(図3,ステップS11)。
The search means 12 is the keyword extraction means 11
When the function name funcTion is passed from as a keyword, a word similar to the keyword funcTion is searched (FIG. 3, step S11).

【0040】今、例えば、ライブラリ記憶部22に関数
名functionが格納されているとすると、検索手
段12は関数名funcTionと類似する語として関
数名functionを探し出すことになる。
Now, for example, if the function name function is stored in the library storage unit 22, the search means 12 will search for the function name function as a word similar to the function name funcTion.

【0041】もし、関数名funcTionに類似する
語として関数名functionしか探し出せなかった
場合(図3,ステップS12がYESで、ステップS1
3がNO)は、検索手段12は、検索して得た関数名f
unctionに不一致箇所が1箇所であることを示す
不一致個数情報を付加して確定手段13に渡すと共に、
キーワードfuncTion( ) を確定手段13に渡す
(ステップS14,S15)。
If only the function name function can be found as a word similar to the function name funcTion (YES in step S12 of FIG. 3, step S1
3 is NO), the search means 12 is the function name f obtained by the search.
The unmatched number information indicating that there is one unmatched point is added to the unction, and the unmatched number information is passed to the confirmation means 13.
The keyword funcTion () is passed to the confirmation means 13 (steps S14 and S15).

【0042】検索手段12から上記した情報が渡される
と、確定手段13は、キーワードfuncTionと最
も不一致個数の少ない語を選択するが、この場合、関数
名functionしか送られてきていないので、それ
を選択することになる(図4,ステップS23)。
When the above-mentioned information is passed from the searching means 12, the determining means 13 selects the word having the smallest number of mismatches with the keyword funcTion, but in this case, only the function name function is sent. It will be selected (FIG. 4, step S23).

【0043】その後、確定手段13はステップS23で
選択した語functionとキーワードfuncTi
onとを変更手段14に渡す (ステップS25)。
After that, the fixing means 13 determines the word function and the keyword funcTi selected in step S23.
and is passed to the changing means 14 (step S25).

【0044】変更手段14は、確定手段13から語fu
nctionとキーワードfuncTionとが渡され
ると、ソースプログラム記憶部23に格納されているソ
ースプログラム中のキーワードfuncTionを、確
定手段13から送られてきた語functionに書き
換えると共に、出力部32の画面に表示されているキー
ワードfuncTionを確定手段13から送られてき
た語functionに変更する(図5,ステップS3
1,S32)。
The changing means 14 receives the word fu from the determining means 13.
When the nction and the keyword funcTion are passed, the keyword funcion in the source program stored in the source program storage unit 23 is rewritten to the word function sent from the fixing means 13 and displayed on the screen of the output unit 32. The keyword "funcTion" is changed to the word "function" sent from the determining means 13 (FIG. 5, step S3).
1, S32).

【0045】[0045]

【発明の効果】以上説明したように、本発明は、入力部
から入力される文字列の中から、予め定められている文
法上の条件を満たす語をキーワードとして抽出し、更
に、ソースプログラムの作成に使用している言語で用意
されている語と作成中のソースプログラムとリンクされ
る作成済みのソースプログラムとを検索範囲として、キ
ーワードに一致する語及び類似する語を検索し、類似す
る語のみが検索された場合即ち、キーワードに対応する
正しい語が検索された場合、、キーワードを検索した語
で置き換えるものであるので、ソースプログラムのコー
ディング時に発生する入力ミスを少なくすることがで
き、この結果、デバッグ作業を効率良く行なうことが可
能になる効果がある。
As described above, according to the present invention, a word satisfying a predetermined grammatical condition is extracted as a keyword from the character string input from the input unit, and the source program Using the words prepared in the language used for creation and the created source program linked to the source program being created as the search range, search for words that match the keyword and similar words, and search for similar words. If only the correct word corresponding to the keyword is searched, the keyword is replaced with the searched word, so that it is possible to reduce typographical errors when coding the source program. As a result, there is an effect that the debugging work can be performed efficiently.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】キーワード抽出手段11の処理例を示す流れ図
である。
FIG. 2 is a flowchart showing a processing example of a keyword extracting means 11.

【図3】検索手段12の処理例を示す流れ図である。FIG. 3 is a flowchart showing a processing example of a search means 12.

【図4】確定手段13の処理例を示す流れ図である。FIG. 4 is a flow chart showing an example of processing of a confirming means 13.

【図5】変更手段14の処理例を示す流れ図である。5 is a flowchart showing a processing example of a changing unit 14. FIG.

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

1…データ処理装置 11…キーワード抽出手段 12…検索手段 13…確定手段 14…変更手段 2…記憶装置 21…言語知識記憶部 22…ライブラリ記憶部 23…ソースプログラム記憶部 3…入出力装置 31…入力部 32…出力部 DESCRIPTION OF SYMBOLS 1 ... Data processing apparatus 11 ... Keyword extraction means 12 ... Search means 13 ... Determining means 14 ... Change means 2 ... Storage device 21 ... Language knowledge storage part 22 ... Library storage part 23 ... Source program storage part 3 ... Input / output device 31 ... Input unit 32 ... Output unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ソースプログラムの作成に使用する言語
の文法と、該言語で用意されている語と、入力部から入
力される作成中のソースプログラムの文字列と、該作成
中のソースプログラムとリンクされる作成済みのソース
プログラムとを格納する記憶装置と、 前記入力部から入力される文字列の中から、予め定めら
れている文法上の条件を満たす語を前記記憶装置に記憶
されている文法に基づいて抽出し、抽出した語をキーワ
ードとするキーワード抽出手段と、 前記記憶装置に格納されている前記言語で用意されてい
る語及び作成済みのソースプログラムから、前記キーワ
ード抽出手段で抽出されたキーワードと一致する語及び
類似する語を検索し、類似する語を検索でき、且つ一致
する語を検索できなかった場合、検索結果を出力する検
索手段と、 該検索手段から出力された検索結果中の1語を、前記キ
ーワードに対応する正しい語と特定する確定手段と、 前記記憶装置に格納されている作成中のソースプログラ
ム中の文字列の内、前記キーワードに対応する語を、前
記確定手段が特定した語に書き換える変更手段とを備え
たことを特徴とするコーディング時の入力文字列修正装
置。
1. A grammar of a language used to create a source program, a word prepared in the language, a character string of the source program being created input from an input unit, and a source program being created. A storage device that stores a created source program to be linked, and words that satisfy a predetermined grammatical condition among the character strings input from the input unit are stored in the storage device. Extracted by the keyword extraction means from keyword prepared means extracted based on the grammar and using the extracted words as keywords, and words prepared in the language stored in the storage device and the created source program. Search for a word that matches the keyword and a similar word, and if a similar word can be found and a matching word cannot be found, a search result is output. Means, a determining means for identifying one word in the search result output from the searching means as a correct word corresponding to the keyword, and a character string in the source program being created stored in the storage device. An input character string correction device at the time of coding, comprising: a changing unit that rewrites the word corresponding to the keyword to the word specified by the determining unit.
【請求項2】 前記確定手段は、前記検索手段から出力
された検索結果中の語の中から前記キーワードと不一致
箇所が最も少ない語を選択し、選択した語が1語の場合
は該選択した語を前記キーワードに対応する正しい語と
特定し、選択した語が複数の場合は該選択した複数の語
を表示部に候補として表示し、該表示した複数の候補の
内の選択された1語を前記キーワードに対応する正しい
語と特定することを特徴とする請求項1記載のコーディ
ング時の入力文字列修正装置。
2. The determining means selects a word having the least number of inconsistencies with the keyword from the words in the search result output from the searching means, and when the selected word is one word, selects the word. A word is specified as a correct word corresponding to the keyword, and when a plurality of selected words are selected, the plurality of selected words are displayed as candidates on the display unit, and one word selected from the plurality of displayed candidates is selected. 2. The input character string correction device for coding according to claim 1, wherein is specified as a correct word corresponding to the keyword.
【請求項3】 前記キーワードは、関数名であることを
特徴とする請求項2記載のコーディング時の入力文字列
修正装置。
3. The input character string correction device for coding according to claim 2, wherein the keyword is a function name.
JP5340444A 1993-12-08 1993-12-08 Input character string correction device for coding Expired - Lifetime JP2636720B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5340444A JP2636720B2 (en) 1993-12-08 1993-12-08 Input character string correction device for coding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5340444A JP2636720B2 (en) 1993-12-08 1993-12-08 Input character string correction device for coding

Publications (2)

Publication Number Publication Date
JPH07160494A true JPH07160494A (en) 1995-06-23
JP2636720B2 JP2636720B2 (en) 1997-07-30

Family

ID=18337025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5340444A Expired - Lifetime JP2636720B2 (en) 1993-12-08 1993-12-08 Input character string correction device for coding

Country Status (1)

Country Link
JP (1) JP2636720B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10133883A (en) * 1996-10-31 1998-05-22 Nec Corp Compile system
JP2001142738A (en) * 1999-09-29 2001-05-25 Lucent Technol Inc Scripter and interpreter
JP2017151977A (en) * 2016-02-23 2017-08-31 富士通株式会社 Method and program for repairing software program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63245738A (en) * 1987-04-01 1988-10-12 Nec Corp Automatic correcting system for data item with undefined program
JPH01307832A (en) * 1988-06-07 1989-12-12 Nec Corp System for automatically correcting grammatical error of source program in compiler
JPH03189725A (en) * 1989-12-19 1991-08-19 Fanuc Ltd Analogous word retrieving system for automatic programming device
JPH0449432A (en) * 1990-06-19 1992-02-18 Nec Corp Syntax error analyzing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63245738A (en) * 1987-04-01 1988-10-12 Nec Corp Automatic correcting system for data item with undefined program
JPH01307832A (en) * 1988-06-07 1989-12-12 Nec Corp System for automatically correcting grammatical error of source program in compiler
JPH03189725A (en) * 1989-12-19 1991-08-19 Fanuc Ltd Analogous word retrieving system for automatic programming device
JPH0449432A (en) * 1990-06-19 1992-02-18 Nec Corp Syntax error analyzing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10133883A (en) * 1996-10-31 1998-05-22 Nec Corp Compile system
JP2001142738A (en) * 1999-09-29 2001-05-25 Lucent Technol Inc Scripter and interpreter
JP2017151977A (en) * 2016-02-23 2017-08-31 富士通株式会社 Method and program for repairing software program

Also Published As

Publication number Publication date
JP2636720B2 (en) 1997-07-30

Similar Documents

Publication Publication Date Title
Zettlemoyer et al. Learning context-dependent mappings from sentences to logical form
US5555169A (en) Computer system and method for converting a conversational statement to computer command language
US20190220504A1 (en) Method and system for editing text with a find and replace function leveraging derivations of the find and replace input
EP0283685B1 (en) A spelling assistance method for compound words
US20100262621A1 (en) In-context exact (ice) matching
JPH0877173A (en) System and method for correcting character string
GB2474839A (en) In-context exact matching of lookup segment to translation memory source text
US6804637B1 (en) Method, apparatus, and recording medium for retrieving optimum template pattern
US5373442A (en) Electronic translating apparatus having pre-editing learning capability
CN112463857B (en) Data processing method and system for supporting backtracking data query based on relational database
JP2636720B2 (en) Input character string correction device for coding
US6122650A (en) Method and apparatus for updating time related data in a modified document
JP3531222B2 (en) Similar character string search device
JPH1185536A (en) Device and method for automatically correcting error of source program
WO2022254604A1 (en) Assessment device, assessment method, and program
JP2704945B2 (en) Duplicate expression processing device
JP3868303B2 (en) Name conversion program and device
JP2806352B2 (en) Dictionary maintenance equipment for machine translation
JP2655703B2 (en) Japanese sentence elaboration processing method
JP2011210194A (en) Machine translation device and data structure for edition condition file to be used for edition
CN118444924A (en) Dockerfile instruction line level dependency relation extraction method based on rules
JP2008084078A (en) Japanese-english standard conversion method and system and japanese-english standard conversion program
JPH0546370A (en) Program generating device
JPH0319971B2 (en)
JPH1091422A (en) Software coding system