JPH03137727A - Editor with program explanation file generator function - Google Patents

Editor with program explanation file generator function

Info

Publication number
JPH03137727A
JPH03137727A JP27660389A JP27660389A JPH03137727A JP H03137727 A JPH03137727 A JP H03137727A JP 27660389 A JP27660389 A JP 27660389A JP 27660389 A JP27660389 A JP 27660389A JP H03137727 A JPH03137727 A JP H03137727A
Authority
JP
Japan
Prior art keywords
source
program
line
function
explanation
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
JP27660389A
Other languages
Japanese (ja)
Inventor
Toru Takahashi
徹 高橋
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP27660389A priority Critical patent/JPH03137727A/en
Publication of JPH03137727A publication Critical patent/JPH03137727A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To generate a file for the explanation of a program source using a graphic, a table and the like apart from the text file of the program source by providing a function which arbitrarily generates the graphic, a curve line and a straight line and a function making a list. CONSTITUTION:The program source 2 is described in the left side of a separation line 4 provided in the list 1 (document) and a program explanation source 3 including the graphic in addition to a character is described on the right side of the line 4 in correspondence with a necessary row in the source 2. Namely, the function generating the graphic such as a circle, an oval, a square, a triangle, an arc, a semicircle, the curve line such as a dotted line, a broken line, a thin line, a thick line and double lines and the straight line, a function which paints out a designated area and a designated pattern and an external character registration/delection function and an external character display function are given to an editor. Thus, the function which can edit the graphic, the table and the document for explaining the source 2 apart from the source 2 as the source 3 and which correspondingly makes the source 2 and the source 3 into the list is given. Thus, the file for program source explanation is generated apart from the text file.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明は、プログラムソースのテキストファイルの作
成と修正を行うための編集用プログラムとしてのエディ
タであって、さらにプログラム解説ファイルを作成する
機能が付加されてなるプログラム解説ファイル作成機能
付エディタに関する。 なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to an editor as an editing program for creating and modifying a text file of a program source, and to an editor with a function for creating a program explanatory file, which is further added with a function for creating a program explanatory file. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.

【従来の技術】[Conventional technology]

従来のエディタでは、プログラムソース中に説明(コメ
ント)を付加しようとするときは、プログラムソース中
にそのプログラムを作成する言語で規定の記述方法でコ
メントを記述していた。そしてコンパイラはこのコメン
ト部を無視してオブジェクトプログラムを作成していた
In conventional editors, when adding an explanation (comment) to a program source, the comment is written in the program source using a prescribed writing method in the language in which the program is created. The compiler ignored this comment section and created an object program.

【発明が解決しようとする課題】[Problem to be solved by the invention]

しかしながら従来のエディタでは、プログラム作成の用
言語で規定の記述方法でのみ、コメントの記述ができる
だけであるため、図解説明や表。 グラフ等を用いてプログラムソースの説明を行うことが
できないという問題があった。即ち図解説明などを記述
しようとすると、コンパイラはこの記述をプログラムソ
ース以外の内容と解決することができず、正しいコンパ
イルができない。 そこでこの発明は図1表、グラフを用いたプログラムソ
ースの解説用のプログラム解説ファイルをプログラムソ
ースのテキストファイルと別に作成し得る、プログラム
解説ファイル作成機能付エディタを提供することを課題
とする。
However, with conventional editors, comments can only be written using the prescribed writing method in the programming language, so they cannot be written with illustrated explanations or tables. There was a problem in that it was not possible to explain the program source using graphs or the like. That is, if an attempt is made to write an illustrated explanation, the compiler cannot resolve this description as content other than the program source, and cannot compile correctly. SUMMARY OF THE INVENTION An object of the present invention is to provide an editor with a program explanation file creation function that can create a program explanation file for explaining a program source using tables and graphs in FIG. 1 separately from a text file of the program source.

【課題を解決するための手段】[Means to solve the problem]

前記の課題を解決するために本発明のエディタは、rプ
ログラムソース(2など)のテキストファイルの作成と
修正を行うためのエディタであって、さらにプログラム
ソースの解説とその対応情報で構成するプログラム解説
ファイル(3Fなど)の作成と修正を行うための機能を
もつjものとする。
In order to solve the above-mentioned problems, the editor of the present invention is an editor for creating and modifying a text file of r program source (2, etc.), and further includes an explanation of the program source and its corresponding information. It is assumed that it has a function for creating and modifying explanation files (such as 3F).

