JPH0368028A - Picture phrase analyzing system - Google Patents
Picture phrase analyzing systemInfo
- Publication number
- JPH0368028A JPH0368028A JP1204494A JP20449489A JPH0368028A JP H0368028 A JPH0368028 A JP H0368028A JP 1204494 A JP1204494 A JP 1204494A JP 20449489 A JP20449489 A JP 20449489A JP H0368028 A JPH0368028 A JP H0368028A
- Authority
- JP
- Japan
- Prior art keywords
- picture
- character
- syntax
- string
- 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.)
- Pending
Links
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
[概要]
コンパイラのピクチャー(P I CTURE)句解析
方式に関し、
ピクチャー句解析を簡単にしかも速やかに行うことを目
的とし、
ピクチャー句解析部内に、入力したピクチャー文字列に
対し、連続する同じピクチャー文字を1つにまとめて格
納するテーブルと、通常動作時に、前記テーブルから読
出したピクチャー文字を解析する第1の構文解析部とを
具備し、後から追加されたピクチャー文字列が同じ文字
の組み合わせであった時に、前記第1の構文解析部とは
別個に設けた第2の構文解析部で構文解析を行うように
構成する。[Detailed Description of the Invention] [Summary] Regarding the picture (PICTURE) phrase analysis method of the compiler, the purpose is to easily and quickly perform picture phrase analysis. On the other hand, the present invention is equipped with a table that stores consecutive same picture characters as one, and a first parsing unit that analyzes picture characters read from the table during normal operation. The structure is such that when the strings have the same combination of characters, a second syntax analysis section provided separately from the first syntax analysis section performs syntax analysis.
[産業上の利用分野]
本発明はコンパイラのピクチャー(P I CTURE
)句解析方式に関する。[Industrial Field of Application] The present invention is a compiler picture (PI CTURE).
) Concerning phrase analysis methods.
ここで、ピクチャー句とはrcOBOLのデータ定義で
データの領域長及び属性(例えば英字とか数字とかの区
別をいう)を定義する句」のことをいう。Here, the picture phrase refers to a phrase that defines the area length and attributes of data (for example, the distinction between alphabetic characters and numbers) in the data definition of rcOBOL.
近年のコンピュータシステムの多様化に伴い、ソフトウ
ェア開発には膨大な時間がかかるようになっできている
。しかしながら、ソフトウェアの機能追加又は変更の度
に新たにソフトウェアを作り直すのは時間の無駄である
。このため、可能な限り、少量の修正による機能追加又
は変更ができるソフトウェアを作成する必要がある。With the diversification of computer systems in recent years, software development has come to take an enormous amount of time. However, it is a waste of time to create new software every time a software function is added or changed. Therefore, it is necessary to create software that allows functions to be added or changed by small modifications as much as possible.
[従来の技術]
第4図は従来方式の説明図である。ピクチャー文字列は
ピクチャー句解析部1に入る。該ピクチャー句解析部]
内には構文解析部1aが内蔵されている。ピクチャー句
解析部1に入ったピクチャー文字列は構文解析部1aで
構文解析され、出力される。ここで、コンパイラの機能
追加又は変更の中で、特にピクチャー解析部1において
は、ピクチャー文字を追加する場合、ピクチャー文字列
中の既に存在するピクチャー文字と追加されるピクチャ
ー文字との組み合わせの数だけ構文解析部1aで構文解
析を行っていた。[Prior Art] FIG. 4 is an explanatory diagram of a conventional method. The picture character string enters the picture phrase analyzer 1. Picture phrase analysis unit]
A syntactic analysis unit 1a is built inside. The picture character string input to the picture phrase analysis unit 1 is parsed by the syntactic analysis unit 1a and output. Here, when adding or modifying functions of the compiler, especially in the picture analysis section 1, when adding picture characters, the number of combinations of picture characters that already exist in the picture string and the picture characters to be added is Syntax analysis was performed by the syntax analysis unit 1a.
[発明が解決しようとする課題]
例えば、入力されたピクチャー文字列“1(3)1“が
入力されているものとする。ここで、ピクチャー文字列
“1(3)1.”の意味は、「1が3回続いた後に1を
続ける。つまり、1を4回続ける」という意味である。[Problems to be Solved by the Invention] For example, assume that the input picture character string "1(3)1" is input. Here, the meaning of the picture character string "1 (3) 1." is "1 continues three times, then 1 continues. In other words, 1 continues four times."
この文字列の後に、例えばXB“という文字列を続けた
い場合、その組み合わせは膨大なものとなる。今、既に
入力されているピクチャー文字列の文字数をnとすると
、その組み合わせの修正箇所はn!となり、構文解析の
修正量とそれにかかる時間は膨大なものとなってしまう
という不具合があった。For example, if you want to continue a character string such as " !, and the amount of correction and time required for parsing was enormous.
本発明はこのような課題に鑑みてなされたものであって
、ピクチャー句解析を簡単にしかも速やかに行うことが
できるピクチャー句解析方式を提供することを目的とし
ている。The present invention has been made in view of these problems, and an object of the present invention is to provide a picture phrase analysis method that allows picture phrase analysis to be performed simply and quickly.
[課題を解決するための手段]
第1図は本発明の原理ブロック図である。図において、
10は入力されたピクチャー文字列を解析するピクチャ
ー句解析部、2はピクチャー句解析部10内に、入力し
たピクチャー文字列に対し、連続する同じピクチャー文
字を1つにまとめて格納するテーブルである。該テーブ
ル2は、文字と当該文字の長さを格納している。3は通
常動作(既に構文解析されている文字列が入力された場
合)時に、前記テーブル2から読出したピクチャー文字
を解析する第1の構文解析部、4は新規追加又は変更の
ピクチャー文字列が入力された場合に、後から追加又は
変更されたピクチャー文字列が同じ文字の組み合わせで
あった時に、前記第1の構文解析部3とは別個に構文解
析を行う第2の構文解析部である。[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. In the figure,
10 is a picture phrase analysis unit that analyzes the input picture character string; 2 is a table in the picture phrase analysis unit 10 that stores consecutive same picture characters together as one for the input picture character string. . The table 2 stores characters and the lengths of the characters. 3 is a first parsing unit that analyzes picture characters read from Table 2 during normal operation (when a character string that has already been parsed is input); 4 is a part that analyzes picture characters that have been newly added or changed; A second syntax analysis unit that performs syntax analysis separately from the first syntax analysis unit 3 when a picture character string that is input or later added or changed has the same combination of characters. .
[作用コ
テーブル2にピクチャー文字列を連続する同じピクチャ
ー文字を1つにまとめるように整理する。[Organize the picture character strings in action table 2 so that consecutive same picture characters are grouped together.
これにより、ある1つのピクチャー文字のみからなるピ
クチャー文字列の構文解析処理を既にある構文解析処理
部3とは別の独立した第2の構文解析処理部4で行う。As a result, the syntactic analysis process of a picture character string consisting of only one picture character is performed by the second syntactic analysis processing unit 4 which is separate and independent from the existing syntactic analysis processing unit 3.
従って、ある1つのピクチャー文字のみからなるピクチ
ャー文字列の構文解析処理の追加を行う場合に、1箇所
の構文解析処理を追加するだけですみ、膨大な修正量と
それにかかる時間は全く不要になる。Therefore, when adding parsing processing to a picture string consisting of only one picture character, it is only necessary to add parsing processing in one place, and the huge amount of corrections and time required are completely unnecessary. .
[実施例]
以下、図面を参照して本発明の実施例を詳細に説明する
。[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第2図、第3図は本発明の一実施例を示すブロック図で
ある。第2図は既にあるピクチャー文字列の構文解析処
理の流れを、第3図は新規追加のピクチャー文字列の構
文解析処理の流れを示している。FIGS. 2 and 3 are block diagrams showing one embodiment of the present invention. FIG. 2 shows the flow of parsing processing for an existing picture string, and FIG. 3 shows the flow of parsing processing for a newly added picture string.
先ず、第2図の実施例について説明する。ここでは、ピ
クチャー文字列として“X(10)”というピクチャー
文字列が入っている。この文字列の意味は、「Xという
字を10回繰返せ」という意味である。従って、文字X
の長さは10となる(テーブル2参照)この文字列は既
にあるので、第1の構文解析部3に入って、構文解析さ
れる。First, the embodiment shown in FIG. 2 will be described. Here, a picture character string "X(10)" is included as a picture character string. The meaning of this character string is "Repeat the letter X 10 times." Therefore, the letter X
The length of is 10 (see Table 2). Since this character string already exists, it enters the first parsing unit 3 and is parsed.
これに対して、第3図の実施例では、ピクチャー文字列
として1 (1)1という文字列が入っている。この文
字列の意味は、「1という数字を1回繰返した後に1を
加える」という意味である。On the other hand, in the embodiment shown in FIG. 3, the character string 1 (1) 1 is included as the picture character string. The meaning of this character string is "add 1 after repeating the number 1 once."
従って、文字1の長さは2となる。この文字列は新規に
追加された文字列であるので、第1の構文解析部3は通
らず、第2の構文解析部4に入って構文解析される。こ
の場合の構文解析は、第1の構文解析部3に影響を及ぼ
さない。従って、構文解析処理に要する時間は1個の処
理で終了するので、処理時間の大幅な短縮が可能となる
。Therefore, the length of character 1 is 2. Since this character string is a newly added character string, it does not pass through the first syntax analysis unit 3, but enters the second syntax analysis unit 4 and is parsed. The syntax analysis in this case does not affect the first syntax analysis unit 3. Therefore, the time required for the parsing process is completed in one process, so that the processing time can be significantly shortened.
上述の説明では、第2の構文解析を行うピクチャー文字
列として新規に追加されたものについて説明したが、ピ
クチャー文字列を変更する場合についても全く同様に適
用することができる。In the above description, a newly added picture character string to be subjected to the second syntactic analysis has been described, but the same can be applied to the case where the picture character string is changed.
[発明の効果]
以上、詳細に説明したように、本発明によれば追加又は
変更するピクチャー文字のみなからなるピクチャー句の
構文解析処理の追加が第2の構文解析部を用いて1箇所
で対応できるため、ピクチャー句解析を簡単にしかも速
やかに行うことができる。[Effects of the Invention] As described above in detail, according to the present invention, the addition of syntactic analysis processing for a picture phrase consisting only of picture characters to be added or changed can be performed in one place using the second syntactic analysis unit. Therefore, picture phrase analysis can be performed easily and quickly.
第1図は本発明の原理ブロック図、 第2図、第3図は本発明の一実施例を示すブロック図、 第4図は従来方式の説明図である。 第1図において、 2はテーブル、 3.4は構文解析部、 10はピクチャー句解析部である。 Figure 1 is a block diagram of the principle of the present invention. 2 and 3 are block diagrams showing an embodiment of the present invention, FIG. 4 is an explanatory diagram of the conventional method. In Figure 1, 2 is a table, 3.4 is the syntax analysis section, 10 is a picture phrase analysis section.
Claims (1)
文字列に対し、連続する同じピクチャー文字を1つにま
とめて格納するテーブル(2)と、通常動作時に、前記
テーブル(2)から読出したピクチャー文字を解析する
第1の構文解析部(3)とを具備し、 後から追加されたピクチャー文字列が同じ文字の組み合
わせであった時に、前記第1の構文解析部(3)とは別
個に設けた第2の構文解析部(4)で構文解析を行うよ
うに構成したことを特徴とするピクチャー句解析方式。[Claims] The picture phrase analysis unit (10) includes a table (2) for storing consecutive same picture characters together as one for an input picture character string; a first syntactic analysis unit (3) that analyzes picture characters read from the first syntax analysis unit (2); A picture phrase analysis method characterized in that a second syntactic analysis unit (4) provided separately from the above (3) performs syntactic analysis.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1204494A JPH0368028A (en) | 1989-08-07 | 1989-08-07 | Picture phrase analyzing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1204494A JPH0368028A (en) | 1989-08-07 | 1989-08-07 | Picture phrase analyzing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0368028A true JPH0368028A (en) | 1991-03-25 |
Family
ID=16491459
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1204494A Pending JPH0368028A (en) | 1989-08-07 | 1989-08-07 | Picture phrase analyzing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0368028A (en) |
-
1989
- 1989-08-07 JP JP1204494A patent/JPH0368028A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9710243B2 (en) | Parser that uses a reflection technique to build a program semantic tree | |
| Ladd et al. | A*: A language for implementing language processors | |
| JPS61282935A (en) | Method and apparatus for alloting and inspecting attribute in program | |
| JPH0368028A (en) | Picture phrase analyzing system | |
| CN111158691B (en) | Method for realizing rule engine dynamic | |
| JP2861630B2 (en) | Connection structure analyzer | |
| JP3419483B2 (en) | Natural language processing apparatus and method | |
| JPH01270133A (en) | Format specification processing system by character | |
| JPS62297973A (en) | Software specification editing device that utilizes the meaning of input data | |
| JP2580336B2 (en) | Attribute check processing method of name in language processing system | |
| JPH021027A (en) | Compiling system for compressed source program | |
| JP2727987B2 (en) | Data type inspection device | |
| JP3370243B2 (en) | Compilation method and apparatus | |
| JP2807854B2 (en) | Data structure expansion method for COBOL programs | |
| Sestoft | From Concrete Syntax to Abstract Syntax | |
| JPS63138465A (en) | parser | |
| JPH0359724A (en) | Error information compression system for translation system | |
| JPS6266371A (en) | Text separation type learning system | |
| JPH05334062A (en) | Logic description difference extracting system | |
| JP2000112769A (en) | Multi-stage translator | |
| All et al. | Text Executive Programming Language | |
| Vander Mey et al. | SYMPLE: a general syntax directed macro preprocessor | |
| JPH0231235A (en) | Syntax analyzing system for plural languages | |
| JPH01304539A (en) | Production system for function level simulator | |
| JPH0455944A (en) | Production of syntactic analysis part of compiler |