JPS60189533A - Program document output system - Google Patents

Program document output system

Info

Publication number
JPS60189533A
JPS60189533A JP59046048A JP4604884A JPS60189533A JP S60189533 A JPS60189533 A JP S60189533A JP 59046048 A JP59046048 A JP 59046048A JP 4604884 A JP4604884 A JP 4604884A JP S60189533 A JPS60189533 A JP S60189533A
Authority
JP
Japan
Prior art keywords
instruction
program
document
sort
code
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
JP59046048A
Other languages
Japanese (ja)
Inventor
Masato Obayashi
真人 大林
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.)
Hitachi Software Engineering Co Ltd
Original Assignee
Hitachi Software Engineering Co 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 Hitachi Software Engineering Co Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP59046048A priority Critical patent/JPS60189533A/en
Publication of JPS60189533A publication Critical patent/JPS60189533A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To display a document efficiently by preparing a corresponding table between the sort of an instruction of a program and a code expressed by one character or the like corresponding to the sort of the instruction to express each instruction of the program by a code consisting of one character or the like corresponding to each instruction. CONSTITUTION:A central processor 12 reads a program of which program document is to be formed from a file 16 on the basis of operation from an input device 11, analyzes the instruction, and on the basis of the analyzed result, refers a table 14b and selects a code corresponding to its instruction sort. Said processing is repeated for a 1 instructions constituting the program to edit its program document and the edited document is outputted to a recording medium 17 by an output device 15. Namely, one instruction is read and stored in a data buffer 14a, its operation part is separated and analyzed at its instruction sort, the instruction sort is made to correspond to the code by referring the table 14b in a RAM14 on the basis of the analyzed result, and the corresponding result is stored in an output buffer 14c. In case of a jump instruction, relation with an instruction to be jumped is also displayed.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、プログラムの処理手順を示すドキュメント(
プログラム・ドキュメント)を出力する方式に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention provides a document (
Regarding the method of outputting program documents).

(発明の背景) 一般にプログラム・ドキュメントは例えば第1図に示す
ように、命令の通常の処理には方形の図形記号を、判断
処理には菱形の図形記号を用いるという具合に、各種の
図形記号を使用していわゆる処理フロー図を手書きで作
成していた。また、最近では電子計算機を用いて、プロ
グラム・ドキュメントを自動的に作図するシステムが開
発されているが、この場合でも、第1図に示すような図
形記号をそのまま使用し、プリンタ装置やCRTディス
プレイ装置等の表示装置にフローチャートとして出力し
ていた。しかし、プリンタ装置では用紙サイズの制限、
ディスプレイ装置では画面サイズの制限という物理的制
限があり、従来通りの図形記号を用いたのでは不要な余
白が生じ、その結果、ドキュメント量の増大を招き、さ
らに処理の全体の流れを適格に把握しにくい4という欠
点があった。また、図形記号を用いるため1図形記号を
作図するための特別なプログラム等を必要とするなど、
ソフトウェアの面でも困難な問題があった。
(Background of the Invention) In general, program documents contain various graphical symbols, such as a square graphical symbol for normal processing of instructions and a diamond-shaped graphical symbol for decision processing, as shown in Figure 1. The so-called process flow diagram was created by hand using . In addition, recently, systems have been developed to automatically draw program documents using electronic computers, but even in this case, graphical symbols such as those shown in Figure 1 are used as they are, and they are printed on printers or CRT displays. It was output as a flowchart on a display device such as a device. However, printers have paper size limitations,
Display devices have physical limitations such as screen size limitations, and using conventional graphic symbols creates unnecessary blank space, which increases the amount of documents and makes it difficult to properly understand the overall flow of processing. It had the disadvantage of being difficult to do. In addition, since graphic symbols are used, a special program is required to draw one graphic symbol, etc.
There were also difficult problems with the software.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、プログラム・ドキュメントを効率よく
表示し、かつ、処理の全体の流れを容易に把握できるプ
ログラム・ドキュメント出力方式を提供することにある
SUMMARY OF THE INVENTION An object of the present invention is to provide a program/document output method that allows a program/document to be displayed efficiently and the overall flow of processing to be easily grasped.

