JPS5854450A - Multiprocessing system for text incorporation - Google Patents

Multiprocessing system for text incorporation

Info

Publication number
JPS5854450A
JPS5854450A JP15327781A JP15327781A JPS5854450A JP S5854450 A JPS5854450 A JP S5854450A JP 15327781 A JP15327781 A JP 15327781A JP 15327781 A JP15327781 A JP 15327781A JP S5854450 A JPS5854450 A JP S5854450A
Authority
JP
Japan
Prior art keywords
text
embedding
processing
external
level
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
JP15327781A
Other languages
Japanese (ja)
Inventor
Yasuo Yasui
安井 靖雄
Wahei Nakaya
中屋 和平
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP15327781A priority Critical patent/JPS5854450A/en
Publication of JPS5854450A publication Critical patent/JPS5854450A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To minimize a stack source and ease multiplexed levels by processing incorporated instructions in each incorporation level and releasing a stack means in every processing of one text incorporating information. CONSTITUTION:Incorporating instructions INC1, INC2, INC3 in an input text a01 are successively processed to prepare an intermediate text obtained by incorporating external texts a11, a12 into the input text a01. At that time, incorporating instructions INC4, INC5, INC6 having a level ''1'' are left unprocessed. In the next stage, incorporating instructions INC4, INC5, INC6 in said intermediate text are processed to prepare a new intermediate text in which texts a21, a22, a23 having a level ''2'' are incorporated. Incorporating instructions INC7-INC10 in the new intermediate text are left unprocessed. By repeating said operation also in levels ''3'' and ''4'', the whole incorporation of texts is completed.

Description

【発明の詳細な説明】 本発明は、言語処理あるいはテキスト処理において、テ
キスト中に外′部テキストを組み込む命令を含むテキス
ト組み込み構造あるいは入れ子構造について、その多重
化レベルを制限することなくテキスト組み込み処理をす
ることのできるテキスト多重組み込み処理方式に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION In language processing or text processing, the present invention provides text embedding processing for text embedding structures or nested structures that include instructions for embedding external text into text without limiting the multiplexing level. The present invention relates to a text multiple embedding processing method that can perform multiple embedding processes.

従来は、テキスト多重組み込み処理を行なう場合に、テ
キストの先頭からすべてのレベルの入れ子を解消しなが
ら逐次的に処理を進めてゆく方式をとっていたので、そ
の多重化レベルの深さだけのスタック容量が必要であり
た。また、そのためスタック容量の大きさから逆にテキ
スh多重組み込みのレベルが制約されるという問題があ
った。
Conventionally, when performing text multiplex embedding processing, a method was used in which processing was performed sequentially from the beginning of the text while eliminating nesting at all levels, so the stack was only as deep as the multiplexing level. Capacity was needed. Additionally, there is a problem in that the level of text h multiplex embedding is conversely restricted due to the size of the stack capacity.

第1図は、上記した従来方式による処理方法の1例を示
す。図において、asjはテキストを表わし、iはテキ
スト組み込みの多重化レベル数(i−1−0,1,2,
・・・)を、ハナ同一レベル内での組み込み出3iIJ
li序数(j−1,ls、・・・)を示す。
FIG. 1 shows an example of the conventional processing method described above. In the figure, asj represents text, and i is the number of multiplexing levels (i-1-0, 1, 2,
...) within the same level.3iIJ
li indicates ordinal number (j-1, ls,...).

また、INC,乃至INC,,は、テキスト組み込み命
令を示し、■乃至[相]は、組み込み命令のaSS序を
示す。
Further, INC, to INC,, indicate text embedded instructions, and ■ to [phase] indicate the aSS order of the embedded instructions.

テキストa、、は主たる入力ストリームであり、レベル
@1”の組み込み命令INC,,INC,。
The text a, , is the main input stream and is the level @1'' built-in instruction INC,,INC,.

INC,を會む0組み込み命令I NC,の処理のため
kは外部テキス) ’llが呼び込まれる必要がある。
In order to process the 0 built-in instruction INC, which meets INC, k is an external text) 'll needs to be called.

テキス) ’llは、更にレベル@2”の組み込み命令
INC,,INC,を含む、このよ5kして、組み込み
命令I NO,をJ611するために、レベル@41ま
での組み込み命令lNC4■NC8,■NC2,III
M書INC,,を処理し、外11Af’tスト’11 
 # ’ml  ’1m’MI  I ’410組み込
