JPS60120434A - Execution processing device of programming language - Google Patents

Execution processing device of programming language

Info

Publication number
JPS60120434A
JPS60120434A JP22930483A JP22930483A JPS60120434A JP S60120434 A JPS60120434 A JP S60120434A JP 22930483 A JP22930483 A JP 22930483A JP 22930483 A JP22930483 A JP 22930483A JP S60120434 A JPS60120434 A JP S60120434A
Authority
JP
Japan
Prior art keywords
predicate
code
storage means
codes
sentence
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
JP22930483A
Other languages
Japanese (ja)
Inventor
Atsushi Sugano
淳 菅野
Kenichi Ueda
謙一 上田
Kunio Honda
本田 邦夫
Yoshiki Okamura
岡村 嘉己
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP22930483A priority Critical patent/JPS60120434A/en
Publication of JPS60120434A publication Critical patent/JPS60120434A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To make information processings of Japanese language possible by inputting sentence data having codes of a predicate and a sentence end symbol code following the predicate at least and detecting the end code to specify the predicate. CONSTITUTION:A character string of Japanese language from an input means is stored temporarily in a character string storage means 10, and a symbol code in a storage means 12 where the character string is shifted by one character and is stored is detected by a detecting circuit 15. Character codes are stored in a sentence code storage means 16 successively. A coincidence detecting circuit 18 is informed of the position, where codes to be a predicate exist, in codes stored in the storage means by a detecting circuit 14 and refers to a predicate table 19 to detect predicate codes; and when they are detected, the circuit 18 reports them to a CPU21 and transmits them to a storage means 20. The CPU21 compares them with contents of the means 10 to renovate them and checks priority and the number of sentences or the like to divide the character string as prescribed and transmits results to a word retrieving means 3, and they are processed in the means 3.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、パーソナルコンピュータ等の電子計算機で各
種の情報処理を行なわせるプログラム言語の実行処理装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an execution processing device for a programming language that allows an electronic computer such as a personal computer to perform various information processing.

従来例の構成とその問題点 近年の半導体技術の進歩に伴い、パーソナルコンピュー
タの性能は大幅に向上しており、各種データのかな、漢
字まじりの日本語による表現が可能と々っている。
Conventional configurations and their problems With recent advances in semiconductor technology, the performance of personal computers has improved significantly, and it is now possible to express various types of data in kana and Japanese mixed with kanji.

更に最近になって、この日本語による情報処理をプログ
ラミングの分野にまで応用しようとする動きがでてきて
いる。
Furthermore, recently there has been a movement to apply this Japanese information processing to the field of programming.

これまで開発されてきたプログラミング言語には、BA
SIC,FORTRAN、C0BOL 等75にあるが
、これらは英語の構文が基礎となっているだめ、日本人
にとってなじみにりく、また日本語用に開発されたプロ
グラミング言語もいくつがあるが、これらはC0BOL
 言語を基礎としていてC0BOL の文法に縛られて
おり、日本人の誰もが家庭内で利用できるような自然言
語に近い日本語表記言語ではなかった。
Programming languages that have been developed so far include BA
There are 75 programming languages such as SIC, FORTRAN, and C0BOL, but since they are based on English syntax, they are not familiar to Japanese people.Also, there are several programming languages developed for Japanese, but these are C0BOL.
It was based on Japanese language and was bound by C0BOL grammar, so it was not a Japanese written language close to natural language that every Japanese person could use at home.

すなわち、従来のプログラミング言語の実行方法によれ
ば、日本人にとってはなじみにくい言語や文法に基いて
プログラムを作成しなければならず、誰もが簡単に作成
できるプログラムによる実行は困難であった。また、こ
のような事は、日本人だけでなく、中国人、ロシア人な
どについても同様の問題である。
That is, according to the conventional method of executing a programming language, a program must be created based on a language and grammar that are difficult for Japanese people to understand, and it is difficult to execute a program that can be easily created by anyone. Moreover, this is not only a problem for Japanese people, but also for Chinese people, Russian people, etc.

