JPS6220030A - High-speed program shaping output device - Google Patents

High-speed program shaping output device

Info

Publication number
JPS6220030A
JPS6220030A JP60159881A JP15988185A JPS6220030A JP S6220030 A JPS6220030 A JP S6220030A JP 60159881 A JP60159881 A JP 60159881A JP 15988185 A JP15988185 A JP 15988185A JP S6220030 A JPS6220030 A JP S6220030A
Authority
JP
Japan
Prior art keywords
symbol string
data
control code
length
processor
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
JP60159881A
Other languages
Japanese (ja)
Inventor
Sanpachi Uehara
上原 三八
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 JP60159881A priority Critical patent/JPS6220030A/en
Publication of JPS6220030A publication Critical patent/JPS6220030A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To gerate a program and to output a list at a high speed by processing counting of the length of a character symbol string encircled with symbol string start and end control one information and shaping and arrangement for list output simultaneously in parallel. CONSTITUTION:When data consisting of the length of the symbol string interposed between symbol string start control code information and symbol string end control code information is inputted, a symbol string length calculating processor 2 counts the length of the symbol string and adds the symbol string start control code of the start of the symbol string to the result, and a series of data are transferred to a processor 3 for shaping and arrangement. If the data length exceeds a preliminarily determined value, data is delimited temporarily there though following data exists, and the symbol string start control code like X infinity is added to the end of the calculated value, and a series of data till then are transferred to the processor for shaping and arrangement, and remainder data is counted.

Description

【発明の詳細な説明】 [概 要] プログラムを構成する文字記号と整形出力用に定められ
た記号列開始制御コード情報および記号列終了制御コー
ド情報とが混在するデータ列を入力して、これらを、別
個に設けた制御コードによって挟まれた記号列の記号を
計数するプロセッサと、制御コードと記号列長に基づい
て整形配置を行なうプロセッサとにより並行的に処理す
ることにより、プログラミング言語に依存せずに整形さ
れたプログラムリストを迅速に出力する高速プロ゛グラ
ム整形出力装置を開示している。
[Detailed Description of the Invention] [Summary] A data string containing a mixture of character symbols constituting a program, symbol string start control code information and symbol string end control code information determined for formatted output is input, and these data strings are input. is processed in parallel by a processor that counts symbols in a symbol string sandwiched by separately provided control codes, and a processor that performs formatting and arrangement based on the control code and the length of the symbol string. The present invention discloses a high-speed program formatting output device that quickly outputs a formatted program list without having to read or write a formatted program list.

[産業上の利用分野] 未発日日L±プログラムリストを キのfdlal旙皓
に相関する配列で出力する装置に係り、特にプログラミ
ング言語に依存することなく、プログラム生成またはプ
ログラムリストを出力するためのシステムに組込むこと
の可能な高速プログラム整形出力装置に関する。
[Industrial field of use] Relating to a device that outputs an unreleased date L± program list in an array that correlates to the fdlal 旙灓 of Ki, especially for generating programs or outputting a program list without depending on a programming language. The present invention relates to a high-speed program formatting output device that can be incorporated into a system.

[従来の技術] プログラムは、電子計算機を動作させる命令等のステー
トメントからなる。特に、コンパイラにより、機械語に
展開されるような高級プログラム言語では、自由な形式
でプログラムを記述できるようなものが多い。
[Prior Art] A program consists of statements such as instructions for operating an electronic computer. In particular, many high-level programming languages that are expanded into machine language by a compiler allow programs to be written in a free format.

しかし、プログラムを解読する場合、ステートメントが
制御構造に無関係に羅列されていると、きわめて解読が
困難となる。そのため、従来から、プログラム生成・表
示を行うシステム等では、あるまとまった処理単位で、
改行や行下げにより、プログラムを整形して出力するこ
とが行われている。
However, when decoding a program, it becomes extremely difficult to decode a program if the statements are listed without regard to the control structure. Therefore, conventionally, in systems that generate and display programs, in a certain processing unit,
Programs are formatted and output using line breaks and line breaks.

しかしながら、このような方式では、プロ7ラム整形出
力機能が、構文解析等の他の部分と明確に分けられてい
ないため、整形出力を行う部分がプログラミング言語に
依存し、対象とするプログラミング言語毎に作り直さな
ければならなかった。
However, in such a method, the formatted output function of the program is not clearly separated from other parts such as syntax analysis, so the part that performs formatted output depends on the programming language, and is different for each target programming language. had to be rebuilt.

