JPH02264332A - Retrieving and registering system for alphabetic name - Google Patents
Retrieving and registering system for alphabetic nameInfo
- Publication number
- JPH02264332A JPH02264332A JP8645689A JP8645689A JPH02264332A JP H02264332 A JPH02264332 A JP H02264332A JP 8645689 A JP8645689 A JP 8645689A JP 8645689 A JP8645689 A JP 8645689A JP H02264332 A JPH02264332 A JP H02264332A
- Authority
- JP
- Japan
- Prior art keywords
- name
- alphabetic
- alphabetic name
- common
- tasks
- 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
- 238000000034 method Methods 0.000 claims description 11
- 150000003839 salts Chemical class 0.000 description 14
- 230000000694 effects Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は電子計算機システムのコンパイラにおける英字
名の検索・登録方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for searching and registering alphabetic names in a compiler of an electronic computer system.
ソースプログラム中に出現する英字名は英字名テーブル
により管理され、コンパイラはその英字名テーブルを参
照して必要な情報を得ると共に、必要に応じて英字名テ
ーブルの更新を行うようにしている。また、複数のタス
ク間で共通して使用可能なタスク間共通英字名を採用し
た電子計算機システムも提供されており、タスク間共通
英字名が示すタスク間で共通して参照できるデータ領域
がタスク間共通英字名テーブルにより管理されるように
なっている。Alphabetic names appearing in a source program are managed by an alphabetic name table, and the compiler refers to the alphabetic name table to obtain necessary information and updates the alphabetic name table as necessary. In addition, computer systems are also provided that employ common alphabetic character names between tasks that can be used in common among multiple tasks. It is managed by a common alphabetic name table.
従来、上述したタスク間共通英字名テーブルにより管理
されるタスク間共通のデータ領域を有する電子計算機シ
ステムにおけるコンパイラにあっては、ソースプログラ
ムを読み込んで英字名を検出した場合、存在するタスク
間共通英字名テーブルおよびコンパイラが生成した英字
名テーブルを全て検索し、見つからなかった場合にはコ
ンパイラが生成する英字名テーブルにその英字名を新た
に登録し、以後の参照に供するようにしていた。Conventionally, in a computer system that has a data area common between tasks that is managed by the above-mentioned table of common alphabetic characters between tasks, when a compiler reads a source program and detects an alphabetic name, it detects the existing alphabetic characters common between tasks. All name tables and alphabet name tables generated by the compiler are searched, and if the name is not found, the alphabet name is newly registered in the alphabet name table generated by the compiler for future reference.
上述した従来の英字名の検索・登録方式にあっては、ソ
ースプログラム中に出現する英字名につき、存在する全
てのタスク間共通英字名テーブルおよびコンパイラが生
成した英字名テーブルを検索するようにしていたため、
これらのテーブルが複数存在し、検索対象が多数ある場
合には検索時間が膨大となり、コンパイルに要する時間
が増大するという欠点があった。In the conventional alphabet name search and registration method described above, all existing inter-task alphabet name tables and the alphabet name table generated by the compiler are searched for the alphabet name that appears in the source program. Save,
If a plurality of these tables exist and there are a large number of search targets, the search time becomes enormous and the time required for compilation increases.
本発明は上記の点に鑑み提案されたものであり、その目
的とするところは、テーブルの検索時間を短縮化するこ
とのできる英字名の検索・登録方式を提供することにあ
る。The present invention has been proposed in view of the above points, and its purpose is to provide a method for searching and registering alphabetic names that can shorten table search time.
本発明は上記の目的を達成するため、タスク間共通英字
名テーブルにより管理されるタスク間共通のデータ領域
を有する電子計算機システムにおけるコンパイラにおい
て、
ソースプログラムを入力して当該ソースプログラム中に
含まれる英字名がタスク間共通英字名であるか否かを識
別する英字上識別手段と、前記英字上識別手段の識別の
結果その英字名がタスク間共通英字名である場合に前記
タスク間共通英字名テーブルにその英字名が存在するか
否かを検索する英字上検索手段と、
前記英字上識別手段の識別の結果その英字名がタスク間
共通英字名でない場合もしくは前記英字上検索手段の検
索の結果その英字名が存在しない場合に前記コンパイラ
が生成する英字名テーブルを検索し、その英字名が存在
しない場合にその英字名テーブルに当該英字名を登録す
る英字名登録手段とを備えるようにしている。In order to achieve the above object, the present invention has a compiler in a computer system having a common data area between tasks managed by a common alphabetic character name table between tasks. an alphabetical identification means for identifying whether or not a name is a common alphabetical name among tasks, and a table of alphabetic character names common among tasks when the alphabetical name is a common alphabetic name among tasks as a result of identification by the alphabetic identification means; an alphabetical search means for searching whether or not the alphabetic name exists in the alphabetical character; The apparatus is provided with an alphabet name registration means for searching an alphabet name table generated by the compiler when the alphabet name does not exist, and registering the alphabet name in the alphabet name table when the alphabet name does not exist.
本発明の英字名の検索・登録方式にあっては、英字上識
別手段がソースプログラムを入力して当該ソースプログ
ラム中に含まれる英字名がタスク間共通英字名であるか
否かを識別し、この英字上識別手段の識別の結果その英
字名がタスク間共通英字名である場合に英字上検索手段
がタスク間共通英字名テーブルにその英字名が存在する
か否かを検索し、一方、前記英字上識別手段の識別の結
果その英字名がタスク間共通英字名でない場合もしくは
前記英字上検索手段の検索の結果その英字名が存在しな
い場合にコンパイラが生成する英字名テーブルを英字名
登録手段が検索すると共に、検索の結果その英字名が存
在しない場合にその英字名テーブルに当該英字名を登録
する。In the alphabetic name search/registration method of the present invention, the alphabetic identification means inputs a source program and identifies whether or not the alphabetic name included in the source program is an alphabetic name common among tasks; As a result of the identification by the alphabetical identification means, if the alphabetical name is a common alphabetical name among tasks, the alphabetical search means searches whether or not the alphabetical name exists in the alphabetical name common among tasks; The alphabetic name registration means generates an alphabetic name table generated by the compiler when the alphabetical name is not a common alphabetic name among tasks as a result of the identification by the alphabetic identification means or when the alphabetic name does not exist as a result of the search by the alphabetical search means. At the same time as searching, if the alphabetical name does not exist as a result of the search, the alphabetical name is registered in the alphabetic name table.
以下、本発明の実施例につき図面を参照して説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図は本発明の英字名の検索・登録方式を適用したコ
ンパイラの一実施例を示す構成図であり、本発明に関係
する部分のみを示しである。なお、図において矢印を付
した実線は処理の流れを示し、破線はデータの流れを表
している。FIG. 1 is a block diagram showing an embodiment of a compiler to which the alphabet name search/registration method of the present invention is applied, and only portions related to the present invention are shown. Note that in the figure, solid lines with arrows indicate the flow of processing, and broken lines indicate the flow of data.
第1図において、コンパイラ1はコンパイルを実行する
周知の構成の他に英字上識別手段2と英字上検索手段3
と英字名登録手段4とを含んでいる。また、5はコンパ
イルの対象となるソースプログラム、6はタスク間共通
のデータ領域を管理するタスク間共通英字名テーブル、
7はコンパイラlにより生成される英字名テーブルであ
る。なお、コンパイラ1の各手段の機能は次の通りであ
る。In FIG. 1, a compiler 1 includes an alphabetic identification means 2 and an alphabetic search means 3 in addition to the well-known configuration for performing compilation.
and alphabet name registration means 4. In addition, 5 is a source program to be compiled, 6 is a common alphabet name table between tasks that manages a data area common between tasks,
7 is an alphabet name table generated by compiler l. Note that the functions of each means of the compiler 1 are as follows.
英字名登録手段2;ソースプログラム5を入力し、ソー
スプログラム5中に含まれる英字名がタスク間共通英字
名であるか否かを識別する機能。Alphabetic name registration means 2: Function for inputting the source program 5 and identifying whether or not the alphanumeric name included in the source program 5 is a common alphanumeric name among tasks.
処理の詳細は第2図に示す。Details of the process are shown in FIG.
英字名登録手段3;英字名識別手段2の識別の結果、そ
の英字名がタスク間共通英字名である場合にタスク間共
通英字名テーブル6中にその英字名が存在するか否かを
検索する機能。処理の詳細は第3図に示す。Alphabetic name registration means 3: If the result of the identification by the alphabetic name identification means 2 is that the alphabetic name is a common alphabetical name among tasks, search whether or not the alphabetical name exists in the common alphabetical name among tasks table 6. function. Details of the process are shown in FIG.
英字名登録手段4;英字上識別手段2の識別の結果、そ
の英字塩がタスク間共通英字名でない場合もしくは英字
塩検索手段3の検索の結果その突字名がタスク間共通英
字名テーブル6に存在しない場合に英字名テーブル7を
検索し、存在しない場合に英字名テーブル7に当該英字
名を登録する機能。処理の詳細は第4図に示す。Alphabetical name registration means 4; As a result of the identification by the alphabetical identification means 2, if the alphabetic character name is not a common alphabetical name among tasks, or as a result of the search by the alphabetic character search means 3, the protruding character name is added to the common alphabetic character name table 6 among tasks. A function that searches the alphabetic name table 7 if the name does not exist, and registers the alphabetic name in the alphabetic name table 7 if it does not exist. Details of the process are shown in FIG.
以下、上記の実施例の動作を説明する。The operation of the above embodiment will be explained below.
先ず、所定のツールによりタスク間共通英字名テーブル
6が作成されているものとする。また、ソースプログラ
ム5にはタスク間共通英字名を容易に識別できるように
、タスク間共通英字名の先頭に特殊文字を付加しておく
ものとする。First, it is assumed that the inter-task common alphabet name table 6 has been created using a predetermined tool. Further, in the source program 5, special characters are added to the beginning of the alphabetic character names common among tasks so that the alphabetic character names common among tasks can be easily identified.
しかして、ソースプログラム5が与えられてコンパイラ
1が起動されると、コンパイラ1は英字塩識別手段2を
呼び出す。Thus, when the source program 5 is given and the compiler 1 is activated, the compiler 1 calls the alphabetic character identification means 2.
呼び出された英字塩識別手段2は、第2図に示すように
、ソースプログラム5を入力して英字塩の読み込みを行
い(ステップ21)、次いで、読み込んだ英字塩がタス
ク間共通英字名であるか否かを先頭に付された特殊文字
の有無をもって判断する(ステップ22)0判断の結果
、読み込んだ英字塩がタスク間共通英字名である場合(
ステップ22のYES)には、英字塩検索手段3を起動
して制御を渡す(ステップ23)、また、判断の結果、
読み込んだ英字塩がタスク間共通英字名でない場合(ス
テップ22のNo)には、英字名登録手段4を起動して
制御を渡す(ステップ24)。As shown in FIG. 2, the called alphabetic salt identifying means 2 inputs the source program 5 and reads the alphabetical salt (step 21), and then determines that the read alphabetical salt is the common alphabetical name among tasks. (Step 22) If the result of the 0 judgment is that the read alphabetic character name is a common alphabetical name among tasks (
If YES in step 22), the alphabetical salt search means 3 is activated and control is passed (step 23), and as a result of the judgment,
If the read alphabetical name is not a common alphabetic name among tasks (No in step 22), the alphabetic name registration means 4 is activated and control is passed (step 24).
第2図のステップ23において起動された英字塩検索手
段3は、第3図に示すように、読み込んだ英字塩につき
タスク間共通英字名テーブル6を検索しくステップ31
)、その英字塩が存在するか否かを判断する(ステップ
32)。判断の結果、対応する英字塩が存在する場合(
ステップ32のYES)には、その英字塩に対する情報
を取得する(ステップ33)、なお、取得した情報はコ
ンパイル処理に利用される。また、判断の結果、対応す
る英字塩が存在しない場合(ステップ32のNo)には
、英字名登録手段4を起動して制御を渡す(ステップ3
4)。As shown in FIG. 3, the alphabetic character search unit 3 activated in step 23 of FIG.
), it is determined whether the alphabetic character exists (step 32). As a result of the judgment, if the corresponding alphabet salt exists (
If YES in step 32), information for the alphabetic character is acquired (step 33), and the acquired information is used for compilation processing. Further, as a result of the judgment, if the corresponding alphabet name does not exist (No in step 32), the alphabet name registration means 4 is activated and control is passed (step 3).
4).
第2図のステップ24および第3図のステップ34で起
動された英字名登録手段4は、第4図に示すように、読
み込んだ英字塩につき英字名テーブル7を検索しくステ
ップ41)、その英字塩が存在するか否かを判断する(
ステップ42)0判断の結果、対応する英字塩が存在す
る場合(ステップ42のYES)には、その英字塩に対
する情報を取得する(ステップ43)、また、判断の結
果、対応する英字塩が存在しない場合(ステップ42の
No)には、その英字塩を英字名テーブル7に登録する
。As shown in FIG. 4, the alphabet name registration means 4 activated in step 24 of FIG. 2 and step 34 of FIG. Determine whether salt is present (
Step 42) If the result of the 0 judgment is that the corresponding alphabet salt exists (YES in step 42), information for the alphabet salt is acquired (step 43), and as a result of the judgment, the corresponding alphabet salt exists. If not (No in step 42), the alphabetic character is registered in the alphabetical name table 7.
上記の処理をソースプログラム5の全てについて行うこ
とにより全処理を終了する。By performing the above processing for all of the source programs 5, all processing is completed.
以上説明したように、本発明の英字塩の検索・登録方式
にあっては、タスク間共通英字名については先ずタスク
間共通英字名テーブルを検索して存在しない場合にのみ
コンパイラの生成する英字上、テーブルの検索に移行し
、タスク間共通英字名以外の英字塩についてはコンパイ
ラの生成する英字名テーブルのみを検索するため、従来
のように存在する全てのタスク間共通英字名テーブルお
よび英字名テーブルについて検索する場合に比して大幅
に検索時間が短縮でき、ひいてはコンパイルに要する時
間が短縮できる効果がある。As explained above, in the search/registration method for alphabetic characters of the present invention, for alphabetic character names common among tasks, first search the alphabetic character name table common among tasks, and only if the alphabetical character name table that is common among tasks does not exist, use the alphabetic character generated by the compiler. , the search shifts to a table, and searches only the alphabetic name table generated by the compiler for alphabetic characters other than the common alphabetical names between tasks, so all the alphabetic name tables that exist between tasks and the alphabetical name table that exist previously are searched. This has the effect that the search time can be significantly reduced compared to when searching for , and the time required for compilation can also be reduced.
第1図は本発明の英字塩の検索・登録方式の一実施例を
示す構成図、
第2図は第1図における英字塩識別手段の処理のフロー
チャート、
第3図は第1図における英字塩検索手段の処理のフロー
チャートおよび、
第4図は第1図における英字名登録手段の処理のフロー
チャートである。
図において、
l・・・・・・コンパイラ
2・・・・・・英字塩識別手段
3・・・・・・英字塩検索手段
4・・・・・・英字名登録手段
5・・・・・・ソースプログラム
6・・・・・・タスク間共通英字名テーブル7・・・・
・・英字名テーブルFIG. 1 is a block diagram showing an embodiment of the alphabetic salt search/registration method of the present invention, FIG. 2 is a flowchart of the processing of the alphabetic salt identification means in FIG. 1, and FIG. 3 is the alphabetic salt in FIG. 1. FIG. 4 is a flowchart of the processing of the search means and FIG. 4 is a flowchart of the processing of the alphabetic name registration means in FIG. In the figure, l... Compiler 2... Alphabet salt identification means 3... Alphabet salt search means 4... Alphabet name registration means 5...・Source program 6...Task common alphabet name table 7...
・・Alphabet name table
Claims (1)
共通のデータ領域を有する電子計算機システムにおける
コンパイラにおいて、 ソースプログラムを入力して当該ソースプログラム中に
含まれる英字名がタスク間共通英字名であるか否かを識
別する英字名識別手段と、 前記英字名識別手段の識別の結果その英字名がタスク間
共通英字名である場合に前記タスク間共通英字名テーブ
ルにその英字名が存在するか否かを検索する英字名検索
手段と、 前記英字名識別手段の識別の結果その英字名がタスク間
共通英字名でない場合もしくは前記英字名検索手段の検
索の結果その英字名が存在しない場合に前記コンパイラ
が生成する英字名テーブルを検索し、その英字名が存在
しない場合にその英字名テーブルに当該英字名を登録す
る英字名登録手段とを備えたことを特徴とする英字名の
検索・登録方式。[Claims] In a compiler in a computer system that has a data area common between tasks managed by a common alphabetic name table between tasks, a source program is input and the alphabetical names included in the source program are common between tasks. an alphabetic name identification means for identifying whether or not it is an alphabetic name; and if the alphabetic name is a common alphabetic name between tasks as a result of the identification by the alphabetic name identification means, the alphabetic name is stored in the intertask common alphabetic name table; an alphabetic name search means for searching for existence or not; and a result of identification by the alphabetic name identification means, if the alphabetic name is not a common alphabetic name among tasks, or a search by the alphabetic name search means that the alphabetic name does not exist. an alphabetic name registration means for searching an alphabetic name table generated by the compiler in the case where the alphabetic character name does not exist, and registering the alphabetical name in the alphabetic name table if the alphabetical name does not exist.・Registration method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8645689A JPH02264332A (en) | 1989-04-05 | 1989-04-05 | Retrieving and registering system for alphabetic name |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8645689A JPH02264332A (en) | 1989-04-05 | 1989-04-05 | Retrieving and registering system for alphabetic name |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02264332A true JPH02264332A (en) | 1990-10-29 |
Family
ID=13887447
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8645689A Pending JPH02264332A (en) | 1989-04-05 | 1989-04-05 | Retrieving and registering system for alphabetic name |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02264332A (en) |
-
1989
- 1989-04-05 JP JP8645689A patent/JPH02264332A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108268623B (en) | Text extraction method, device, equipment and medium | |
| JPH02264332A (en) | Retrieving and registering system for alphabetic name | |
| JPH0644309A (en) | Data base managing system | |
| JP2740238B2 (en) | File exclusive control unit | |
| JPH05233705A (en) | Index preparation system for image filing system | |
| JPH06274332A (en) | Registration/retrieval method for program parts | |
| JPS6398029A (en) | Application system for automatic patch selection | |
| JPH05210562A (en) | Network file system | |
| JPH02270029A (en) | Extracting system for patch information using patch area | |
| JPH04116756A (en) | Dynamic link system for user definition command in application | |
| JPH05143422A (en) | Updated journal managing system | |
| JPS63233445A (en) | Local addition system for internal file name | |
| JPH01188938A (en) | Collective batch processing system | |
| JPH06236261A (en) | Separating system for procedure language program component | |
| JPH03191423A (en) | Program starting system | |
| JPH03257584A (en) | Item check system | |
| JPH02278340A (en) | Compiling system | |
| JPH0784842A (en) | Relative record batch read system | |
| JPS6257018A (en) | Division assisting device for data base processing | |
| JPH05151059A (en) | Exclusive control system for customer data | |
| JPS62257552A (en) | Virtual processor control system | |
| JPH05342074A (en) | Information storage device | |
| JPH03225558A (en) | Data retrieving system | |
| JPH0250731A (en) | Compiling device | |
| JPH0371341A (en) | Source program transplanting system |