発明の目的 本発明は上記の問題点に鑑みてなされたもので、自然言
語に近い日本語表記等のプログラミング言語でも情報処
理が可能な、家庭内の誰もが容易にプログラムを作成す
ることのできるプログラミング言語の実行処理装置を提
供することを目的とする0 発明の構成 本発明は少なくとも述語と々るべきコードを有する文章
データを入力するとともに、前記述語の次に付される文
章終了記号コードのデータが入力される入力手段と、前
記入力手段から入力された入力情報から文章終了記号コ
ードを検出する文章終了記号コード検出手段と、前記文
章終了記号コード検出手段の検出結果に応じて、前記入
力情報の中から述語を特定してその述語の検査を行なう
述語検査手段とを設けることにより、上記目的を達する
ものである。
Purpose of the Invention The present invention has been made in view of the above-mentioned problems, and provides a system that allows anyone at home to easily create programs that can process information using a programming language similar to natural language, such as Japanese notation. SUMMARY OF THE INVENTION The present invention aims to provide an execution processing device for a programming language that can execute a programming language. an input means into which code data is input; a sentence end symbol code detection means for detecting a sentence end symbol code from the input information input from the input means; and according to the detection result of the sentence end symbol code detector, The above object is achieved by providing a predicate testing means for specifying a predicate from the input information and testing the predicate.

実施例の説明 以下、図面を参照しながら本発明の一実施例について説
明する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例におけるプログラミング言語
の実行処理装置のブロック構成を示すものである。
FIG. 1 shows a block configuration of a programming language execution processing device in an embodiment of the present invention.

第1図において、1はタイプライタ等の入力手段で、順
次日本語の文字が入力される。2は入力手段1から入力
された日本語文字列から”(1)′により一つの単位と
なる文章の優先順位を後述するような順序で決定する文
章優先順位決定手段、3は一文章を述語や修飾語等に区
切る語句検索手段である。6は辞書4を用いて語句検索
手段3が5戸2 検索した語句の述語や修飾語が後述するようなあらかじ
め定められた基礎言語体系となっているか否かを検査す
る語句検査手段で、誤りが発見された場合は誤り表示手
段6によりその旨を表示し、正しい場合は解読手段7に
その旨を通知して解読を開始させる。そして解読手段7
は語句検査手段4から解読開始の指示がなされると、語
句検索手段3から文字情報を読み取り、実行可能なイン
タープリタ言語に変換した後、計算・実行手段8に送出
して実行処理を行なわせる。
In FIG. 1, reference numeral 1 denotes an input means such as a typewriter, into which Japanese characters are sequentially input. 2 is a sentence priority determining means that determines the priority of a sentence as a unit from the Japanese character string input from the input means 1 by "(1)' in the order described later, and 3 is a sentence priority determining means for determining one sentence as a predicate. 6 is a word/phrase search means that uses a dictionary 4 to divide the word/phrase search 3 into 5 units 2. The predicates and modifiers of the searched words form a predetermined basic language system as described below. If an error is found, the error display means 6 displays the error, and if it is correct, the decoding means 7 is notified of this and starts decoding.Then, the decoding means 7
When an instruction to start decoding is issued from the word/phrase inspection means 4, character information is read from the word/phrase search means 3, converted into an executable interpreted language, and then sent to the calculation/execution means 8 for execution processing.

上記構成において、まず入力手段1より第2図に示すよ
うなステップ順序で日本語プログラムが入力されたとす
る。
In the above configuration, it is assumed that a Japanese program is first inputted from the input means 1 in the step order shown in FIG.

その際第2図に示した日本語プログラムの最優先順位は
、第2図のステップ4〜9である。そこでステップ4〜
9をIとすれば、第3図に示すような日本語プログラム
となる。
At this time, the highest priority of the Japanese language program shown in FIG. 2 is steps 4 to 9 in FIG. So step 4~
If 9 is designated as I, the Japanese program will be as shown in Figure 3.