〔発明の概要〕[Summary of the invention]

本発明は、プログラムの命令種別と該命令種別に対応づ
けられた1文字程度で表現された記号との対応表を用意
し、プログラムの各命令をそれに対応する1文字程度の
記号で表現してプログラム・ドキュメントを作成し出力
することを特徴とする。
The present invention prepares a correspondence table between the instruction type of a program and the symbol expressed by about one character corresponding to the instruction type, and expresses each instruction of the program by the corresponding symbol of about one character. It is characterized by creating and outputting program documents.

〔発明の実施例〕[Embodiments of the invention]

第2図は本発明の一実施例の全体構成を示すブロック図
で、キーボード等からなる入力装置11、中央処理装置
12.ROM13、RAM14、プリンタ等からなる出
力装置15、および被処理プログラムが格納されている
ファイル装置(外部記憶装置)16等から構成される。
FIG. 2 is a block diagram showing the overall configuration of an embodiment of the present invention, in which an input device 11 consisting of a keyboard, etc., a central processing unit 12. It is composed of a ROM 13, a RAM 14, an output device 15 including a printer, and a file device (external storage device) 16 in which a program to be processed is stored.

ROM13には各種の処理プログラムの一つとして、プ
ログラム・ドキュメントを作成するためのプログラム1
3aが格納されている。RAM14には、被処理プログ
ラムの命令を記憶するデータバッファ14a、プログラ
ムの命令種別と該命令種別に対応づけられた記号を配列
したテーブル14b、および作成されたプログラム・ド
キュメントを格納する出力バッファ14cが具備されて
いる。
The ROM 13 contains a program 1 for creating program documents as one of various processing programs.
3a is stored. The RAM 14 includes a data buffer 14a for storing instructions of the program to be processed, a table 14b in which program instruction types and symbols associated with the instruction types are arranged, and an output buffer 14c for storing created program documents. Equipped.

第3図は、テーブル14bの詳細を示す図で、左欄には
ロード命令LD、ストア命令ST、無条件ジャンプ命令
JC1条件付ジャンプ命令J、S R1処理命令P等の
命令種別が配列され、右欄には、各命令種別に対応づけ
られた一文字程度の大きさの記号口9口、t7,3.−
・・・・・・が配列されている。
FIG. 3 is a diagram showing details of the table 14b, in which instruction types such as load instruction LD, store instruction ST, unconditional jump instruction JC1, conditional jump instruction J, and S R1 processing instruction P are arranged in the left column. In the right column, there are nine symbol openings, t7, 3, t7, t7, 3. −
... are arranged.

第2図において、入力装置11からの操作により、中央
処理装置12は、プログラム・ドキュメントを作成しよ
うとするプログラムをファイル16から読み込み、その
命令を解析し、この解析結果に基づき、テーブル14b
を参照し、命令種別に対応する記号を選択する。この処
理をプログラムを構成する命令の全てについて繰り返し
、そのプログラム・ドキュメントを編集し、それを出力
装置15により記録媒体17に出力する。
In FIG. 2, in response to an operation from the input device 11, the central processing unit 12 reads a program for creating a program document from a file 16, analyzes its instructions, and based on the results of this analysis, a table 14b
, and select the symbol corresponding to the instruction type. This process is repeated for all the instructions constituting the program, the program document is edited, and it is output to the recording medium 17 by the output device 15.

第4図は、上記中央処理装置12による解析編集等の処
理フローを示す図である。まず、プログラムの1文、す
なわち、オペレーション部とオペランド部から構成され
る1命令を読み込み、データバッファ14aに格納する
(ステップ101)。
FIG. 4 is a diagram showing a processing flow of analysis/editing and the like by the central processing unit 12. First, one sentence of the program, ie, one instruction consisting of an operation part and an operand part, is read and stored in the data buffer 14a (step 101).

