JPS60120435A - Executive processor of programming language - Google Patents

Executive processor of programming language

Info

Publication number
JPS60120435A
JPS60120435A JP22930683A JP22930683A JPS60120435A JP S60120435 A JPS60120435 A JP S60120435A JP 22930683 A JP22930683 A JP 22930683A JP 22930683 A JP22930683 A JP 22930683A JP S60120435 A JPS60120435 A JP S60120435A
Authority
JP
Japan
Prior art keywords
content
code
storage means
stored
processing
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
JP22930683A
Other languages
Japanese (ja)
Other versions
JPH0616269B2 (en
Inventor
Atsushi Sugano
淳 菅野
Kenichi Ueda
謙一 上田
Kunio Honda
本田 邦夫
Yoshihisa 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 JP22930683A priority Critical patent/JPH0616269B2/en
Publication of JPS60120435A publication Critical patent/JPS60120435A/en
Publication of JPH0616269B2 publication Critical patent/JPH0616269B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To make information processing of the Japanese language, tec. possible, by implementing the program of the processing by inputting specifically arrayed two composition data and their processing priorities and converting the composition data into an interpreter language starting from one composition data after detecting their priorities. CONSTITUTION:A joined Japanese character string from an input means is temporary stored in a character string storage means 10 and then stored in a storage means 12 after shifting the string by one character space. The code of the storage means 12 is respectively detected by detecting circuits 13 and 14 and successively stored by a composition code storage means 15. Then the stored content of the means 15 is reset and the next code is stored at the time of detecting whether the code of the circuit 14 is )'' or not, and the stored content is transferred to a storage means 17 via a gate 16, and at the same time, it is informed to a CPU18 at the time of detecting whether the code of the circuit 13 is )'' or not. The CPU18 compares the content of the means 10 with the content of the means 17 and updates the content. Then the CPU18 determines the priority of the content and sends it to a words and phrase retrieving means 3 which processes the content after converting the content into an interpreter language.

Description

【発明の詳細な説明】 兼業上の利用分野 本発明は、パーソナルコンピュータ等の電子計2ベーコ
゛ 算機で各種の情報処理を行なわせるプログラム言語の実
行処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention: Field of the Invention The present invention relates to a program language execution processing device that allows an electronic two-basis calculator 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 has become possible to express various types of data in Japanese, including kana and kanji.

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

これまで開発されてきだプログラミング言語には、BA
S IC、FORTRAN、C0BOL等があ又 るが、これらは英語の構文が基礎となっているため、日
本人にとってなじみにくく、捷だ日本語用に開発された
プログラミング言語もいくつかあるが、これらはC0B
OL言語を基礎としていてC0BOLの文法に縛られて
おシ、日本人の誰もが家庭内で利用できるような自然言
語に近い日本語表記言語ではなかった。
The most important programming languages that have been developed include BA
There are many languages such as SIC, FORTRAN, and C0BOL, but these are based on English syntax and are difficult for Japanese people to understand.There are also some programming languages developed for plain Japanese, but these is C0B
It was based on an office worker language and was bound by C0BOL grammar, so it was not a Japanese written language that was close to a natural language that every Japanese person could use at home.

す寿わち、従来のプログラミング言語の実行方31・−
・ 法によれば、日本人にとってはなじみにくい言語や文法
に基いてプログラムを作成しなければならず、誰もが簡
便に作成できるプログラムによる実行は困難であった。
How to run conventional programming languages 31.-
- According to the law, programs had to be created based on language and grammar that were unfamiliar to Japanese people, making it difficult to implement programs that anyone could easily create.

捷だ、このような事は、日本人だけでなく、中国人、ロ
シア人などについても同様の問題である。
Well, this kind of thing is not only a problem for Japanese people, but also for Chinese people, Russian people, etc.

発明の目的 本発明は上記の問題点に鑑みてなされたもので、自然言
語に近い日本語表記等のプログラミング言語でも情報処
理が可能な、家庭内の誰もが容易にプログラムを作成す
ることのできるプログラミング言語の実行処理装置を提
供することを目的とする。
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. The purpose is to provide an execution processing device for programming languages that can be used.

