JPH0616269B2 - Execution processor for programming language - Google Patents
Execution processor for programming languageInfo
- Publication number
- JPH0616269B2 JPH0616269B2 JP58229306A JP22930683A JPH0616269B2 JP H0616269 B2 JPH0616269 B2 JP H0616269B2 JP 58229306 A JP58229306 A JP 58229306A JP 22930683 A JP22930683 A JP 22930683A JP H0616269 B2 JPH0616269 B2 JP H0616269B2
- Authority
- JP
- Japan
- Prior art keywords
- sentence
- data
- japanese
- priority
- language
- 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.)
- Expired - Lifetime
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Description
【発明の詳細な説明】 産業上の利用分野 本発明は、パーソナルコンピユータ等の電子計算機で各
種の情報処理を行なわせるプログラム言語の実行処理装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program language execution processing apparatus that causes an electronic computer such as a personal computer to perform various types of information processing.
従来例の構成とその問題点 近年の半導体技術の進歩に伴い、パーソナルコンピユー
タの性能は大幅に向上しており、各種データのかな,漢
字まじりの日本語による表現が可能となっている。Configuration of conventional example and its problems With the recent advances in semiconductor technology, the performance of personal computers has improved significantly, making it possible to express kana and kanji in Japanese in various data.
更に最近になって、この日本語による情報処理をプログ
ラミングの分野にまで応用しようとする動きができてい
る。More recently, there is a movement to apply this information processing in Japanese to the field of programming.
これまで開発されてきたプログラミング言語には、BA
SIC,FORTRAN,COBOL等があるが、これ
らは英語の構文が基礎となっているため、日本人にとっ
てなじみにくく、また日本語用に開発されたプログラミ
ング言語もいくつかあるが、これらの多くはCOBOL
言語を基礎としていてCOBOLの文法に縛られてお
り、日本人の誰もが家庭内で利用できるような自然言語
に近い日本語表記言語ではなかった。The programming languages that have been developed so far are BA
There are SIC, FORTRAN, COBOL, etc., but since these are based on English syntax, it is difficult for Japanese people to get used to, and there are some programming languages developed for Japanese, but most of them are COBOL.
It was language-based and bound by COBOL grammar, and it was not a Japanese language similar to natural language that any Japanese could use at home.
すなわち、従来のプログラミング言語の実行方法によれ
ば、日本人にとってはなじみにくい言語や文法に基いて
プログラムを作成しなければならず、誰もが簡便に作成
できるプログラムによる実行は困難であった。また、こ
のような事は、日本人だけでなく、中国人,ロシア人な
どについても同様の問題である。That is, according to the conventional method of executing a programming language, it is necessary to create a program based on a language or grammar that is not familiar to Japanese people, and it is difficult for anyone to easily execute a program. Moreover, this kind of problem applies not only to Japanese but also to Chinese and Russians.
発明の目的 本発明は上記の問題点に鑑みてなされたもので、自然言
語に近い日本語表記等のプログラミング言語でも情報処
理が可能な、家庭内の誰もが容易にプログラムを作成す
ることのできるプログラミング言語の実行処理装置を提
供することを目的とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and enables anyone in the home to easily create a program that can process information even in a programming language such as Japanese notation close to natural language. An object is to provide an execution processing device of a programming language that can be used.
発明の構成 本発明は日本語のソースプログラムが1対1にそのまま
インタープリタ言語に変換されて実行されるプログラミ
ング言語の実行処理装置において、 単位データと述語データと修飾語データの少なくとも1
つを有する日本語文章データと文章データの区切りやか
たまりを示す記号データとが混在する形態で入力するた
めの入力手段と、記号データを検出することにより文章
データに文章変換優先順位を与える文章優先順位決定手
段と、前記文章優先順位決定手段の決定順位に応じて一
かたまりの文章データから日本語の語句を検索する語句
検索手段と、辞書を参照しながら語句を解読しその解読
結果に応じて実行可能なインタープリタ言語に変換する
解読手段と、前記インタープリタ言語を逐次計算実行し
ていく計算実行手段とを設けることより、上記目的を達
するものである。According to the present invention, in a programming language execution processing device in which a Japanese source program is directly converted into an interpreter language on a one-to-one basis and executed, at least one of unit data, predicate data and modifier data is provided.
Input means for inputting in a form in which Japanese sentence data having a certain number and symbol data indicating delimiters or chunks of the sentence data are mixed, and sentence priority is given to the sentence data by detecting the symbol data. A rank determining means, a phrase searching means for searching a Japanese phrase from a set of sentence data according to the determination priority of the sentence priority determining means, and a phrase being decoded by referring to a dictionary and depending on the decoding result. The above object is achieved by providing a decoding means for converting into an executable interpreter language and a calculation executing means for sequentially executing the interpreter language.
実施例の説明 以下、図面を参照しながら本発明の一実施例について説
明する。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 according to an embodiment of the present invention.
第1図において、1はタイプライタ等の入力手段で、順
次日本語の文字が入力される。2は入力手段1から入力
された日本語文字列から“〔,〕”により一つの単位と
なる文章の優先順位を後述するような順序で決定する文
章優先順位決定手段、3は一文章を述語や修飾語等に区
切る語句検索手段である。5は辞書4を用いて語句検索
手段3が検索した語句の述語や修飾語が後述するような
あらかじめ定められた基礎言語体系となっているか否か
を検査する語句検査手段で、誤りが発見された場合は誤
り表示手段6によりその旨を表示し、正しい場合は解読
手段7にその旨を通知して解読を開始させる。そして解
読手段7は語句検査手段5から解読開始の指示がなされ
ると、語句検索手段3から文字情報を読み取り、実行可
能なインタープリタ言語に変換した後、計算・実行手段
8に送出して実行処理を行なわせる。In FIG. 1, reference numeral 1 denotes an input means such as a typewriter, which sequentially inputs Japanese characters. Reference numeral 2 is a sentence priority order determining means for determining the priority order of a sentence which is one unit from the Japanese character string input from the input means 1 by "[,]", and 3 is a predicate for one sentence It is a means for searching words and phrases that are divided into words and modifiers. Reference numeral 5 is a word / phrase checking means for checking whether or not the predicates and modifiers of the words / phrases searched by the word / phrase searching means 3 using the dictionary 4 have a predetermined basic language system as will be described later. If so, the error display means 6 displays that fact, and if correct, the decoding means 7 is notified and the decoding is started. When the deciphering means 7 is instructed to start deciphering by the word / phrase checking means 5, the character information is read from the word / phrase searching means 3, converted into an executable interpretable language, and then sent to the calculation / execution means 8 for execution processing. To perform.
上記構成において、まず入力手段1より第2図に示すよ
うなステップ順序で日本語プログラムが入力されたとす
る。In the above configuration, it is assumed that the Japanese program is first input from the input means 1 in the order of steps shown in FIG.
その際第2図に示した日本語プログラムの最優先順位
は、第2図のステップ4〜9である。そこでステップ4
〜9をIとすれば、第3図に示すような日本語プログラ
ムとなる。At this time, the highest priority of the Japanese program shown in FIG. 2 is steps 4 to 9 in FIG. Then step 4
If ~ 9 is I, the Japanese program as shown in FIG. 3 is obtained.
そして次に優先順位の高いものはステップ1の後半,お
よびステップ2,3,10である。そこでそれらのステ
ップをIIとすれば、第4図に示すような日本語プログラ
ムとなる。The second highest priority is the latter half of step 1 and steps 2, 3 and 10. Then, if those steps are designated as II, the Japanese program as shown in FIG. 4 is obtained.
そこで文章優先順位決定手段2は“〔,〕”に基づいて
第5図に示すような体系プログラムで語句検索手段3に
情報を送出する。Then, the sentence priority order determining means 2 sends information to the word / phrase searching means 3 based on "[,]" by a system program as shown in FIG.
次に語句検索手段3では、入力されてくる文章をそれぞ
れ主語,述語,修飾語等に区切るとともに、入力された
文章を一時記憶している。そして語句検査手段5では辞
書4により、それぞれの文章があらかじめ定められた下
表に示すような基礎言語体系となっているか否かを検査
する。そして検査の結果,第5図に示す日本語プログラ
ムは、下表の基礎言語体系に沿っているため、誤り表示
手段6に誤りメッセージがなされることなく、解読手段
7にその旨を通知して解読を開始させる。そして解読手
段7は語句検査手段5から解読開始指示がなされると、
語句検索手段3が一時記憶している第5図に示すような
日本語プログラムを次々と入力し、実行可能なインタプ
リタ言語に変換した後、計算・実行手段8に送出して実
行処理を行なわせる。なお、この際の実行可能なインタ
プリタ言語に変換するとは、表からも明らかなように、
日本語のソースプログラムが1対1にそのままインター
プリタ言語に変換されて実行されるものである。Next, in the word / phrase searching means 3, the inputted sentence is divided into a subject, a predicate, a modifier, etc., and the inputted sentence is temporarily stored. Then, the word / phrase checking means 5 checks with the dictionary 4 whether or not each sentence has a predetermined basic language system as shown in the table below. As a result of the inspection, the Japanese program shown in FIG. 5 conforms to the basic language system shown in the table below. Therefore, the error display means 6 does not give an error message, and the decoding means 7 is notified of that fact. Start decoding. When the decryption means 7 receives an instruction to start decryption from the phrase inspection means 5,
The Japanese program as shown in FIG. 5 temporarily stored in the phrase searching means 3 is input one after another, converted into an executable interpreter language, and then sent to the calculation / execution means 8 for execution processing. . In addition, as is clear from the table, the conversion into an executable interpreter language at this time is as follows:
A Japanese source program is directly converted into an interpreted language one-to-one and executed.
次に第6図を参照しながら、文章優先順位決定手段2の
要部構成をさらに詳細に説明する。 Next, with reference to FIG. 6, the main structure of the sentence priority order determining means 2 will be described in more detail.
第6図は文章優先順位決定手段2の要部ブロック構成を
示すものである。FIG. 6 shows a block configuration of essential parts of the sentence priority order determining means 2.
第6図において、10は入力手段1からJISコードあ
るいはASCIIコードの形で入力されてくる文字列を
順次記憶する文字列記憶手段で、クロック信号発生器1
1のクロック信号により左にシフトがなされる。12は
文字列記憶手段10からシフトされてきた一文字分のコ
ードを記憶する記憶手段、13は記憶手段12が記憶し
ているコードが“〕”のコードであるか否かを検出す
る〕検出回路、14は記憶手段12が記憶しているコー
ドが“〕”のコードであるか否かを検出する〔検出回路
で、各検出回路13,14はクロック信号発生器11が
発生するクロック信号により同時に検出を開始する。1
5はその検出が終了した記憶手段12の内容を順次記憶
していく文章コード記憶手段で、〔検出回路14
が“〔”を検出すると、内容のリセットを行ない次に送
出されてくるコードから新たに記憶を開始する。16
は〕検出回路13により“〕”記号の検出があった際に
文章コード記憶手段15から記憶手段17に内容の転送
許可を行なうゲート、18は最優先順位の決定後に次の
優先順位を決定できるよう文字列記憶手段10を制御す
るCPUである。In FIG. 6, reference numeral 10 is 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 is a clock signal generator 1.
A clock signal of 1 shifts to the left. Reference numeral 12 is a storage means for storing a code for one character shifted from the character string storage means 10, and 13 is a detection circuit for detecting whether or not the code stored in the storage means 12 is a "]" code. , 14 detect whether or not the code stored in the storage means 12 is a code "]" [detection circuit, each of the detection circuits 13 and 14 is simultaneously detected by the clock signal generated by the clock signal generator 11]. Start detection. 1
Reference numeral 5 is a text code storage means for sequentially storing the contents of the storage means 12 whose detection has been completed.
When "" is detected, the contents are reset and the memory is newly started from the code sent next. 16
Is a gate for permitting the transfer of contents from the text code storage means 15 to the storage means 17 when the "]" symbol is detected by the detection circuit 13, and 18 can determine the next priority after determining the highest priority. CPU for controlling the character string storage means 10.
上記構成において、以下その動作を説明する。The operation of the above configuration will be described below.
まず入力手段1より第2図に示すような日本語プログラ
ムがJISコード、あるいはASCIIコードで送出さ
れてくると、文字列記憶手段10は順次その文字コード
を記憶する。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 10 sequentially stores the character codes.
次に文字列記憶手段10は記憶手段12に一文字分の文
字コードを送出する。そして各検出回路13,14は記
憶手段12に送出されている文字コードが“〔,〕”の
記号コードであるか否かを検出する。たとえば第2図に
示したステップ1の「売上計算は」までの文字コードは
“〔,〕”記号コードを含まないため、文章コード記憶
手段15に順次記憶されていく。しかし次に“〔”の記
号コードが〔検出回路14により検出される。そのた
め、文章コード記憶手段16に記憶された「売上計算
は」の文字コードは「検出回路14のリセット信号によ
りリセットされる。Next, the character string storage means 10 sends the character code for one character to the storage means 12. Then, the detection circuits 13 and 14 detect whether or not the character code sent to the storage means 12 is a symbol code of "[,]". For example, since the character codes up to "Sales calculation" in step 1 shown in FIG. 2 do not include the "[,]" symbol code, they are sequentially stored in the text code storage means 15. However, next, the symbol code of "[" is detected by [detection circuit 14. Therefore, the character code of “sales calculation is” stored in the text code storage means 16 is reset by the reset signal of the detection circuit 14.
以下同様にして、ステップ1からステップ3までの文章
コードはステップ4の先頭に“〔”が存在するため、
〔検出回路14により内容がリセットされる。次にステ
ップ4からステップ9までのコードが文章コード記憶手
段15に記憶される。そしてステップ9の最後で、〕検
出回路13により“〕”の記号コードが検出されるた
め、ステップ4からステップ13までの内容はゲート1
6を介して記憶手段17に送出され、記憶される。Similarly, since the sentence code from step 1 to step 3 has "[" at the beginning of step 4,
[The content is reset by the detection circuit 14. Next, the codes from step 4 to step 9 are stored in the sentence code storage means 15. At the end of step 9, since the symbol code "]" is detected by the detection circuit 13, the contents from step 4 to step 13 are gate 1
It is sent to the storage means 17 via 6 and stored.
CPU18は記憶手段17に文字コード列が送出されて
くると、文字列記憶手段10の内容と比較し、対応する
内容の部分を第3図に示すように1として、文字列記憶
手段10の内容改新を行ない第3図に示す内容のコード
列を再び記憶させる。そして次に優先順位の高いものを
同様に調べ、最終的に第5図に示すような体系で優先順
位が決定され、以下語句検索手段3に送出され処理され
る。When the character code string is sent to the memory means 17, the CPU 18 compares the content of the character string memory means 10 with the content of the character string memory means 10 and sets the corresponding content portion to 1 as shown in FIG. The code string having the contents shown in FIG. 3 is stored again by renewing. Then, the next highest priority is similarly checked, and finally the priority is determined by the system as shown in FIG. 5, and the result is sent to the word / phrase searching means 3 for processing.
以上のように本実施例によれば、第6図に示すような優
先順位決定手段を設けることにより、日本語プログラム
における処理の順序を決定づけることができるので日本
語プログラムの処理を迅速に行なうことができる。As described above, according to the present embodiment, by providing the priority order 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. You can
発明の効果 本発明は以上のように優先順位決定手段により、日本語
表記等のプログラミング言語でも容易にそのプログラム
の処理順序を決定することができるため、自然言語に近
い日本語表記等のプログラミング言語でも情報処理をな
すことができ、その価値は大きい。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 by the priority determining means. However, it can process information and its value is great.
第1図は本発明の一実施例におけるプログラミング言語
の実行処理装置のブロック結線図、第2図,第3図,第
4図は同装置の処理により実行されるプログラムの一部
を示す図,第5図は同装置のプログラム処理の体系を示
す図、第6図は文章優先順位決定手段のブロック結線図
である。 1……入力手段、2……文章優先順位決定手段、8……
計算・実行手段、10……文字列記憶手段、12……記
憶手段、13……〕検出回路、14……〔検出回路、1
5……文章コード記憶手段。FIG. 1 is a block connection diagram of a programming language execution processing device in one embodiment of the present invention, and FIGS. 2, 3, and 4 are diagrams showing a part of a program executed by the processing of the device, FIG. 5 is a diagram showing a program processing system of the apparatus, and FIG. 6 is a block connection diagram of the sentence priority order determining means. 1 ... input means, 2 ... sentence priority determining means, 8 ...
Calculation / execution means, 10 ... Character string storage means, 12 ... Storage means, 13 ...] Detection circuit, 14 ... [Detection circuit, 1
5: Text code storage means.
フロントページの続き (72)発明者 本田 邦夫 神奈川県川崎市多摩区東三田3丁目10番1 号 松下技研株式会社内 (72)発明者 岡村 嘉己 神奈川県川崎市多摩区東三田3丁目10番1 号 松下技研株式会社内 (56)参考文献 A、インタフェース、Vol.8、N o.7、1982、CQ出版株式会社、P154 〜158 B、「第27回(昭和58年後期)全国大会 講演論文集(I)]昭和58年10月18日〜 20日、社団法人情報処理学会、P497〜498Front page continuation (72) Inventor Kunio Honda, 3-10-1, Higashisanda, Tama-ku, Kawasaki-shi, Kanagawa Matsushita Giken Co., Ltd. Issue Matsushita Giken Co., Ltd. (56) References A, Interface, Vol. 8, No. 7, 1982, CQ Publishing Co., Ltd., P154-158B, "Proceedings of the 27th National Convention (late 1983) National Conference (I)" October 18-20, 1983, Information Processing Society of Japan, P497 ~ 498
Claims (1)
ままインタープリタ言語に変換されて実行されるプログ
ラミング言語の実行処理装置において、 単位データと述語データと修飾語データの少なくとも1
つを有する日本語文章データと文章データの区切りやか
たまりを示す記号データとが混在する形態で入力するた
めの入力手段と、 記号データを検出することにより文章データに文章変換
優先順位を与える文章優先順位決定手段と、 前記文章優先順位決定手段の決定順位に応じて一かたま
りの文章データから日本語の語句を検索する語句検索手
段と、 辞書を参照しながら語句を解読しその解読結果に応じて
実行可能なインタープリタ言語に変換する解読手段と、 前記インタープリタ言語を逐次計算実行していく計算実
行手段と を具備するプログラミング言語の実行処理装置。1. An execution processor of a programming language in which a Japanese source program is directly converted into an interpreter language on a one-to-one basis and executed, and at least one of unit data, predicate data and modifier data is provided.
Input method for inputting in the form of mixture of Japanese sentence data that has two characters and symbol data that indicates the breaks and chunks of sentence data, and sentence priority that gives sentence conversion priority to sentence data by detecting symbol data. A rank determining means, a phrase searching means for searching a Japanese phrase from a block of sentence data according to the determination priority of the sentence priority determining means, and a phrase being decoded by referring to a dictionary and depending on the decoding result. An execution processing device for a programming language, comprising: a decoding means for converting into an executable interpreter language; and a calculation executing means for sequentially calculating and executing the interpreter language.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58229306A JPH0616269B2 (en) | 1983-12-05 | 1983-12-05 | Execution processor for programming language |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58229306A JPH0616269B2 (en) | 1983-12-05 | 1983-12-05 | Execution processor for programming language |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60120435A JPS60120435A (en) | 1985-06-27 |
| JPH0616269B2 true JPH0616269B2 (en) | 1994-03-02 |
Family
ID=16890070
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58229306A Expired - Lifetime JPH0616269B2 (en) | 1983-12-05 | 1983-12-05 | Execution processor for programming language |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0616269B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07311677A (en) * | 1994-05-18 | 1995-11-28 | Nec Corp | Operation processor |
-
1983
- 1983-12-05 JP JP58229306A patent/JPH0616269B2/en not_active Expired - Lifetime
Non-Patent Citations (2)
| Title |
|---|
| A、インタフェース、Vol.8、No.7、1982、CQ出版株式会社、P154〜158 |
| B、「第27回(昭和58年後期)全国大会講演論文集(I)昭和58年10月18日〜20日、社団法人情報処理学会、P497〜498 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60120435A (en) | 1985-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6535842B1 (en) | Automatic bilingual translation memory system | |
| US4833611A (en) | Machine translation system | |
| JPH0616269B2 (en) | Execution processor for programming language | |
| JP2000148754A (en) | Multilingual system, multilingual processing method, and medium storing multilingual processing program | |
| JP2621999B2 (en) | Document processing device | |
| JP7739706B2 (en) | Input support device, input support system and program | |
| JPH0130173B2 (en) | ||
| JPH0715691B2 (en) | Automatic translator | |
| JPS60120433A (en) | Execution processing device of programming language | |
| JPS6172361A (en) | Kana-Kanji conversion device | |
| JP2715419B2 (en) | Translation equipment | |
| JPS60120434A (en) | Execution processing device of programming language | |
| JP3197110B2 (en) | Natural language analyzer and machine translator | |
| JP3176588B2 (en) | Handwritten character input conversion device, document creation device, and computer-readable recording medium | |
| JP3316884B2 (en) | Language translator | |
| JP2833650B2 (en) | Document processing device | |
| JP2668205B2 (en) | Text search device | |
| JPS6257055A (en) | Japanese word processor | |
| JP3273778B2 (en) | Kana-kanji conversion device and kana-kanji conversion method | |
| JP3267168B2 (en) | Natural language conversion system | |
| JPH0785057A (en) | Method and apparatus for parsing | |
| JPH1020989A (en) | Character input device | |
| JPH04296970A (en) | Sentence checking device | |
| JPH0612449A (en) | Machine translation device and method thereof | |
| JPH06290219A (en) | Document processor with character retrieving function |