【作 用】[For use]

従来のエディタにプログラムソースの解説用の図2表、
グラフと文書の編集機能を持たせ、更に、これらの編集
結果をプログラムソースと共にリスト化する機能をもた
せることでプログラムソースの解説用のドキュメントを
プログラムソースを変更することなく作成する。
Figure 2 table for explanation of program source in conventional editor,
By providing functions for editing graphs and documents, and further providing a function for listing the results of these edits together with program sources, a document for explaining the program sources can be created without changing the program sources.

【実施例】 以下第1図ないし第3図に基づいて本発明の詳細な説明
する。第1図は本発明の一実施例としてのリスト(ドキ
ュメント)の一部を示し、第2図、第3図はそれぞれプ
ログラム解説ファイルの構成の異なる実施例を示す。 第1図においてlはリスト(後述のドキュメント)の一
部、4はこのリストを左右に区別する区切り線である。 そしてこの区切り線4の左側はプログラムソース2が記
述され、同じく区切り線4の右側にはソログラムソース
2中の必要な行に、それぞれ対応して文字のほか図形を
含み得るプログラム解説ソース3が記述されている。 即ち本発明では円、楕円、四角、二角、弧、半円等の図
形及び、点線、破線、細線、太線、二重線等の曲線、直
線を任意に作成する機能と、指定領域を指定パターンで
塗り潰しする機能と、外字登録/抹消および外字表示の
機能とをプログラムソースの作成と修正を行えるエディ
タに持たせ、プログラムソース2とは別に、プログラム
ソースの解説用の図2表、グラフおよび文書をプログラ
ム解説ソース3として編集できるようにし、更に、編集
したプログラム解説ソース3とプログラムソース2とを
対応させてリスト化する機能をソフトウェアで持たせる
。このリスト化したものをドキュメント1と称する。 例えばパソコンに第1図のようなリスト(ドキュメント
)1の原データを入力するには本発明に基づくエディタ
を用い、ドキュメント作成モードとし、操作キーを用い
て第1図のような画面表示を行いながら、区切り線4の
左側にプログラムソース2の各行を記述し、同じく区切
り線4・の右側には左側の行に対応する解説用の図1表
、グラフあるいは文字からなるプログラム解説ソース3
を記述する。 この記述の後、編集モードとすれば、プログラムソース
2のデータは従来と同様なプログラムソースのテキスト
ファイルとして図外の補助記憶装置に格納され、プログ
ラム解説ソース3のデータは後述するプログラム解説フ
ァイル3Fとして補助記憶装置に格納される。 逆にプログラムソースのテキストファイルとプログラム
解説ファイル3Fとから、第1図のようなドキュメント
1の画面表示および印刷出力を行わせることができる。 またプログラムソースのテキストファイルが既に存在し
ていて、プログラム解説ファイル3Fを作成しようとす
る場合、第1図の画面において区切り線4の左側にプロ
グラムソース2を表示させて置き、区切り線4の右側に
プログラム解説ソース3を順次記述する方法を用いるこ
ともできる。 ところで第2図はこのプログラム解説ソース3のデータ
入力に基づいて、図外の補助記憶装置に格納されるプロ
グラム解説ファイル3Fの構成例を示す、この例ではこ
のメモリ領域は16ビツト単位で構成され、先頭部のヘ
ッダ部11とこれに続くデータ部12とからなる。そし
てヘッダ部11に′はプログラムソース2の1行目から
最終行(この例ではN行目)までの各行に対応する解説
データの各先頭アドレスがそれぞれこの各行の順番に格
納されている。またデータ部12には上からプログラム
ソース2の行の順番に、該行に対応する図1表。 グラフ、あるいは文字を含む解説データが、図形コード
、文字コードを用いて格納されている。 プログラムソース2の行に対応する解説用の図。 表、グラフまたは文書がない場合には、その行に対応す
る16ビツト単位で区切ったヘッダ部11をNU L 
(0)にする。第3図はこのような場合のプログラム解
説ファイル3Fの構成例を示す。例えば、プログラムソ
ースの2行目に対応する解説用の図。 表、グラフまたは文書がない場合には、16ビツト単位
で区切ったヘッダ部11の2番目がNULとなる。 また、プログラムソース2を修正変更した場合には、プ
ログラム解説ファイル3Fのヘッダ部11内の前記修正
部に対応する内容も自動的に修正するようにする。 エディタは、プログラムソース2のテキストファイルと
プログラム解説ファイル3Fとを参照して第1図のよう
なドキュメント1を画面に表示したり、プリンタに印字
出力することができる。その際、区切り線4等も出力可
能とする。
Embodiments The present invention will be described in detail below with reference to FIGS. 1 to 3. FIG. 1 shows a part of a list (document) as one embodiment of the present invention, and FIGS. 2 and 3 each show a different embodiment of the structure of a program explanation file. In FIG. 1, 1 is a part of a list (a document to be described later), and 4 is a dividing line that separates this list from left to right. On the left side of this dividing line 4, a program source 2 is written, and on the right side of the dividing line 4, a program explanation source 3 that can include figures in addition to characters is written in correspondence with the necessary lines in the sologram source 2. It has been described. That is, the present invention has a function to arbitrarily create figures such as circles, ellipses, squares, squares, arcs, semicircles, etc., curves such as dotted lines, broken lines, thin lines, thick lines, double lines, and straight lines, and a function to specify designated areas. The editor that can create and modify program sources has the function of filling in with a pattern, the function of registering/deletion of external characters, and the function of displaying external characters. A document can be edited as a program explanation source 3, and the software has a function of making the edited program explanation source 3 and program source 2 correspond to each other and creating a list. This list is called document 1. For example, to input the original data of list (document) 1 as shown in Figure 1 into a personal computer, use the editor based on the present invention, set it to document creation mode, and use the operation keys to display the screen as shown in Figure 1. On the left side of the separator line 4, each line of the program source 2 is written, and on the right side of the separator line 4, a program explanation source 3 consisting of tables, graphs, or text for explanations corresponding to the lines on the left side is written.
Describe. After this description, if the edit mode is entered, the data of program source 2 is stored in an auxiliary storage device (not shown) as a program source text file similar to the conventional one, and the data of program explanation source 3 is stored in the program explanation file 3F, which will be described later. It is stored in auxiliary storage as . Conversely, the document 1 shown in FIG. 1 can be displayed on the screen and printed out from the program source text file and the program explanation file 3F. In addition, if a program source text file already exists and you are trying to create program explanation file 3F, display program source 2 on the left side of separator line 4 on the screen shown in Figure 1, and place it on the right side of separator line 4. It is also possible to use a method of sequentially writing the program explanation source 3. By the way, FIG. 2 shows an example of the structure of the program explanation file 3F stored in an auxiliary storage device (not shown) based on the data input of the program explanation source 3. In this example, this memory area is structured in units of 16 bits. , consists of a header section 11 at the beginning and a data section 12 following it. In the header section 11, each start address of the explanation data corresponding to each line from the first line to the last line (in this example, the Nth line) of the program source 2 is stored in the order of each line. Also, in the data section 12, in order of the rows of the program source 2 from the top, the table in FIG. 1 corresponding to the rows is shown. Explanatory data including graphs or characters is stored using graphic codes and character codes. An explanatory diagram corresponding to the lines of program source 2. If there is no table, graph, or document, the header section 11 corresponding to that row separated by 16 bits is set to NU L
Set to (0). FIG. 3 shows an example of the structure of the program explanation file 3F in such a case. For example, an explanatory diagram corresponding to the second line of the program source. If there is no table, graph, or document, the second part of the header section 11 divided into 16-bit units will be NUL. Furthermore, when the program source 2 is modified, the content corresponding to the modified section in the header section 11 of the program explanation file 3F is also automatically modified. The editor can display the document 1 as shown in FIG. 1 on the screen or print it out to a printer by referring to the text file of the program source 2 and the program explanation file 3F. At that time, the dividing line 4 etc. can also be output.