発明の構成 本発明は単位データと述語データと修飾語データとの少
なくとも1つ以上の前記データの配列により成る第1.
第2の文章データを続けて入力するとともに、前記第1
.第2の文章データの処理優先順位を示す記号データを
入力する入力手段と、前記処理優先順位を示す記号デー
タを検出することにより前記第1.第2の文章データに
文章処理優先順位を力える文章優先順位決定手段と、前
記文章優先順位決定手段の順位決定に応じて前記第1、
第2の文章データの一方の文章データの方から実行可能
なインタープリタ言語に変換してプログラムを実行して
いく処理手段とを設けることにより、上記目的を達する
ものである。
Structure of the Invention The present invention provides a first data array comprising at least one data arrangement of unit data, predicate data, and modifier data.
While continuously inputting the second text data, the first
.. an input means for inputting symbolic data indicating the processing priority of the second text data, and detecting the symbolic data indicating the processing priority of the first text data; a text priority order determining means for assigning a text processing priority order to the second text data;
The above object is achieved by providing a processing means that converts one of the second text data into an executable interpreter language and executes a program.

実施例の説明 以下、図面を参照しながら本発明の一実施例について説
明する。
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から入力
された日本語文字列から゛〔、〕″′により一つの単位
となる文章の優先順位を後述するような順序で決定する
文章優先順位決定手段、3は一文章を述語や修飾語等に
区切る語句検索手段である。5は辞書4を用いて語句検
索手段3が5ページ 検索した語句の述語や修飾語が後述するようなあらかじ
め定められた基礎言語体系となっているか否かを検査す
る語句検査手段で、誤りが発見された場合は誤り表示手
段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 using ゛[,]''′ in the order described later; 5 is a word/phrase search means that divides into predicates, modifiers, etc. The predicates and modifiers of the words searched on page 5 by the word/phrase search means 3 using the dictionary 4 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 inputted from the zuzu input means 1 in the step order shown in FIG.

その際第2図に示した日本語プログラムの最優先順位は
、第2図のステップ4〜9である。そこでステップ4〜
9を1とすれば、第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 set to 1, 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 pages as shown in Figure 4.

そこで文章優先順位決定手段2は“〔、〕′″に基づい
て第5図に示すような体系プログラムで語句検索手段3
に情報を送出する。
Therefore, the sentence priority determining means 2 uses a systematic program as shown in FIG.
Send information to.

次に語句検索手段3では、入力されてくる文章をそれぞ
れ主語、述語、修飾語等に区切るとともに、入力された
文章を一時記憶している。そして語句検査手段6では辞
書4により、それぞれの文章があらかじめ定められた下
表に示すような基礎言語体系となっているか否かを検査
する。そして検査の結果、第5図に示す日本語プログラ
ムは、下表の基礎言語体系に沿っているため、誤シ表示
手段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 checking means 6 uses the dictionary 4 to check 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. to 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.

7 7、− 二 9べ一−ミ゛ 10・ 次に第6図を参照しながら、文章優先順位決定手段2の
要部構成をさらに詳細に説明する。
77,-29B-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コードの形で入力されてくる文字列を
順次記憶する文字列記憶手段で、クロック信号発生器1
1のクロック信号により左にシフトがなさねる。12i
l′i文字列記憶手段10からシフトされてきた一文字
分のコードを記憶する記憶手段、13は記憶手段12が
記憶しているコードが〕″のコードであるか否かを検出
する〕検出回路、14は記憶手段12が記憶しているコ
ードが“〔パのコードであるか否かを検出する〔検出回
路で、各検出回路13.14はクロック信号発生器11
が発生するクロック信号により同時に検出を開始する。
In FIG. 6, reference numeral 10 denotes a character string storage means for sequentially storing character strings inputted from the input means 1 in the form of JIS code or ASCII code;
A clock signal of 1 causes no shift to the left. 12i
l'i Storage means for storing the code for one character shifted from the character string storage means 10; 13 is a detection circuit for detecting whether or not the code stored in the storage means 12 is the code of ``''; , 14 are detection circuits for detecting whether or not the code stored in the storage means 12 is a code of "
Detection is started simultaneously by the clock signal generated by