みを行なわなければならない。
text) 'll further includes the built-in instruction INC,, INC, of level @2'', and then the built-in instruction INC4■NC8, up to level @41 to J611 the built-in instruction I NO, ■NC2,III
Processed M book INC,, outside 11 Af't strike '11
# 'ml '1m' MI I '410 installation must be done.

命令、INC,の処理後、テキストa、の他の命令I 
NC。
After processing instruction,INC,, another instruction,I,of text,a,
N.C.

INC,が順次処理されてゆくが、このとさ、命令の処
理順序は■から00順番で行なわれる。これらレベルの
深さ方向の処理のためには一定の長さのスタックが使用
されるが、予め許容される多重化レベル数を考慮して入
力テキストの作成を行なうことは実際的ではないので、
従来、多重化レベルを制限できない場合には、複雑な処
理を行なうことKよって解決していた。
INC, is processed sequentially, but at this time, the instructions are processed in order from ■ to 00. Although a stack of a certain length is used for depthwise processing of these levels, it is impractical to create the input text by considering the number of multiplexing levels allowed in advance.
Conventionally, when the multiplexing level cannot be restricted, the problem has been solved by performing complicated processing.

本発明は、以上述べ九ような問題点を解決するために、
組み込み命令の処理を組み込みレベルごとに行ない、実
質的に許容される多重化レベル数を無制限にするもので
ある。
In order to solve the nine problems mentioned above, the present invention has the following features:
The built-in instructions are processed for each built-in level, and the number of multiplexing levels allowed is virtually unlimited.

本発明は、そのための構成として、データ処理システム
において、外部テキストの組み込み命令を多Jld造で
内部に含む入力テキストの処理のための、スタック手段
と、外部テキスト格納手段と、入力テキストを走査して
テキスト組み込み命令を次々に検出し、腋テキスト組み
込みに必要な情報をスタック手段に順次的に積み込むと
と−(、テキスト組み込み可能な中間テキストを作成す
る第1の処理手段と、上記スタック手段からテキスト組
み込み情報を取り出して、必要とする外部テキストを外
部テキスト格納手段から読み出し、腋絖み出した外部テ
キストについて上記第1処理手段が入力テキストについ
て行なった処理と同様なテキスト組み込み命令の検出、
テキスト組み込み情報のスタック積み込み、テキスト組
み込み可能な中間テキストの作成をしてのち組み込み処
理を行なう第2の処理手段とからなり、該第2の処理手
段を繰り返し作動することによってテキスト組み込みの
多重構造を順次解消してゆき、まえ、上記スタック手段
は1つのテキスト組み込み情報が処理されるととに解放
されて次の組み込みレベルの処理のために再使用を可能
にされることを特徴とする。
As a configuration for this purpose, the present invention provides a data processing system that includes a stack means, an external text storage means, and an external text storage means for processing an input text that internally includes external text embedded instructions in a multilayer structure. The first processing means for creating an intermediate text capable of text embedding, and the first processing means for creating an intermediate text capable of text embedding; extracting the text embedding information, reading the necessary external text from the external text storage means, and detecting a text embedding command similar to the processing performed on the input text by the first processing means for the external text that has appeared in the armpit;
a second processing means for loading a stack of text embedding information, creating an intermediate text into which the text can be embedded, and then performing embedding processing; and by repeatedly operating the second processing means, a multiple structure of text embedding is created. The stacking means are sequentially resolved and are characterized in that the stack means is freed as soon as one text embedding information has been processed to enable reuse for the processing of the next embedding level.

第2図は本発明の詳細な説明図であり、IIEI図に対
比させて示したものである。本発明の゛方式では、′マ
ず第1段階で、入力テキストa@1の組み込み命令lN
Cl、INC,、INC,tl[状部NIL、組み込み
レベル@1”の外部テキストa。、aoを入カテキス)
’@1に組み込んだ中間テキストを作成する。しかしこ
のときレベル11″の組み込み命令lNC4,INC,
、lNC6につぃ−CF1解ff4fることなしに未処
理のままで残す。次の段階で、先の中間テキスト中の組
み込み命令INC,,INC,。
FIG. 2 is a detailed explanatory diagram of the present invention, and is shown in comparison with FIG. In the method of the present invention, in the first step, the built-in command lN of the input text a@1 is
Cl, INC,, INC, tl [form part NIL, embedding level @1'' external text a., ao input cat text)
'Create intermediate text embedded in @1. However, at this time, the level 11'' built-in instructions lNC4, INC,
, INC6 is left unprocessed without any CF1 solution ff4f. In the next step, the embedded instructions INC,,INC, in the previous intermediate text.

INC,を処理し、ジベル12”のテキス) ’U l
a□、amを組み込んだ新らしい中間テキストをつくる
が、前と同様に、その中の組み込み命令INC。
INC, and text of 12") 'U l
Create a new intermediate text that incorporates a□ and am, but as before, insert the embedded instruction INC in it.