【発明の効果】【Effect of the invention】

本発明によればプログラムソース2のテキストファイル
の作成と修正を行うためのエディタであって、さらにプ
ログラムソース2の解説とその対応情報で構成するプロ
グラム解説ファイル3Fの作成と修正を行うための機能
をもつプログラム解説ファイル作成機能付エディタを用
いることとしたので、 プログラムソースのテキストファイルとプログラム解説
ファイルとを対応付けて、プログラムソースの解説用の
図1表、グラフおよび文書の曙集を行えるようになった
。プログラム解説ファイルを、プログラムソースのテキ
ストファイルと独立してファイル化したことによって、
プログラムソースの解説用の図1表、グラフあるいは文
書の修正変更を行ってもプログラムソースのテキストフ
ァイルを再コンパイルする手間が省けた。
According to the present invention, it is an editor for creating and modifying a text file of the program source 2, and further has a function for creating and modifying a program explanation file 3F consisting of an explanation of the program source 2 and its corresponding information. Since we decided to use an editor with a function to create a program explanation file, we were able to associate the text file of the program source with the program explanation file, and create a collection of tables, graphs, and documents used to explain the program source. Became. By making the program explanation file separate from the program source text file,
This eliminates the need to recompile the program source text file even when modifying or modifying the Figure 1 table, graph, or document used to explain the program source.

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