そのため、出力の配列に係る整形に関する情報を持つ制
御記号を設定し、プログラムを構成する記号中に、この
整形用の制御記号を挿入することにより、プログラミン
グ言語に依存する処理と、プログラミング言語とは独立
したプログラムを整形出力する処理とを区分して、プロ
グラムリストの整形出力に関して、汎用性のある処理を
行うことの可能な装置が考えられている。
Therefore, by setting a control symbol that has information regarding formatting related to the output array and inserting this formatting control symbol into the symbols that make up the program, processing that depends on the programming language and programming language A device is being considered that is capable of performing versatile processing for formatting and outputting a program list by separating the processing from formatting and outputting an independent program.

[発明が解決しようとする開運点] 上述したプログラム言語に依存することなく独立した処
理によってプログラムリストの整形出力を得る装置は、
プログラムを構成する文字記号と、整形出力用に定めら
れた記号列開始−制御コード情報および記号列終了制御
コード情報とが混在するデータ列を入力して、これらの
制御コードによって挟まれた記号列の長さを計数し、そ
の値に基づいて整形出力を行うごとく制御するものであ
るが、一連のデータの計数が終了するまでの間は整形出
力に係る処理が実行できないため、処理速度が遅いとい
う問題点があった。
[Problems to be Solved by the Invention] The device for obtaining a formatted output of a program list through independent processing without depending on the programming language described above is
Input a data string containing a mixture of character symbols that make up the program, symbol string start-control code information, and symbol string end control code information determined for formatted output, and generate a symbol string sandwiched by these control codes. The length of the data is counted and the formatted output is controlled based on that value, but the processing speed is slow because processing related to the formatted output cannot be performed until the counting of the series of data is finished. There was a problem.

本発明は上記従来の問題点に鑑み、整形されたプログラ
ムリストを高速で出力することのできる処理装置を提供
することを目的としている。
SUMMARY OF THE INVENTION In view of the above conventional problems, an object of the present invention is to provide a processing device that can output a formatted program list at high speed.

[問題点を解決するための手段] そして、この目的は本発明によれば、特許請求の範囲に
記載のとおり、プログラムを構成する文字記号と、整形
出力用に定められた記号列開始制御コード情報および記
号列終了制御コード情報とが混在するデータ列を入力し
てプログラムのソース・リストを出力するデータ処理装
置であって 卯号列開始制御コード情報と卯号列終了制
御コード情報とによって挟まれた記号列長を計数する記
号列長計算用プロセッサと、一連の記号列を指定された
配列の形に従って出力する整形配置用プロセッサとを備
え、記号列長計算用プロセッサが、記号列長の計数を終
了したときにはその計数値を、また、記号列長が予め定
められた値を越えたときにはその旨を表示する情報を該
当する記号列の記号列開始制御コードに付して、その都
度整形配置用プロセッサが該当するデータを処理するこ
とにより、記号列長計算用プロセッサと整形配置用プロ
セッサとが並行処理を行なうことを特徴とする高速プロ
グラム整形出力装置により達成される。
[Means for Solving the Problems] According to the present invention, this object is achieved by using character symbols constituting a program and a symbol string start control code defined for formatted output. A data processing device that inputs a data string in which information and symbol string end control code information are mixed and outputs a program source list, the data string being sandwiched between the number string start control code information and the symbol string end control code information. A symbol string length calculation processor that counts the length of a symbol string, and a formatting processor that outputs a series of symbol strings according to a specified array format. When counting is completed, the counted value is added, and when the symbol string length exceeds a predetermined value, information indicating that fact is attached to the symbol string start control code of the corresponding symbol string, and formatted each time. This is achieved by a high-speed program formatting output device characterized in that the processor for symbol string length calculation and the processor for formatting and arranging perform parallel processing when the processor for locating processes the corresponding data.