前記1文からオペレーション部を切り出しくステップ1
02)、命令種別を解析しくステップ103)、その解
析結果に基づき、RAM14内のテーブル14bを参照
して命令種別と記号の対応づけを行い(ステップ104
)、結果を出力バッファ14cに格納する(ステップ1
05)。この時、ジャンプ命令の場合は、ジャンプ先の
つながり関係も表示して出力バッファ14cに格納する
。上記ステップ101からステップ105までの処理を
プログラムの全文について行ったか否かを調べ(ステッ
プ106)、全文が終っていなかったら終るまで同様の
処理を繰り返し、全文が終ったら出力バッファ14cに
格納された内容をプログラムドキュメントとして編集し
、出力装置15により記録媒体17に出力する(ステッ
プ107)。
Step 1: Extract the operation part from the above sentence
02), the instruction type is analyzed (step 103), and based on the analysis result, the instruction type and symbol are associated with reference to the table 14b in the RAM 14 (step 104).
), and stores the result in the output buffer 14c (step 1
05). At this time, in the case of a jump instruction, the connection relationship of the jump destination is also displayed and stored in the output buffer 14c. It is checked whether the processing from step 101 to step 105 described above has been performed on the entire text of the program (step 106), and if the entire text has not been completed, the same processing is repeated until it is completed, and when the entire text is completed, it is stored in the output buffer 14c. The contents are edited as a program document and outputted to the recording medium 17 by the output device 15 (step 107).

第5図は記録媒体17に出力されたプログラムように、
記号201,203,204・・・・・・等は−・ドキ
ュメントの1例を示す図である。図示する文字の大きさ
で記録媒体17に出力されるので、第1図に示すような
図形記号のようシ;に余分な空白を必要とせず、スペー
ス効率よく、プログラム・ドキュメントを表示できる。
FIG. 5 shows the program output to the recording medium 17.
Symbols 201, 203, 204, etc. are diagrams showing examples of - documents. Since the characters are output to the recording medium 17 in the size of the characters shown in the figure, the program document can be displayed in a space-efficient manner without requiring extra blank spaces like the graphic symbols shown in FIG.

なお、各記号の横には該当命令のオペランド等の内容を
付記するようにしてもよい。
Note that contents such as operands of the corresponding instruction may be written next to each symbol.

なお、上記実施例では、出力装置15としてプリンタを
例に説明したが、これはたとえばCRTディスプレイ装
置等の表示装置でも良いことは当然である。
In the above embodiment, a printer is used as an example of the output device 15, but it is of course possible to use a display device such as a CRT display device.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、プログラム・ド
キュメントを出力するのに従来のような図形記号を用い
るのではなく、−文字程度の記号を用いるので、不要な
空白が削減でき、スペース効率が向上すると共に、処理
の流れを容易に把握できるという効果が得られる。
As explained above, according to the present invention, instead of using conventional graphic symbols to output program documents, symbols of the size of - characters are used, so unnecessary blank spaces can be reduced and space efficiency can be improved. This has the effect that the process flow is improved and the process flow can be easily understood.

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