第1図は本発明の一実施例としてのドキュメントを示す
図、 第2図、第3図はそれぞれ本発明のプログラム解説ファ
イルの構成の異なる実施例を示す図である。 1:リスト(ドキュメント)、2ニブログラムソース、
3ニブログラム解説ソース、4:区切り線、3F ニブ
ログラム解説ファイル、11:ヘッダ3Fニブログラム
^■克フフイル 15
FIG. 1 is a diagram showing a document as an embodiment of the present invention, and FIGS. 2 and 3 are diagrams each showing a different embodiment of the structure of a program explanation file of the present invention. 1: List (document), 2 Nibrogram source,
3 Nibragram explanation source, 4: Separator line, 3F Nibragram explanation file, 11: Header 3F Nibragram ^■Katsu file 15

Claims (1)

【特許請求の範囲】[Claims] 1)プログラムソースのテキストファイルの作成と修正
を行うためのエディタであって、さらにプログラムソー
スの解説とその対応情報で構成するプログラム解説ファ
イルの作成と修正を行うための機能をもつことを特徴と
するプログラム解説ファイル作成機能付エディタ。
1) An editor for creating and modifying a program source text file, and further having a function for creating and modifying a program explanation file consisting of program source explanations and corresponding information. An editor with a function to create program explanation files.
JP27660389A 1989-10-24 1989-10-24 Editor with program explanation file generator function Pending JPH03137727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27660389A JPH03137727A (en) 1989-10-24 1989-10-24 Editor with program explanation file generator function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27660389A JPH03137727A (en) 1989-10-24 1989-10-24 Editor with program explanation file generator function

Publications (1)

Publication Number Publication Date
JPH03137727A true JPH03137727A (en) 1991-06-12

Family

ID=17571745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27660389A Pending JPH03137727A (en) 1989-10-24 1989-10-24 Editor with program explanation file generator function

Country Status (1)

Country Link
JP (1) JPH03137727A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05313877A (en) * 1992-05-13 1993-11-26 Kodo Eizo Gijutsu Kenkyusho:Kk Program editing device and its program display method
JPH0876984A (en) * 1994-08-31 1996-03-22 Nec Corp Maintenance information management device
JP2013142971A (en) * 2012-01-10 2013-07-22 Sumitomo Heavy Ind Ltd Device and method for processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05313877A (en) * 1992-05-13 1993-11-26 Kodo Eizo Gijutsu Kenkyusho:Kk Program editing device and its program display method
JPH0876984A (en) * 1994-08-31 1996-03-22 Nec Corp Maintenance information management device
JP2013142971A (en) * 2012-01-10 2013-07-22 Sumitomo Heavy Ind Ltd Device and method for processing program

Similar Documents

Publication Publication Date Title
JPH0585931B2 (en)
JPH03137727A (en) Editor with program explanation file generator function
JPH06231224A (en) Device and method for generating operation guidance
JPS58208865A (en) Document producing device
JP2000168294A (en) Electronic white board system
JPS5846427A (en) Document editing device
US20040019854A1 (en) Dynamically configurable page numbering system
JP2656470B2 (en) Writing method
JPH05101053A (en) Structured document editing method
JP2594043B2 (en) Ruled line creation device
JPS61195455A (en) Document preparation device
JPH01183768A (en) Editing system for document production system
JPH0916796A (en) Document design editing device
KR100260249B1 (en) Method of converting informap drawing to autocad drawing
JP2732576B2 (en) Character reader
JPS63174161A (en) Document processor
JPH05165617A (en) System for unifying software design book with program source
JPH02255954A (en) Word processor
JPH0256672A (en) Method for moving sentence in editing machine
JPH06131012A (en) Comment generating device for control drawing
JPS63316232A (en) Processing for program preparation
Salomon et al. Example Format
JPH0315968A (en) Text editing device
JPH08171555A (en) Word processor
JPH0239351A (en) Layout line display device