15はその検出が終了した記憶手段12の内容を順次記
憶していく文章コード記憶手段で、〔検出回路14が1
1 C++を検出すると、内容のリセットを行ない次に
送出をねでくるコー11 ”ニ ドから新たに記憶を開始する。16は〕検出回路13に
よりfl ) ++記号の検出があった際に文章コード
記憶手段15から記憶手段17に内容の転送許可を行な
うゲート、18は最優先順位の決定後に次の優先順位を
決定できるよう文字列記憶手段1Qを制御するCPUで
ある。
Reference numeral 15 denotes a text code storage means for sequentially storing the contents of the storage means 12 whose detection has been completed;
1 When C++ is detected, the contents are reset and the next message is sent. 11 ``Starts a new memory from ``nido''. A gate 18 is a CPU that controls the character string storage means 1Q so that the next priority can be determined after the highest priority is determined.

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

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

次に文字列記憶手段10は記憶手段12に一文字分の文
字コードを送出する。そして各検出回路13.14は記
憶手段12に送出されている文字コードが“+(1)n
の記号コードであるか否かを検出する。たとえば第2図
に示したステップ1の「売上計算は」壕での文字コード
は”[’、’]”記号コードを含才ないため、文章コー
ド記憶手段15に順次記憶さねていく。しかし次にI(
C+1の記号コードが〔検出回路14により検出される
。そのため、文章コード記憶手段16に記憶された「売
上計算は」の文字コードは〔検出回路14のリセット信
号によりリセットされる。
Next, the character string storage means 10 sends the character code for one character to the storage means 12. Each of the detection circuits 13 and 14 detects that the character code sent to the storage means 12 is "+(1)n".
Detect whether it is a symbol code. For example, the character code in step 1 shown in FIG. But then I(
The symbol code of C+1 is detected by the detection circuit 14. Therefore, the character code for "Sales Calculation wa" stored in the text code storage means 16 is reset by the reset signal from the detection circuit 14.

以下同様にして、ステップ1からステップ3までの文章
コードはステップ4の先頭に′〔″が存在するため、〔
検出回路14により内容がリセットされる。次にステッ
プ4からステップ9までのコードが文章コード記憶手段
15に記憶される。
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 14. Next, the codes from step 4 to step 9 are stored in the text code storage means 15.

そしてステップ9の最後で、〕検出回路13により” 
’:l ”の記号コードが検出されるだめ、ステップ4
からステップ13までの内容はゲート16を介して記憶
手段17に送出され、記憶される。
At the end of step 9, the detection circuit 13 detects "
If the symbol code ':l'' is not detected, step 4
The contents from step 13 to step 13 are sent to the storage means 17 via the gate 16 and stored therein.

CPU1 Bは記憶手段17に文字コード列が送出され
てくると、文字列記憶手段10の内容と比較し、対応す
る内容の部分を第3図に示すように1として、文字列記
憶手段1oの内容改新を行々い第3図に示す内容のコー
ド列を再び記憶させる。
When the character code string is sent to the storage means 17, the CPU 1B compares it with the contents of the character string storage means 10, sets the corresponding content part to 1 as shown in FIG. The contents are updated and the code string of the contents shown in FIG. 3 is stored again.

そして次に優先順位の高いものを同様に調べ、最終的に
第5図に示すような体系で優先順位が決定収 さA1以下語句検索手段3に送出され処理される。
Then, the next highest priority is examined in the same way, and the priority is finally determined in the system shown in FIG. 5, and the words A1 and below are sent to the word/phrase search means 3 for processing.

13、、、・ 以上のように本実施例によれば、第6図に示すような優
先順位決定手段を設けることにより、日本語プログラム
における処理の順序を決定づけることができるので日本
語プログラムの処理を迅速に行なうことができる。
13. As described above, according to this embodiment, by providing the 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 is can be done quickly.

発明の効果 本発明は以上のように優先順位決定手段により、日本語
表記等のプログラミング言語でも容易にそのプログラム
の処理順序を決定することができるため、自然言語に近
い日本語表記等のプログラミング言語でも情報処理を在
すことができ、その価値は太きい。
Effects of the Invention As described above, the present invention can easily determine the processing order of a program even in a programming language such as Japanese notation using the priority order determining means, so that it is possible to easily determine the processing order of a program using a programming language such as Japanese notation that is close to a natural language. However, it is possible to process information, and its value is great.

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

第1図は本発明の一実施例におけるプログラミング言語
の実行処理装置のブロック結線図、第2図、第3図、第
4図は同装置の処理により実行されるプログラムの一部
を示す図、第5図は同装置のプログラム処理の体系を示
す図、第6図は文章優先順位決定手段のブロック結線図
である。 1・・・・・・入力手段、2・・・・・・文章優先順位
決定手段、14′′ − 8・・・・計算・実行手段、10・・・・文字列記憶手
段、12・・・・・・記憶手段、13・・・・・・〕検
出回路、14・・・・・・〔検出回路、15・・・・・
文章コード記憶手段。
FIG. 1 is a block diagram of a programming language execution processing device according to an embodiment of the present invention; FIGS. 2, 3, and 4 are diagrams showing part of a program executed by the processing of the device; FIG. 5 is a diagram showing the program processing system of the apparatus, and FIG. 6 is a block diagram of the text priority determining means. 1...Input means, 2...Text priority determining means, 14''-8...Calculation/execution means, 10...Character string storage means, 12... ... Storage means, 13...] Detection circuit, 14... [Detection circuit, 15...
Sentence code storage means.

Claims (1)

【特許請求の範囲】[Claims] 単位データと述語データと修飾語データとの少なくとも
1つ以上の前記データの配列により成る第1.第2の文
章データを続けて入力するとともに、前記第1.第2の
文章データの処理優先順位を示す記号データを入力する
入力手段と、前記処理優先順位を示す記号データを検出
することにより前記第1.第2の文章データに文章処理
優先順位を与える文章優先順位決定手段と、前記文章優
先順位決定手段の順位決定に応じて前記第1.第2の文
章データの一方の文章データの方から実行可能々インタ
ープリタ言語に変換してプログラムを実行していく処理
手段とを具備するプログラミング言語の実行処理装置。
The first . While continuously inputting the second text data, the first text data is inputted. an input means for inputting symbolic data indicating the processing priority of the second text data, and detecting the symbolic data indicating the processing priority of the first text data; a text priority order determining means for assigning a text processing priority order to the second text data; A programming language execution processing device comprising processing means for converting one of the second text data into an executable interpreter language and executing a program.
JP22930683A 1983-12-05 1983-12-05 Execution processor for programming language Expired - Lifetime JPH0616269B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22930683A JPH0616269B2 (en) 1983-12-05 1983-12-05 Execution processor for programming language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22930683A JPH0616269B2 (en) 1983-12-05 1983-12-05 Execution processor for programming language

Publications (2)

Publication Number Publication Date
JPS60120435A true JPS60120435A (en) 1985-06-27
JPH0616269B2 JPH0616269B2 (en) 1994-03-02

Family

ID=16890070

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22930683A Expired - Lifetime JPH0616269B2 (en) 1983-12-05 1983-12-05 Execution processor for programming language

Country Status (1)

Country Link
JP (1) JPH0616269B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07311677A (en) * 1994-05-18 1995-11-28 Nec Corp Operation processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07311677A (en) * 1994-05-18 1995-11-28 Nec Corp Operation processor

Also Published As

Publication number Publication date
JPH0616269B2 (en) 1994-03-02

Similar Documents

Publication Publication Date Title
JPS60120435A (en) Executive processor of programming language
JP2621999B2 (en) Document processing device
JPS60120433A (en) Execution processing device of programming language
JPS60120434A (en) Execution processing device of programming language
JPH01307865A (en) Character string retrieving system
JP2833650B2 (en) Document processing device
JPS6172361A (en) Kana-to-kanji converter
JP2668205B2 (en) Text search device
JP3340124B2 (en) Kana-Kanji conversion device
JPH0727526B2 (en) Kana-Kanji converter
JP3273778B2 (en) Kana-kanji conversion device and kana-kanji conversion method
Navaneethan et al. PANDITHAM: An Optimal Character Oriented Protocol for Thamizh and Multilingual Computing
JPS63136264A (en) Mechanical translating device
JPH11282837A (en) Japanese morpheme analysis device and method and recording medium
JPS63157265A (en) Document processor
JPS63316160A (en) Document preparing device
JPS59125447A (en) Executing method of programming language
JPH1020989A (en) Character input device
JPH1153354A (en) Kana/kanji converter and method therefor
JPS60243765A (en) Information input system
JPH01316865A (en) Device for attaching reading input function in kana/kanji conversion
JPH0468466A (en) Kana / kanji converting device
JPS63298476A (en) Translating system
JPH03160555A (en) Japanese word input device
JPH09153116A (en) Character string predictive method