乃至lNC1,については、未処理のままとする。この
ような操作をレベル13”、レベル14”と繰り返すと
とKより、全部のテキスト組み込みを完了する。
1NC1 to INC1 remain unprocessed. When such operations are repeated at level 13'' and level 14'', all text incorporation is completed from K.

との七き、各段階で未処理の組み込み命令がスタックに
積み込まれるが、次の段階でそれらの未処理命令が実行
されると、そのスタックのデータは不要となるから、該
スタックは、更に次の段階の組み込み命令のなめに繰り
返し使用されることができる。したがって、多重組み込
みレベルの深さは、スタックの容量によって影響される
ことがない。
At each stage, unprocessed built-in instructions are loaded onto the stack, but when those unprocessed instructions are executed in the next stage, the data on that stack is no longer needed, so the stack is further It can be used repeatedly for the next stage of built-in instructions. Therefore, the depth of multiple embedding levels is not affected by the capacity of the stack.

第3図は、本実施例の構成図である。図において、1は
データ錫塩システムのテキスト処理部であり、フェーズ
!処理とフェーズ厘処理とを備えている。また、2はテ
午スト組み込み命令にしたがって外部テキストを読み出
し、かつテキスト中に組み込むのに必要な情報を格納す
るエンドレス構造のスタックであり、外部テキスト・フ
ァイルに対するアクセス要求の待ち行列の処理に使用さ
れる。3は、スタック2の処理完了によって解放された
直前までの待ち行列先頭エントリ位置、すなわち使用可
能空きエントリの最終位−を示す解放ポインタである。
FIG. 3 is a configuration diagram of this embodiment. In the figure, 1 is the text processing section of the data tin salt system, and phase! processing and phase processing. In addition, 2 is an endless structure stack that stores the information necessary to read external text and embed it in the text according to the text embedding instruction, and is used to process the queue of access requests to external text files. be done. Reference numeral 3 denotes a release pointer indicating the position of the previous entry at the head of the queue released upon completion of processing of the stack 2, that is, the last position of available free entries.

4は空きエントリのうちの最先位置を示すポインタでT
oblここに新らしいファイルアクセス要求情報が書き
込まれる。5は外部テキスト・ライブラリの7′−イル
である。
4 is a pointer indicating the earliest position among free entries; T
obl New file access request information is written here. 5 is the external text library 7'-ile.

6乃至8は、メモリ内で処理されているテキストを示す
1図示の例は第2図に合わせている。6は入力テキスト
’IIで、テキスト・セグメントA。
6 to 8 correspond to FIG. 2, with one illustrative example showing text being processed in memory. 6 is input text 'II, text segment A.

、B 、 C、Dそれぞれの間には、外部テキスト組み
込み命令INC,,INC,,INCJがflltがt
uている。
, B, C, and D, external text embedding commands INC, , INC, , INCJ are inserted between fllt and t.
u are there.

動作において、テキスト処理部lは、まずフェーズ!の
処理を開始する。初めにテキス) ’IIを走査し、テ
キス)’@lから組み込み命令lNC5゜INC,、I
NC,を順次取り出す。そして、各命令について、要求
している外部テキスト名’111 ’l! t’IIお
よびこれら外部テキストの組み込み位置等の組み込み情
報を、スタック2の空きエン−トリポインタ4が指示す
る工/トリ位置に次々に書き込む。ポインタ4は、1つ
の組み込み命令の情報ととに+1歩進される。また、解
放ポインタ3は先頭エフトリ位置(a、、 )O1つ前
の欧瞳を保持している。テキスト6.1゜組み込み命令
位置には、必要ならば組み込み要求済みの表示、スタッ
クのエントリ・アドレス等が記入されて、組み込み処理
が可能な中間テ中ストアが作成される。
In operation, the text processing unit l first performs phase! start processing. First text) 'II, then text)' @l to built-in instruction lNC5゜INC,,I
Take out NC, sequentially. Then, for each command, the requesting external text name '111 'l! t'II and the installation information such as the installation position of these external texts are written one after another to the work/entry position indicated by the free entry pointer 4 of the stack 2. Pointer 4 is incremented by +1 with the information of one built-in instruction. Furthermore, the release pointer 3 holds the eye of the eye one position before the start position (a, , )O. Text 6.1 In the embedding instruction location, if necessary, an indication of embedding requested, a stack entry address, etc. are entered, and an intermediate store capable of embedding processing is created.