[作 用コ 本発明の装置において、記号列開始制御コード情報と記
号列終了制御コード情報とによって挟まれた記号列長か
らなるデータを入力したとき、記号列長計算用プロセッ
サは記号列の長さを計数してその結果を該記号列の先頭
の記号列開始制御コードに付して、一連のデータを整形
配置用プロセッサに受は渡すが、このとき、データ長が
予め定めた値(例えば整形出力幅の値)を越えたときは
、まだデータの続きがあっても、その位置でデータを一
応区切って、計数値の代わりに例えば+ω等の符号を記
号列開始制御コードに付して、整形配置用プロセッサに
それまでの一連のデータを受は渡す。そして、引き続き
残りのデータの計数を行う、これにより記号列実計算用
プロセッサと整形配置用プロセッサとが並行的動作を行
うこととなり、特に長いデータを処理する場合の処理時
間が短縮される。
[Operation] In the apparatus of the present invention, when data consisting of a symbol string length sandwiched between symbol string start control code information and symbol string end control code information is input, the symbol string length calculation processor calculates the symbol string length. The receiver counts the length and attaches the result to the symbol string start control code at the beginning of the symbol string, and passes the series of data to the formatting processor. At this time, the data length is set to a predetermined value (for example When the value of the formatted output width is exceeded, even if there is a continuation of the data, separate the data at that position and add a sign, such as +ω, to the symbol string start control code instead of the count value. , the series of data up to that point is passed to the processor for formatting and placement. Subsequently, the remaining data is counted. As a result, the symbol string actual calculation processor and the formatting/arranging processor operate in parallel, and the processing time is shortened, especially when processing long data.

[実 施 例] 第1図は本発明の1実施例のブロック図であって、1は
入力コントローラ、2は文字列計算プロセッサ、3は整
形配置プロセッサ、4は出力コントローラ、5は出力バ
ッファ、6は入力バッファを表している。
[Embodiment] FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is an input controller, 2 is a string calculation processor, 3 is a formatting and arranging processor, 4 is an output controller, 5 is an output buffer, 6 represents an input buffer.

第2図は整形出力について説明する図であって、(a)
は整形された出力リストの例を示しており、(b)は(
a)に示した出力に整形用制御記号を対応せしめた図で
ある。
FIG. 2 is a diagram illustrating formatted output, and (a)
shows an example of a formatted output list, and (b) shows (
FIG. 3 is a diagram showing the correspondence of formatting control symbols to the output shown in FIG.

第2図において、7〜18は整形用制御記号を表してい
る。
In FIG. 2, 7 to 18 represent shaping control symbols.

以下、第1図のブロック図で示した系の動作について説
明する。
The operation of the system shown in the block diagram of FIG. 1 will be explained below.

第1図において、文字列長計算プロセッサ2は、入力コ
ントローラ1から送られてくる例えば第2図(b)に示
すようなデータ(整形用制御記号の付された文字記号列
)について、各大括弧(整形制御記号)内の文字記号列
共の和を求めて、これを付加情報として、友人括弧に付
属せしめる。このとき文字記号列共の和が整形出力幅を
越えたときは「÷■」を前記付加情報として友人括弧に
与えて、文字記号列共が求まったものとして処理する0
文字列長計算プロセッサ2は入力された友人括弧に対す
る付加情報(文字記号列共あるいは+■)が求まり次第
入力された文字記号の順に出力バッファ5に出力する。
In FIG. 1, a character string length calculation processor 2 calculates each size of data (a character symbol string with formatting control symbols) as shown in FIG. 2(b) sent from an input controller 1. The sum of the character and symbol strings inside the parentheses (formatting control symbols) is calculated and added to the friend parentheses as additional information. At this time, if the sum of the character and symbol strings exceeds the formatted output width, "÷■" is given to the friend brackets as the additional information, and the character and symbol strings are processed as having been found.
The character string length calculation processor 2 outputs the additional information (both character and symbol strings or +■) for the input friend brackets to the output buffer 5 in the order of the input characters and symbols as soon as it is determined.

整形配置プロセッサ3は該バッファ5のデータを入力バ
ッファ6を経由して受は取り整形用制御記号と付加情報
に基づいて整形配置処理を行い、その結果を出力コント
ローラ4へ受は渡し、該出力コントローラ4がこれを出
力する。
The formatting and arranging processor 3 receives the data in the buffer 5 via the input buffer 6, performs formatting and arranging processing based on the formatting control symbol and additional information, and passes the result to the output controller 4 to output the data. Controller 4 outputs this.

このように、従来文字列長計算後なければ実行できなか
った整形配置処理について、本発明においては、整形出
力を行う対象(カードパンチャー、ラインプリンタ等)
によって、その出力幅が定まっていることにことに着目
して、文字列長計算プロセッサが該当する出力幅より大
である文字記号列共については、その出力幅まで計数し
た時点で一応区切って、「+■」なる付加情報を与える
ことにより後続のデータと切り離して出力し、整形配置
プロセッサがこれを先頭から順次整形配置して出力して
いる。
In this way, regarding the formatting and arrangement processing that conventionally could only be executed after calculating the character string length, the present invention allows the formatting and layout processing to be performed on the target (card puncher, line printer, etc.) that performs formatted output.
By focusing on the fact that the output width is fixed, the character string length calculation processor separates character strings that are larger than the corresponding output width once the output width has been counted. By giving the additional information "+■", the data is separated from the following data and output, and the formatting and arranging processor formats and arranges the data sequentially from the beginning and outputs it.

整形配置について更に説明すると、前述した第2図(b
)において、整形用制御記号9と10あるいは11と1
2などの左右の大括弧に囲よ+1 ス 伽にFml++
中曇ス1日、 PI trs  出 IM ル 病;→
ト1.  M 71   )の単位を1行の幅に収まる
ように処理を行うものである。
To further explain the shaping arrangement, the above-mentioned figure 2 (b
), the formatting control symbols 9 and 10 or 11 and 1
Enclose it in left and right brackets such as 2+1 s 伽にFml++
PI trs out IM le disease; →
G1. Processing is performed so that the unit of M 71 ) fits within the width of one line.

また、前述の付加情報について説明すると、第2図(b
)において、整形用制御記号7〜18間の文字記号列共
は本来総ての文字記号列の総和の値が入るべきであるが
、本発明においては、先頭から順に文字記号列共の和を
求めていく途中で、その値が出力幅(予め定めた値)を
越えるときその値として「+■」を使ってデータを区切
っている。(「+(1)」の表示は出力幅に収めること
が不可能であるとの意味を持たせている。)第2図(b
)において、整形用制御記号8〜15により囲まれる範
囲(単位)も同様に「+ω」として扱われる。その他の
整形用制御記号9と10.11と12.13と14.1
6と17による単位については、実際の文字記号の計数
値が付加情報として付加される。
In addition, to explain the above-mentioned additional information, Fig. 2 (b
), the character and symbol strings between formatting control symbols 7 to 18 should originally contain the sum of all character and symbol strings, but in this invention, the sum of the character and symbol strings is calculated in order from the beginning. During the calculation, when the value exceeds the output width (predetermined value), "+■" is used as the value to delimit the data. (The display of "+(1)" has the meaning that it is impossible to fit within the output width.) Figure 2 (b
), the range (unit) surrounded by the shaping control symbols 8 to 15 is also treated as "+ω". Other shaping control symbols 9, 10.11, 12.13 and 14.1
For units of 6 and 17, the actual count value of character symbols is added as additional information.

本実施例におけるこのような文字列長計算プロセッサに
おける処理の手順の例を第3図に流れ図として示す。
An example of the processing procedure in such a character string length calculation processor in this embodiment is shown as a flowchart in FIG.

[発明の効果] 以上説明したように本発明によれば、プログラムを構成
する文字記号と整形出力用に定められた記号列開始およ
び終了制御コード情報が混在するデータ列を入力して、
該プログラムのソース・リストを出力するデータ処理を
行うとき、文字記号列長の計算とリスト出力のための整
形配置を並行して同時に処理することがで入るので、処
理速度の速い、プログラム生成やリスト出力を行う装置
を実現することが可能であるから効果は大である。
[Effects of the Invention] As explained above, according to the present invention, by inputting a data string in which character symbols constituting a program and symbol string start and end control code information determined for formatted output are mixed,
When performing data processing to output the source list of the program, calculation of character symbol string length and formatting for list output are processed simultaneously in parallel, resulting in faster program generation and processing. The effect is great because it is possible to realize a device that outputs a list.

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

第1図は本発明の1実施例のブロック図、第2図は整形
出力について説明する図、第3図は文字列計算プロセッ
サにおける処理の手順の例を示す流れ図である。 1・・−人力コントローラ、2・・・文字列長計算プロ
セッサ、3・・・整形配置プロセッサ、4・・・出力F
ントローラ、5・・・出力バッファ、6・・・入力バッ
ファ、7〜18・・・整形用制御記号・三−〜、 代理人 弁理士 井 桁 *  −5,”  ’・(F
(:、:。 入力 水舟列の〕爽施枦jのブロック図 第 / 図 (b) 整形出力につし・で説明する画 第2図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram explaining formatted output, and FIG. 3 is a flowchart showing an example of a processing procedure in a character string calculation processor. 1... - human controller, 2... character string length calculation processor, 3... formatting arrangement processor, 4... output F
controller, 5...output buffer, 6...input buffer, 7-18...control symbol for formatting, 3-~, agent, patent attorney, *-5,"', (F
(:,:. Block diagram of the input water boat sequence) Souse j / Figure (b) Figure 2 to explain the formatted output

Claims (1)

【特許請求の範囲】[Claims] プログラムを構成する文字記号と、整形出力用に定めら
れた記号列開始制御コード情報および記号列終了制御コ
ード情報とが混在するデータ列を入力してプログラムの
ソース・リストを出力するデータ処理装置であつて、記
号列開始制御コード情報と記号列終了制御コード情報と
によって挟まれた記号列長を計数する記号列長計算用プ
ロセッサと、一連の記号列を指定された配列の形に従っ
て出力する整形配置用プロセッサとを備え、記号列長計
算用プロセッサが、記号列長の計数を終了したときには
その計数値を、また、記号列長が予め定められた値を越
えたときにはその旨を表示する情報を該当する記号列の
記号列開始制御コードに付して、その都度整形配置用プ
ロセッサが該当するデータを処理することにより、記号
列長計算用プロセッサと整形配置用プロセッサとが並行
処理を行なうことを特徴とする高速プログラム整形出力
装置。
A data processing device that outputs a program source list by inputting a data string containing a mixture of character symbols constituting a program and symbol string start control code information and symbol string end control code information determined for formatted output. A symbol string length calculation processor that counts the length of a symbol string sandwiched between symbol string start control code information and symbol string end control code information, and a formatter that outputs a series of symbol strings according to a specified array format. information for displaying the counted value when the symbol string length calculation processor has finished counting the symbol string length and to that effect when the symbol string length exceeds a predetermined value; is attached to the symbol string start control code of the applicable symbol string, and the formatting and placement processor processes the corresponding data each time, so that the symbol string length calculation processor and the formatting and placement processor perform parallel processing. A high-speed program formatting output device featuring:
JP60159881A 1985-07-19 1985-07-19 High-speed program shaping output device Pending JPS6220030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60159881A JPS6220030A (en) 1985-07-19 1985-07-19 High-speed program shaping output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60159881A JPS6220030A (en) 1985-07-19 1985-07-19 High-speed program shaping output device

Publications (1)

Publication Number Publication Date
JPS6220030A true JPS6220030A (en) 1987-01-28

Family

ID=15703232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60159881A Pending JPS6220030A (en) 1985-07-19 1985-07-19 High-speed program shaping output device

Country Status (1)

Country Link
JP (1) JPS6220030A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58181661A (en) * 1982-04-19 1983-10-24 Sharp Corp Printing control system
JPS5990181A (en) * 1982-11-15 1984-05-24 Hitachi Ltd Printer controller
JPS59180738A (en) * 1983-03-31 1984-10-13 Fuji Electric Co Ltd Character display device
JPS59180678A (en) * 1983-03-31 1984-10-13 Toshiba Corp Method for controlling page printer
JPS60107977A (en) * 1983-11-16 1985-06-13 Hitachi Ltd Printer controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58181661A (en) * 1982-04-19 1983-10-24 Sharp Corp Printing control system
JPS5990181A (en) * 1982-11-15 1984-05-24 Hitachi Ltd Printer controller
JPS59180738A (en) * 1983-03-31 1984-10-13 Fuji Electric Co Ltd Character display device
JPS59180678A (en) * 1983-03-31 1984-10-13 Toshiba Corp Method for controlling page printer
JPS60107977A (en) * 1983-11-16 1985-06-13 Hitachi Ltd Printer controller

Similar Documents

Publication Publication Date Title
JPS631615B2 (en)
JPS6357810B2 (en)
JPH0756892A (en) Computer having vector arithmetic unit with mask
JPS6047606B2 (en) program input device
JPS6220030A (en) High-speed program shaping output device
JPS5856024A (en) Column segment centering system
EP0052711B1 (en) Method of processing text by insertion of a block of text in a text processing system
US4402058A (en) Keyboard mismatch correction
JPS58189777A (en) Character input system
JP2908184B2 (en) Text file editing method and apparatus
JP2808105B2 (en) Font drawing device
JPH042961B2 (en)
JPS59123043A (en) Clean copy processor
JPS61262846A (en) Program shaping and outputting device
JPS6136651B2 (en)
JPS60114909A (en) Logical operating device
JP2758778B2 (en) Print data output method
JPH0683916A (en) Method for displaying processing state in image processor
JPS61131160A (en) Documentation device
JPH06236246A (en) Source data editing device for designing slip
JPS59225449A (en) Sentence number converting system
JPH0685169B2 (en) Document processing method
JPH0251769A (en) Character processor
JPH02282790A (en) Graphic character processor
JPH07234783A (en) Document information extraction system in automatic document generation system