そして次に優先順位の高いものはステップ1の後半、お
よびステップ2,3.10である。そこでそれらのステ
ップを■とすれば、第4図に示す6 ′ ゛ ような日本語プログラムとなる。
The next highest priority is the second half of step 1, steps 2, 3, and 10. If these steps are represented by ■, then the Japanese program will be 6' as shown in Figure 4.

そこで文章優先順位決定手段2は”(、)”に基づいて
第5図に示すような体系プログラムで語句検索手段3に
情報を送出する。
Therefore, the sentence priority determining means 2 sends information to the word search means 3 using a systematic program as shown in FIG. 5 based on "(,)".

次に語句検索手段3では、入力されてくる文章をそれぞ
れ主語、述語、修飾語等に区切るとともに、入力された
文章を一時記憶している。そして語句検査手段5では辞
書4により、それぞれの文章があらかじめ定められた下
表に示すような基礎言語体系となっているか否かを検査
する。そして検査の結果、第6図に示す日本語プログラ
ムは、下表の基礎言語体系に沿っているため、誤り表示
手段6に誤りメツセージがなされることなく、解読手段
7にその旨を通知して解読を開始させる。
Next, the phrase search means 3 divides the input sentences into subjects, predicates, modifiers, etc., and temporarily stores the input sentences. Then, the word/phrase inspection means 5 uses the dictionary 4 to inspect whether each sentence has a predetermined basic language system as shown in the table below. As a result of the inspection, since the Japanese program shown in FIG. 6 complies with the basic language system shown in the table below, no error message is sent to the error display means 6, and the decoding means 7 is notified of the error message. Start decoding.

そして解読手段7は語句検査手段4から解読開始指示が
なされると、語句検索手段3が一時記憶している第5図
に示すような日本語プログラムを次々と入力し、実行可
能なインタプリタ言語に変換した後、計算・実行手段8
に送出して実行処理を行なわせる。
When the decoding means 7 receives an instruction to start decoding from the word/phrase checking means 4, it successively inputs Japanese programs as shown in FIG. After conversion, calculation/execution means 8
to execute the processing.

10″ パ 次に第6図を参照し彦から、文章優先順位決定手段2の
要部構成をさらに詳細に説明する。
10'' Next, with reference to FIG. 6, the main structure of the text priority determining means 2 will be explained in more detail.

第6図は文章優先順位決定手段2の要部ブロック構成を
示すものである。
FIG. 6 shows the main block configuration of the text priority determining means 2. As shown in FIG.