このようにして、テキスト’@IK関するレベル@l”
の゛テキスト組み込み情報がすべてスタック2に積み込
まれると、テキスト処理部2は、フェーズ璽の処3II
IC入る。
In this way, the text '@IK related level @l'
When all of the text embedded information has been loaded onto the stack 2, the text processing unit 2 moves to the phase 3II.
Enter the IC.

フェーズ璽では、先の7エーズ■でつくられたスタック
2中の外部テキスト組&込み要求の待ち行倒の処理を、
解放ポインタ3に+Iしたエントリから開始する。まず
、最初のエン)+7の要求情報から外部テキストaml
を識別し、ファイル5から該テキスト’0を職り出す、
ここで、テキストa1.を走査し、最初に外部テキスト
組み込み命令INC。
In the phase seal, the external text embedding in stack 2 created in the previous 7A
Start from the entry whose release pointer 3 is +I. First, from the request information of the first en)+7, external text aml
and extract the text '0 from file 5.
Here, text a1. First, the external text embedding instruction INC is scanned.

を検出し、その外部テキス)’11組^込み情報を、9
%エントリ・ポインタ4が指示するスタフZの位置に書
き込む0次に検出されるINC,についても同様に処理
し、以下、テキスト’jl @ ’1mについても繰り
返し、フェーズlkおい【、入力テキスト6から中間テ
キストγを作成した過程と同じようkして第2の中間テ
キスト8を作成する。
Detects the external text) '11 set ^ included information, 9
The same process is performed for the 0th next detected INC, which is written to the staff Z position indicated by the % entry pointer 4, and is repeated for the text 'jl @ '1m. A second intermediate text 8 is created in the same manner as the intermediate text γ was created.

jI2の中間テキスト8は、レベル2の外部テキスト組
み込み位置(I−NC4)t (INC,)、 (IN
C,)を含むが、構造的にはテキスト7と同じである。
The intermediate text 8 of jI2 is the level 2 external text embedding position (I-NC4)t (INC,), (IN
C,), but is structurally the same as Text 7.

図中、’H−’N”は’11の一部のセグメント、町、
#はa、の一部のセグメントである。なおこのとき、解
放ポインタ3はエントリ(ao)を指示しており、エン
トリ(a、、)1でか解放されていることを表示する。
In the figure, 'H-'N' indicates some segments of '11, towns,
# is a part of a segment. At this time, release pointer 3 points to entry (ao), indicating that only entry (a, . . . ) 1 has been released.

レベル@21の外部テキスト組み込み処理は、再びフェ
ーズ厘処理で行々われる。レベル14”までの処理が終
ったとき、入れ子のない完全なテキスト8が得られる。
The level @21 external text embedding process is performed again in phase processing. When processing up to level 14'' is completed, a complete text 8 with no nesting is obtained.

以上説明しなように、本発明により、使用されるスタッ
ク資源の最小化とテキスト組み込み多重化レベルの緩和
とが可j+14となり、テキスト処理の効率性を高める
ことができる。
As described above, according to the present invention, it is possible to minimize the stack resources used and relax the text embedding multiplexing level by J+14, thereby increasing the efficiency of text processing.

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

第1図は従来のテキスト多重組み込み方式の説明図、第
2図は本発明のテキスト多重組み込み方式の説明図、第
3図は実施例の構成図である。 図中、lはテキスト処理部、2はスタック、3は解放エ
ントリのポインタ、4は空きエントリ・ポインタ、5は
外部テキスト・ライブラリのファイル、6は入力テキス
ト、72よび8Fi処理された中間テキストを示す。 特許出願人  富士涌、株式会社 代理人弁理士  森  1)  寛 71出 才2国
FIG. 1 is an explanatory diagram of a conventional text multiple embedding system, FIG. 2 is an explanatory diagram of the text multiple embedding system of the present invention, and FIG. 3 is a configuration diagram of an embodiment. In the figure, l is the text processing unit, 2 is the stack, 3 is the free entry pointer, 4 is the free entry pointer, 5 is the external text library file, 6 is the input text, 72 and 8Fi processed intermediate text show. Patent applicant Fujiwaku, agent patent attorney Mori Co., Ltd. 1) Kan 71, born in 2 countries