第1図は従来方式で用いられている命令の意味とそれを
表わす図形記号を示す図、第2図は本発明の一実施例の
システム構成を示すブロック図、第3図は命令種別とそ
れに対応する記号を配列したテーブルを示す図、第4図
は中央処理装置での処理フローを示す図、第5図は本発
明によるプログラム・ドキュメントの出力結果を示す図
である。 11・・・入力装置、12・・・中央処理袋装置、13
・・・ROM、 14・・・RAM、14b・・・テー
ブル、15・・・出力装置、16・・・ファイル装置、
17・・・記録媒体。 第1図 第2図 第3図 第4図 第5図
Figure 1 is a diagram showing the meanings of commands used in the conventional system and the graphical symbols representing them. Figure 2 is a block diagram showing the system configuration of an embodiment of the present invention. Figure 3 is a diagram showing the types of commands and their corresponding symbols. FIG. 4 is a diagram showing a table in which corresponding symbols are arranged, FIG. 4 is a diagram showing a processing flow in a central processing unit, and FIG. 5 is a diagram showing an output result of a program document according to the present invention. 11... Input device, 12... Central processing bag device, 13
...ROM, 14...RAM, 14b...table, 15...output device, 16...file device,
17...Recording medium. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] (1)ファイル装置に格納されているプログラムを計算
機が取り込み、前記プログラムの処理フローを示すドキ
ュメントを自動作成して出力するシステムにおいて、プ
ログラムの命令種別と該命令種別に対応づけられた記号
との対応テーブルを設け、前記計算機では、取り込んだ
プログラムの命令な解析し、その命令種別に対応する記
号を前記対応テーブルから選択し、該記号を用いてプロ
グラム全体としての処理フローを示すドキュメントを作
成して出力することを特徴とするプログラム・ドキュメ
ント出力方式。
(1) In a system in which a computer reads a program stored in a file device and automatically creates and outputs a document showing the processing flow of the program, the instruction type of the program and the symbol associated with the instruction type are A correspondence table is provided, and the computer analyzes the instructions of the loaded program, selects a symbol corresponding to the instruction type from the correspondence table, and uses the symbol to create a document showing the processing flow of the entire program. A program/document output method that is characterized by outputting files.
JP59046048A 1984-03-09 1984-03-09 Program document output system Pending JPS60189533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59046048A JPS60189533A (en) 1984-03-09 1984-03-09 Program document output system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59046048A JPS60189533A (en) 1984-03-09 1984-03-09 Program document output system

Publications (1)

Publication Number Publication Date
JPS60189533A true JPS60189533A (en) 1985-09-27

Family

ID=12736138

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59046048A Pending JPS60189533A (en) 1984-03-09 1984-03-09 Program document output system

Country Status (1)

Country Link
JP (1) JPS60189533A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62274344A (en) * 1986-05-23 1987-11-28 Hitachi Ltd Display system for program structure

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5044751A (en) * 1973-08-24 1975-04-22
JPS5896360A (en) * 1981-12-03 1983-06-08 Toshiba Corp Flow chart generator

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5044751A (en) * 1973-08-24 1975-04-22
JPS5896360A (en) * 1981-12-03 1983-06-08 Toshiba Corp Flow chart generator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62274344A (en) * 1986-05-23 1987-11-28 Hitachi Ltd Display system for program structure

Similar Documents

Publication Publication Date Title
US4864516A (en) Method for implementing an on-line presentation in an information processing system
US20080320386A1 (en) Methods for optimizing the layout and printing of pages of Digital publications.
JP3963767B2 (en) Specification creation support device
JPS60189533A (en) Program document output system
JPH0421224B2 (en)
JPS60100220A (en) Document processor
JP2005032047A (en) Device, method, program and storage medium for automatically generating file
JP2011025539A (en) Printing device, image output system, rendering method and program
JP4160989B2 (en) Method, program and system for supporting date input in data processing system
JP2000029677A (en) Automatic generating device for screen constitution
JP3041883B2 (en) Document creation support method and apparatus
JP2009003496A (en) Business form data conversion device
JP5063207B2 (en) Color conversion processing apparatus, method, recording medium, and program
JP2824256B2 (en) Character display system
JPH11203279A (en) Kana-kanji conversion device and method and storage medium
JPH05314174A (en) Document preparing method and device therefor
JP2006331146A (en) Image analysis unit
JPH11184845A (en) Document processor and its program storage medium
JPS63128424A (en) Data processing system
JPH0373908B2 (en)
JP2001101165A (en) Document editor
JP2001357342A (en) Information processing method and information processor
JPH11191112A (en) Character extracting method by template
JPS61229161A (en) Documentation and editing device
JPH03166642A (en) Method and device for inputting text