第6図において、10は入力手段1からJISコードあ
るいはASCIIコードの形で入力されてくる文字列を
順次記憶する文字列記憶手段でクロック信号発生器11
のクロック信号により左にシフトがなされる。12は文
字列記憶手段10からシフトされてきた一文字分のコー
ドを記憶する記憶手段、13は記憶手段12が記憶して
いるコードが°′〕″のコードであるか否かを検出する
〕検出回路、14は記憶手段12が記憶しているコード
がパ。″のコードであるか否かを検出する。検出回路、
15は記憶手段12が記憶しているコードが°′〔″の
コードであるか否かを検出する〔検出回路で、各検出回
路13,14.15はクロック信号発生器11が発生す
るクロック信号により同時に検出を開始する。16はそ
の検出が終了した記憶手段12の内容を順次記憶してい
く文章コ11 l゛” 一ド記憶手段で、検出回路15がII (IIを検出す
ると、内容のリセットを行ない次に送出されてくるコー
ドから新たに記憶を開始する。17は検出回路13によ
りII 〕#記号の検出があった際に文章コード記憶手
段16から一致検出回路18に内容の転送許可を行なう
ゲートで、この−数構出回路18は述語テーブル19を
参照することにより文章コードにおける述語の検査を行
なう。そして述語コードを検出すると、後述するCPU
にその旨連絡するとともに、文章コードを記憶手段2゜
に送出する。21は最優先順位の決定後に次の優先順位
を決定できるよう文字列記憶手段1oを制御するCPU
である。
In FIG. 6, reference numeral 10 denotes a character string storage means for sequentially storing character strings input from the input means 1 in the form of JIS code or ASCII code, and a clock signal generator 11.
The clock signal causes a shift to the left. 12 is a storage means for storing the code for one character shifted from the character string storage means 10, and 13 is a detection means for detecting whether or not the code stored in the storage means 12 is the code of °'〕''. The circuit 14 detects whether or not the code stored in the storage means 12 is the code "P.". detection circuit,
15 is a detection circuit for detecting whether or not the code stored in the storage means 12 is a code of °' 16 is a text storage means 11 which sequentially stores the contents of the storage means 12 for which the detection has been completed. A reset is performed and a new storage is started from the code sent next. 17 is determined by the detection circuit 13 to permit the transfer of the contents from the text code storage means 16 to the match detection circuit 18 when the # symbol is detected. This minus number construction circuit 18 checks the predicate in the sentence code by referring to the predicate table 19.When a predicate code is detected, the CPU (described later)
It notifies the user of this fact, and also sends the text code to the storage means 2°. 21 is a CPU that controls the character string storage means 1o so that the next priority can be determined after determining the highest priority.
It is.

上記構成において、以下その動作を説明する。The operation of the above configuration will be explained below.

まず入力手段1より第2図に示すような日本語プログラ
ムがJISコード、あるいはASCIIコードで送出さ
れてくると、文字列記憶手段1゜は順次その文字コード
を記憶する。
First, when a Japanese program as shown in FIG. 2 is sent from the input means 1 in JIS code or ASCII code, the character string storage means 1° sequentially stores the character codes.

次に文字列記憶手段10は記憶手段12に一文字分の文
字コードを送出する。そして各検出回路12 13.15は記憶手段12に送出されている文字コード
が°“(、)” の記号コードであるか否かを検出する
。たとえば第2図に示したステップ1の「売上計算は」
までの文字コードは“〔、〕″′記号コードを含まない
だめ、文章コード記憶手段16に順次記憶されていく。
Next, the character string storage means 10 sends the character code for one character to the storage means 12. Then, each detection circuit 12 13.15 detects whether the character code sent to the storage means 12 is a symbol code of "(,)". For example, in step 1 shown in Figure 2, "sales calculation"
The character codes up to ``[,]'''' are sequentially stored in the sentence code storage means 16 unless they include the symbol code.

しかし次に゛〔″の記号コードが〔検出回路16により
検出される0そのため、文章コード記憶手段16に記憶
された「売上計算は」の文字コードは〔検出回路15の
リセット信号によりリセットされる。
However, next time, the symbol code of "[" is detected by the detection circuit 16. Therefore, the character code of "Sales Calculation" stored in the sentence code storage means 16 is reset by the reset signal of the detection circuit 15. .

以下同様にして、ステップ1からステップ3までの文章
コードはステップ4の先頭に′〔″が存在するため、〔
検出回路15により内容がリセットされる。次にステッ
プ4からステップ9までのコードが文章コード記憶手段
16に記憶される。
In the same way, the text code from step 1 to step 3 has ``['' at the beginning of step 4, so [
The contents are reset by the detection circuit 15. Next, the codes from step 4 to step 9 are stored in the sentence code storage means 16.

そしてステップ9の最後で、〕検出回路13によりパ〕
′″の記号コードが検出されるため、ステップ4からス
テップ13までの内容はゲート17を介して一致検出回
路17に送出され、記憶される。
At the end of step 9, the detection circuit 13 detects the
Since the symbol code ``'' is detected, the contents from step 4 to step 13 are sent to the coincidence detection circuit 17 via the gate 17 and stored therein.

一致検出回路18は、。検出回路14が記憶手段12に
記憶されたコードの中から°゛0″′のコードを検出し
ているだめ、ゲート17から送出されてくるステップ4
からステップ9までコードの何番目に述語しなるべきコ
ードがあるかが。検出回路14により知らされている。
The coincidence detection circuit 18 is. Since the detection circuit 14 detects the code ``0'''' from among the codes stored in the storage means 12, the step 4 sent out from the gate 17
From step 9 to step 9, at what position in the code is there a code that should be a predicate? It is informed by the detection circuit 14.

そして述語コードを記憶している述語テーブル19の内
容を参照することによシ、一致検出回路18はステップ
4からステップ91での述語を検査する。検査の結果、
ステップ4からステップ9までの中に6つの文章が存在
することを検出してCPU21にその旨を通知する。そ
して一致検出回路18は、その後保持していた情報を記
憶手段2oに送出し、記憶させる。
Then, by referring to the contents of the predicate table 19 that stores the predicate code, the match detection circuit 18 checks the predicates in steps 4 to 91. Test results,
It is detected that six sentences exist from step 4 to step 9, and the CPU 21 is notified of this fact. The coincidence detection circuit 18 then sends the held information to the storage means 2o and stores it therein.

次にCPU21は記憶手段20に文字コード列が送出さ
れてくると、文字列記憶手段1oの内容と比較し、対応
する内容の部分を第3図に示すように1として、文字列
記憶手段1oの内容改新を行ない第3図に示す内容のコ
ード列を再び記憶させる。そして次に優先順位の高いも
の、及び述語による文章数等を同様に調べ、最終的に第
5図に147・ −・ 示すような体系で優先順位が決定され、以下語句検査手
段3に送出され処理される。
Next, when the character code string is sent to the storage means 20, the CPU 21 compares it with the contents of the character string storage means 1o, sets the corresponding content part to 1 as shown in FIG. The contents are updated and the code string having the contents shown in FIG. 3 is stored again. Then, the items with the next highest priority and the number of sentences with predicates are checked in the same way, and the priority is finally determined using the system shown in Figure 5. It is processed.

以上のように本実施例によれば、第6図に示すような優
先順位決定手段を設けることにより、日本語プログラム
における処理の順序を決定づけることができるので日本
語プログラムの処理を迅速に行なうことができる。
As described above, according to this embodiment, by providing a priority determining means as shown in FIG. 6, the order of processing in the Japanese program can be determined, so that the processing of the Japanese program can be performed quickly. I can do it.

なお第6図に示すような回路を語句検査手段5に設けて
も、一致検出回路18により述語の検査を行なっている
ために述語の入力誤りを検出することができる。
Note that even if a circuit as shown in FIG. 6 is provided in the word/phrase checking means 5, input errors in predicates can be detected because the predicates are checked by the match detection circuit 18.

発明の効果 本発明は以上のように日本語等の述語を主体に処理を行
なうことにより、日本語表記等のプログラミング言語で
も容易にそのプログラムの処理順序を決定することがで
きるため、自然言語に近い日本語表記等のプログラミン
グ言語でも情報処理をなすことができ、その価値は大き
い。
Effects of the Invention The present invention, as described above, can easily determine the processing order of a program even in a programming language such as Japanese notation by performing processing based on predicates such as Japanese. Information processing can be performed using programming languages similar to Japanese notation, which is of great value.

【図面の簡単な説明】 第1図は本発明の一実施例におけるプログラミ15、、
ジ ング言語の実行処理装置のブロック結線図、第2図、第
3図、第4図は同装置の処理により実行されるプログラ
ムの一部を示す図、第5図は同装置のプログラム処理の
体系を示す図、第6図は同装置における文章優先順位決
定手段のブロック結線図である。 1o・・・・・文字列記憶手段、12・・・・・記憶手
段、14・・・・・。検出回路、18・・・・・一致検
出回路、19・・・・・・述語テーブル、21・・・・
・・CPU。
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 shows a program 15 in an embodiment of the present invention.
2, 3, and 4 are diagrams showing part of the program executed by the processing of the programming language, and Fig. 5 is the system of program processing of the programming language. FIG. 6 is a block diagram of the text priority determining means in the same device. 1o...Character string storage means, 12...Storage means, 14... Detection circuit, 18... Match detection circuit, 19... Predicate table, 21...
...CPU.

Claims (2)

【特許請求の範囲】[Claims] (1)少なくとも述語となるべきコードを有する文章デ
ータを入力するとともに、前記述語の次に付される文章
終了記号コードのデータが入力される入力手段と、前記
入力手段から入力された入力情報から文章終了記号コー
ドを検出する文章終了記号コード検出手段と、前記文章
終了記号コード検出手段の検出結果に応じて、前記入力
情報の中から述語を特定してその述語の検査を行なう述
語検査手段とを具備するプログラミング言語の実行処理
装置。
(1) An input means into which text data having at least a code to be a predicate is inputted, and data of a sentence-terminating symbol code added next to the predicate is inputted, and input information inputted from the input means. a sentence end symbol code detection means for detecting a sentence end symbol code from the text; and a predicate inspection means for identifying a predicate from the input information and testing the predicate according to the detection result of the sentence end symbol code detecting means. A programming language execution processing device comprising:
(2)述語検査手段は、あらかじめ述語となるべきコー
ド情報を保持する述語テーブルと、前記述語テーブルと
入力情報における述語コードとを比較する一致検出回路
とを具備することを特徴とする特許請求の範囲第1項記
載のプログラミング言語の実行処理装置。 1
(2) A patent claim characterized in that the predicate checking means is equipped with a predicate table that holds code information that should become a predicate in advance, and a coincidence detection circuit that compares the predicate table and the predicate code in the input information. An execution processing device for the programming language according to item 1. 1
JP22930483A 1983-12-05 1983-12-05 Execution processing device of programming language Pending JPS60120434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22930483A JPS60120434A (en) 1983-12-05 1983-12-05 Execution processing device of programming language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22930483A JPS60120434A (en) 1983-12-05 1983-12-05 Execution processing device of programming language

Publications (1)

Publication Number Publication Date
JPS60120434A true JPS60120434A (en) 1985-06-27

Family

ID=16890036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22930483A Pending JPS60120434A (en) 1983-12-05 1983-12-05 Execution processing device of programming language

Country Status (1)

Country Link
JP (1) JPS60120434A (en)

Similar Documents

Publication Publication Date Title
Padró et al. Freeling 3.0: Towards wider multilinguality
JP4911028B2 (en) Word translation device, translation method, and translation program
EP0283685B1 (en) A spelling assistance method for compound words
US6535842B1 (en) Automatic bilingual translation memory system
JPH11110416A (en) Method and device for retrieving document from data base
Bayer et al. MITRE’s Submissions to the EU Pascal RTE Challenge
JPS60120434A (en) Execution processing device of programming language
JP3396734B2 (en) Corpus error detection / correction processing apparatus, corpus error detection / correction processing method, and program recording medium therefor
JPS60120433A (en) Execution processing device of programming language
JPS60120435A (en) Executive processor of programming language
JP2776069B2 (en) Document inspection device
JP2621999B2 (en) Document processing device
JPH0715691B2 (en) Automatic translator
JPS63163956A (en) Document preparation and correction supporting device
JPH01126767A (en) Dictionary referring device
JPS62272358A (en) Display system for interruption of translation in translating device
JPH04296970A (en) Sentence checking device
JPH05233619A (en) Method for correcting error of japanese language sentence and device therefor
JPS63136264A (en) Mechanical translating device
JPH11282837A (en) Japanese morpheme analysis device and method and recording medium
Frisch for compound
JPH0484360A (en) Sentence inspecting device
JPH0240768A (en) Test processor
JPH0727526B2 (en) Kana-Kanji converter
JPH03111965A (en) Kana/kanji converter