Claims (1)

【特許請求の範囲】 データ処理システムにおいて、外部テキストの組み込み
命令を多重構造で内部に含む入力テキストの処理のため
の、スタック手段と、外部テキスト格納手段と、入力テ
キストを走査してテキスト組み込み命令を次々に検出し
、皺テキスト組み込みに必要な情報をスタック手段に順
次的に積み込むとともに、テキスト組み込み可能な中間
テキストを作成する第1の処理手段と、上記スタック手
段からテキスト組み込み情報を敗り出して、必要とする
外部テキストを外部テキスト格納手段から読み出し、該
読み出した外部テキストについて上記第1処理手段が入
力テキストについて行な−)た処理と同様なテキスト組
み込み命令の検出、テキスト組み込み情報のスタック積
み込み、テキスト組み込み可能な中間テキストの作成を
してのち組み込み処理を行なう第2の処理手段とからな
り、骸第2の処理手段を繰す返し作動することkよって
テキスト組み込みの多重構造を順次解消してゆキ、マた
、上記スタック手段は1つのテキスト組み込み情報が処
理されるごとに解放されて次の組み込みレベルの処理の
ために再使用を可能にされることを特徴とす石テキスト
多重組み込み処理方 。 式。
[Scope of Claims] A data processing system comprising: a stack means, an external text storage means, and a text embedding instruction for scanning an input text for processing an input text that includes an external text embedding instruction in a multiple structure; a first processing means that sequentially detects the information necessary for embedding the wrinkled text and sequentially loads the information necessary for incorporating the wrinkled text into the stacking means, and creates an intermediate text that can be embedded into the text; and a first processing means that extracts the text embedding information from the stacking means. The necessary external text is read from the external text storage means, and the first processing means detects a text embedding instruction similar to the processing performed on the input text for the read external text, and stacks the text embedding information. a second processing means for loading and creating an intermediate text that can be incorporated into the text, and then performing the embedding process, and by repeatedly operating the second processing means, the multiple structure of text embedding is sequentially resolved. The stacking means is characterized in that each time one text embedding information is processed, it is released and made available for reuse for processing the next embedding level. Embedded processing method. formula.
JP15327781A 1981-09-28 1981-09-28 Multiprocessing system for text incorporation Pending JPS5854450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15327781A JPS5854450A (en) 1981-09-28 1981-09-28 Multiprocessing system for text incorporation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15327781A JPS5854450A (en) 1981-09-28 1981-09-28 Multiprocessing system for text incorporation

Publications (1)

Publication Number Publication Date
JPS5854450A true JPS5854450A (en) 1983-03-31

Family

ID=15558943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15327781A Pending JPS5854450A (en) 1981-09-28 1981-09-28 Multiprocessing system for text incorporation

Country Status (1)

Country Link
JP (1) JPS5854450A (en)

Similar Documents

Publication Publication Date Title
JP2003526154A (en) System and method for preloading classes in a data processing device without a virtual storage management program
JPH1185526A (en) Program loading method
JPS5854450A (en) Multiprocessing system for text incorporation
US20130031138A1 (en) Method and apparatus for improving the performance of object-oriented queues
JPH02165353A (en) Conversation type data processing system
JP3169596B2 (en) Database management device
JP3608993B2 (en) Compiler device and recording medium recording compiler program
JP3036505B2 (en) CAD data management device
JPS6325372B2 (en)
JPH11265290A (en) Program loading method
JPH0795267B2 (en) How to reuse software specifications
JP2721377B2 (en) BASIC program compression method
JPH0436831A (en) Program development back-up system
Forward A File System in Erlang
JPH0457151A (en) Insert processing method for structured document
JPH0498529A (en) Back-up system for preparation of program
JPH0432419B2 (en)
JPS63131263A (en) Document forming device
JPH05143422A (en) Updated journal managing system
JPH0973462A (en) Method and device for drawing retrieval
JPH1027153A (en) Bus transfer device
JPS6011892A (en) Document editing/processing system
JPS60142441A (en) Rewriting processing method of block
JPH0240763A (en) Document managing system
JPS61128332A (en) Job control language forming system