JPH0340410B2 - - Google Patents
Info
- Publication number
- JPH0340410B2 JPH0340410B2 JP59201518A JP20151884A JPH0340410B2 JP H0340410 B2 JPH0340410 B2 JP H0340410B2 JP 59201518 A JP59201518 A JP 59201518A JP 20151884 A JP20151884 A JP 20151884A JP H0340410 B2 JPH0340410 B2 JP H0340410B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- level
- text
- user
- attributes
- 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.)
- Expired - Lifetime
Links
- 239000000470 constituent Substances 0.000 claims 2
- 238000013461 design Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 5
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 241000282412 Homo Species 0.000 description 1
- 230000007850 degeneration Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Description
【発明の詳細な説明】
〔発明の技術分野〕
本発明はプログラムテキストの作成・編集を効
果的に行い得るプログラム作成装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a program creation device that can effectively create and edit program text.
通常のプログラム開発では、キーボードより文
字列・英数字からなるプログラムを入力し、この
文字列・英数字によつて示されるプログラムの設
計情報やソースプログラム・コードを記憶させる
と共にデイスプレイ装置上に表示させながら、目
的とするプログラムの設計やソースプログラム・
コードへの展開をオペレータとの対話形式で行な
うプログラム作成装置が使用されている。ここで
設計情報とはプログラムの内容をユーザに説明す
るためのものでシステムを動作させるプログラム
ではない。又、ソースプログラム・コードとは、
機械語に翻訳されるもとのプログラムであり
FORTRAN、COBOL等により表現されている。
これらの設計情報とソースプログラム・コードが
混在した形式のプログラム(これをプログラムテ
キストと云う)を使つてプログラム開発が行われ
ている。
In normal program development, a program consisting of character strings and alphanumeric characters is input from the keyboard, and the program design information and source program code indicated by the character strings and alphanumeric characters are stored and displayed on a display device. While designing the target program and the source program
A program creation device is used in which development into code is performed in an interactive manner with an operator. Here, the design information is for explaining the contents of the program to the user, and is not a program for operating the system. Also, what is the source program code?
is the original program that is translated into machine language.
Expressed using FORTRAN, COBOL, etc.
Program development is performed using a program (referred to as a program text) in which this design information and source program code are mixed.
しかし従来のプログラム作成装置における
CRTデイスプレイにおいては、その表示行数が
限られている為に、膨大な容量であるプログラム
テキストの全体構造をユーザーが把握することが
非常に困難であつた。しかもユーザーにとつては
プログラムテキストの特定部分のみの参照や編集
が困難であるという不都合があつた。つまり上記
プログラムテキストの一部分しか表示できないた
めに、その表示部分の全体に対する位置づけ等を
把握することが難しく、編集作成が難しいという
問題があつた。そして、プログラムテキストには
上述した様に設計情報とソースプログラム・コー
ドが混在しているので、ユーザがプログラムの内
容を理解する時に必要な設計情報のみを参照する
ことが困難であつた。 However, in conventional program creation devices,
Since the number of lines displayed on a CRT display is limited, it is extremely difficult for the user to understand the entire structure of a program text, which has a huge amount of space. Moreover, it is inconvenient for the user that it is difficult to refer to or edit only a specific part of the program text. In other words, since only a portion of the program text can be displayed, it is difficult to grasp the position of the displayed portion in relation to the whole, making it difficult to edit and create. Since the program text contains a mixture of design information and source program code as described above, it has been difficult for the user to refer to only the design information necessary to understand the contents of the program.
本発明の目的は、ユーザがプログラムテキスト
を全体を把握しながらそのプログラムの作成・編
集を効率よく行えると共に、プログラムテキスト
に含まれる設計情報のみの参照を可能にする実用
性の高いプログラム作成装置を提供することにあ
る。
An object of the present invention is to provide a highly practical program creation device that allows a user to efficiently create and edit a program while grasping the entire program text, as well as to refer to only the design information included in the program text. It is about providing.
本発明は、例えば座標入力装置を介して筆記入
力されたプログラムテキストを1まとまりのプロ
グラム構成要素毎にその内容に応じてレベルを定
義し、この各プログラム構成要素にその種類に応
じて属性を定義する。つまり、これらのレベル及
び属性の付されたプログラム構成要素により前記
プログラムテキストを木構造化して記憶する。そ
してこのプログラムテキストの木構造情報を出力
し、前記座標入力装置より入力されたレベル指示
信号及び属性指示信号に対応するプログラム構成
要素を表示出力するものである。
The present invention defines a level of program text input by hand, for example via a coordinate input device, for each set of program components according to its contents, and defines attributes for each program component according to its type. do. That is, the program text is stored in a tree structure using the program components to which these levels and attributes are attached. Then, the tree structure information of this program text is output, and the program components corresponding to the level instruction signal and attribute instruction signal inputted from the coordinate input device are displayed and output.
本発明によればプログラムテキストの木構造情
報によりその全体の概要を把握しながらプログラ
ム構成要素を選択的に得ることができるので、対
話形式によるプログラム作成・編集を極めて効果
的に行うことが可能となる。又、プログラム構成
要素には属性を定義できるので、例えば設計情報
の属性を持つプログラム構成要素のみを表示対象
にすれば、この設計情報を上位レベルから下位レ
ベルへと順々に参照でき、プログラム内容の理解
が容易になる。つまり、プログラムテキストの全
体を把握しながらその目的部分にのみ焦点を合せ
てプログラムの参照・編集を行うことが可能とな
り、プログラム内容の理解の大きな助力となる等
の絶大なる効果が奏せられる。
According to the present invention, it is possible to selectively obtain program components while grasping the overall outline using the tree structure information of the program text, making it possible to create and edit programs in an interactive manner extremely effectively. Become. In addition, attributes can be defined for program components, so for example, if only program components with attributes of design information are displayed, this design information can be referenced from the upper level to the lower level, and the program content It becomes easier to understand. In other words, it is possible to refer to and edit a program by focusing only on the desired part while grasping the entire program text, which has great effects such as greatly aiding the understanding of the program contents.
以下、図面を参照して本発明の一実施例につい
て説明する。
An embodiment of the present invention will be described below with reference to the drawings.
第1図は実施例装置の概略構成図であり、図中
1はマイクロプロセツサ等からなる制御部であ
る。この制御部1の座標入力装置2、デイスプレ
イ3、プリンタ4、メモリ5が接続される。 FIG. 1 is a schematic diagram of an embodiment of the apparatus, and numeral 1 in the figure represents a control section comprising a microprocessor or the like. The coordinate input device 2, display 3, printer 4, and memory 5 of this control section 1 are connected.
第5図は制御部1の動作のフロー図であるが、
以下第1図と第5図を用いて本実施例を動作を説
明する。制御部1はユーザにより座標入力装置2
から筆記入力された文字列の認識を行ない、この
文字列からなるプログラムテキスト(編集テキス
ト)を順にメモリ5に格納する。ここでメモリ5
は後述する様にプログラムテキストの展開・縮退
を行なうための作業領域として使われる。この作
業開始前(ユーザによるコマンド入力前)に制御
部1内の図示しない補助記憶装置(フロツピーデ
イスク等)に前回作製したプログラムテキストが
有り、今回の作業でこのプログラムテキストを使
用する場合はこれを制御部1がメモリ5へ読み込
む(第5図ステツプ11)。以下の説明は、ユーザ
が新規にプログラムテキストを入力する場合につ
いて述べる。先ずユーザは座標入力装置2からコ
マンド(木構造の展開、縮退、表示の展開、縮
退)を入力する(第5図ステツプ12)。最初にユ
ーザが木構造の展開を指示するコマンドを入力し
た後(第5図ステツプ13)、所望のプログラムテ
キストを座標入力装置2より筆記入力する(第5
図ステツプ14)。制御部1は入力された文字列か
らなるプログラムテキストを1まとまりのプログ
ラム記述(プログラム構成要素)毎にレベルと属
性の識別符号を各々付加する(これを木構造化す
ると云う)(第5図ステツプ15)。ここでプログラ
ム構成要素とはプログラム中の最小単位の記述ブ
ロツクと定義する。レベルとは上記プログラム構
成要素の木構造上における内容の詳細度を表わす
階級値であり、例えばレベル1(上位レベル)と
はプログラム中の見出し、表題等を表わしレベル
2(中位レベル)とはプログラム中の概略説明、
主要な命令ステツプ等を表わし、レベル3(下位
レベル)とはプログラム中の詳細な説明、詳細な
計算ルーチン等を表わしている。又、属性とは上
記プログラム構成要素の種類を表わすものであ
り、例えばプログラムテキスト中の設計情報はユ
ーザ向けの説明であるので人間の属性(&)が付
加され、リースプログラムコードは、機械語に翻
訳されるべきプログラムであるので、計算機の属
性(%)が付加される。又後述する様にこの属性
マーク(&、%)は更に下位レベルのプログラム
構成要素が有ることを示すマークでもある。他の
属性の種類としては、プログラム中における命令
の部分とデータ部分、メインプログラムとサブル
ーチン群等が考えられる。この制御部1がプログ
ラム構成要素にレベル及び属性の符号の付加する
動作はユーザが入力装置よりプログラムを入力す
る際の指示により行うものでも良いし、制御部1
が自動的に付加するものでもよい。前者の場合ユ
ーザが入力装置を介して「ユーザ向け」のコマン
ドを指示すると、以下入力されるプログラムには
人間の属性符号(&)が付される。又、ユーザが
最初にプログラムの表題(例えば機能仕様書)を
入力するとこれにレベル1が付され、続けて「詳
細化」を指示するコマンドが入力されると、以下
入力される機能説明のプログラムにはレベル2が
付される。こうしてユーザが所望のプログラムテ
キストを全て入力し終ると(例えば(終了〓〓)
キー等の指示による)、制御部1は入力されたプ
ログラムテキストをデイスプレイ3に表示するの
であるが、プログラム構成要素の各々に上述した
レベル及び属性を付加させて表示する(第5図ス
テツプ16)。この時の表示内容を第2図に示すが、
機能仕様書以下のプログラムは設計情報であるの
で&が付されており、CODE以下のプログラムは
ソースプログラム・コードであるので%が付され
ている。又それぞれの構成要素に対応してレベル
(1、2、3)が付されている。(レベル3の構成
要素は最下位レベルであるので属性(&、%)が
付されていない。)以後これらのレベル及び属性
符号をまとめて木構造情報と云うことにする。ユ
ーザはこの木構造情報を見ることによりプログラ
ムテキストの構造を全体に亘つて把握できる。第
3図はこの木構造情報の付加された(木構造化さ
れた)プログラムテキストの構造を模式的に示し
た図である。この第3図において、下位レベル
(レベル3)での1まとまりのプログラム構成要
素として(A1、A2)なる組と(B1、B2)なる
組とがあり、これらは設計情報の属性を持つプロ
グラム構成要素の機能説明A、機能説明Bとして
各々定義される(但し表示される際は&が付加さ
れない。)そしてこれらのプログラム構成要素の
機能説明A、機能説明Bは中位レベル(レベル
2)での1まとまりのプログラム構成要素とし
て、設計情報の属性を持つ機能仕様書として定義
される。又、下位レベルでの1まとまりのプログ
ラム構成要素として(C11、C12)、(C21、C22、
C23)、(C31、C32)なる3組があり、これらはソ
ースプログラム・コードの属性を持つプログラム
構成要素C1、C2、C3として各々定義される。(但
し表示される際は%が付加されない。)そしてこ
れらのプログラム構成要素C1、C2、C3は中位レ
ベルの1まとまりのプログラム構成要素としてソ
ースプログラム・コードを属性を持つCODEとし
て定義される。これら中位レベル(レベル2)で
のプログラム構成要素である。機能仕様書、
CODEによつて一連のプログラムテキストの表題
が上位レベル(レベル1)として定義される。
尚、第3図に示されるように機能仕様書とCODE
は同一のプログラム構成要素となつているが、表
示される際には各々&、%が付される。 FIG. 5 is a flow diagram of the operation of the control unit 1,
The operation of this embodiment will be described below with reference to FIGS. 1 and 5. The control unit 1 is controlled by the user using the coordinate input device 2.
A character string input by hand is recognized, and a program text (edited text) consisting of this character string is sequentially stored in the memory 5. Here memory 5
is used as a work area for expanding and degenerating program text, as will be described later. Before starting this work (before inputting commands by the user), there is a previously created program text in the auxiliary storage device (not shown) in the control unit 1 (floppy disk, etc.). The control unit 1 reads the data into the memory 5 (step 11 in FIG. 5). The following description will be made regarding the case where the user newly inputs program text. First, the user inputs commands (expanding and collapsing the tree structure, expanding and collapsing the display) from the coordinate input device 2 (step 12 in FIG. 5). First, the user inputs a command to expand the tree structure (Step 13 in Figure 5), and then inputs the desired program text using the coordinate input device 2 (Step 5 in Figure 5).
Figure step 14). The control unit 1 adds level and attribute identification codes to each set of program descriptions (program components) to the program text consisting of input character strings (this is called creating a tree structure) (steps in Figure 5). 15). Here, a program component is defined as a minimum unit description block in a program. Level is a class value that represents the degree of detail of the content in the tree structure of the program components. For example, level 1 (upper level) represents headings, titles, etc. in the program, and level 2 (middle level) Outline explanation during the program,
It represents major instruction steps, etc., and level 3 (lower level) represents detailed explanations in the program, detailed calculation routines, etc. In addition, attributes represent the types of program components mentioned above.For example, design information in program text is an explanation for the user, so a human attribute (&) is added, and lease program code is written in machine language. Since this is a program to be translated, the computer attribute (%) is added. Further, as will be described later, this attribute mark (&, %) is also a mark indicating that there is a program component at a lower level. Other types of attributes include an instruction part and a data part in a program, a main program and a group of subroutines, and the like. The operation of adding level and attribute codes to program components by the control unit 1 may be performed by a user's instruction when inputting a program from an input device, or the control unit 1
may be added automatically. In the former case, when the user instructs a "user-oriented" command via the input device, a human attribute symbol (&) is added to the program that is subsequently input. Also, when the user first inputs the title of the program (for example, functional specification), level 1 is added to it, and when a command to instruct "detailing" is input subsequently, the program with the function description input below is added. is assigned level 2. In this way, when the user finishes inputting all the desired program text (for example, (End〓〓)
The control section 1 displays the input program text on the display 3 (by instructions from keys, etc.), and displays the above-mentioned levels and attributes added to each of the program components (Step 16 in Figure 5). . The display contents at this time are shown in Figure 2.
Programs below the functional specification are design information, so they are marked with &; programs below CODE are source program code, so they are marked with %. Further, levels (1, 2, 3) are assigned corresponding to each component. (Since the level 3 component is the lowest level, attributes (&, %) are not attached to it.) Hereinafter, these levels and attribute codes will be collectively referred to as tree structure information. By viewing this tree structure information, the user can grasp the entire structure of the program text. FIG. 3 is a diagram schematically showing the structure of the program text to which this tree-structured information is added (tree-structured). In this figure, there are a group of program components at the lower level (level 3), a set of (A1, A2) and a set of (B1, B2), which are program configurations with attributes of design information. Functional explanation A and functional explanation B of the element are respectively defined (however, & is not added when displayed), and the functional explanation A and functional explanation B of these program components are at an intermediate level (level 2). It is defined as a set of program components as a functional specification with attributes of design information. Also, as a group of program components at a lower level, (C 11 , C 12 ), (C 21 , C 22 ,
There are three sets, C 23 ) and (C 31 , C 32 ), which are respectively defined as program components C 1 , C 2 , and C 3 that have source program code attributes. (However, % is not added when displayed.) These program components C 1 , C 2 , and C 3 are defined as a set of medium-level program components, and the source program code is defined as a CODE with attributes. be done. These are the program components at the intermediate level (Level 2). functional specifications,
CODE defines a series of program text titles as an upper level (level 1).
In addition, as shown in Figure 3, the functional specifications and CODE
are the same program component, but when displayed, & and % are added to each.
次にユーザが座標入力装置2よりプログラムテ
キストの削除(木構造の縮退)を指示するコマン
ドを入力した場合について述べる。このコマンド
入力(第5図ステツプ17)に引き続いてユーザは
入力装置1を介して削除すべきプログラム構成要
素(レベル及び属性)の指定を行なう(第5図ス
テツプ18)。この削除指定作業の前に、第5図の
フローには示されてないが、第2図に示すプログ
ラムテキスト及び木構造情報をデイスプレイ3に
表示させ、ユーザがその中から削除すべきレベル
及び属性を指定しても良い。その後制御部1はメ
モリ5内に格納しているプログラムテキストから
指定されたプログラム構成要素を削除する(第5
図ステツプ19)。例えばユーザが(レベル≧2)
(&)を指示すると制御部1は人間の属性を持ち
レベル2、3のプログラム構成要素(第3図では
レベル2の機能説明A、B、レベル3のA1、A2、
B1、B2)を削除するのである。 Next, a case will be described in which the user inputs a command to delete the program text (degenerate the tree structure) from the coordinate input device 2. Following this command input (step 17 in FIG. 5), the user specifies the program component (level and attribute) to be deleted via the input device 1 (step 18 in FIG. 5). Before this deletion specification work, although not shown in the flow of FIG. 5, the program text and tree structure information shown in FIG. 2 are displayed on the display 3, and the user can select the levels and attributes to be deleted. may also be specified. Thereafter, the control unit 1 deletes the specified program component from the program text stored in the memory 5 (fifth
Figure step 19). For example, the user (level ≧ 2)
When (&) is specified, the control unit 1 has human attributes and program components of levels 2 and 3 (in FIG. 3, function descriptions A and B of level 2, A 1 , A 2 of level 3,
B 1 , B 2 ).
次にユーザが座標入力装置2より表示の展開を
指示するコマンドを入力した場合について述べる
(第5図ステツプ20)。ここで云う表示の展開と
は、上述したステツプ13、17における様なプログ
ラムテキスト自体の展開、削除とは異なりメモリ
5内に格納されているプログラムテキスト自体は
そのままであるがこの中から表示すべきプログラ
ム構成要素を選択して表示させるものである。ユ
ーザは前記コマンドに引き続いて座標入力装置2
より表示すべきプログラム構成要素のレベル及び
属性を指定する(第5図ステツプ21)。制御部1
では、メモリ5内に格納されているプログラムテ
キストの中から指定されたレベル及び属性に対応
するプログラム構成要素を取り出してデイスプレ
イ3に表示させる(第5図ステツプ22)。例えば
ユーザが座標入力装置2より(レベル2)(&)
のコマンドを入力すると、第4図に示す様に人間
の属性(設計情報)を持ちレベル1、2のプログ
ラム構成要素がその木構造情報と共に表示され
る。尚、この第4図では計算機言語の属性(%)
を有したレベル1のCODEも表示されているが、
これは格納されているプログラムテキスト中に計
算機言語の有る事を示す必要最小限の情報(見出
し)であるのであえて表示したものである。第3
図において斜線の付されたプログラム構成要素は
第4図に表示されていないものを表わしているが
ユーザがマーク&の付されている機能説明A,B
の詳細(下位レベルの説明)を更に知りたい場合
には(レベル3)、(&)の指定を行うと第3図に
おけるプログラム構成要素のA1、A2、B1、B2が
表示される。 Next, a case will be described in which the user inputs a command to instruct display expansion from the coordinate input device 2 (step 20 in FIG. 5). The development of the display mentioned here differs from the development and deletion of the program text itself as in steps 13 and 17 described above.The program text itself stored in the memory 5 remains unchanged, but the program text itself that should be displayed is It selects and displays program components. Following the above command, the user inputs the coordinate input device 2.
The level and attributes of the program component to be displayed are specified (Step 21 in Figure 5). Control part 1
Then, the program component corresponding to the specified level and attribute is extracted from the program text stored in the memory 5 and displayed on the display 3 (step 22 in FIG. 5). For example, the user uses the coordinate input device 2 (level 2) (&)
When this command is input, program components having human attributes (design information) at levels 1 and 2 are displayed together with their tree structure information, as shown in FIG. In addition, in this figure 4, the attributes of the computer language (%)
Level 1 CODE with
This is intentionally displayed because it is the minimum necessary information (heading) to indicate the existence of a computer language in the stored program text. Third
The program components marked with diagonal lines in the figure represent those not shown in Fig. 4, but the functional explanations A and B marked by the user are marked &.
If you want to know more details (lower level explanation), specify (level 3) and (&), and the program components A 1 , A 2 , B 1 , and B 2 in Figure 3 will be displayed. Ru.
ユーザが座標入力装置2より表示の縮退(削
除)を指示するコマンドを入力した場合には(第
5図ステツプ23)、このコマンドに続けて非表示
の対象となるレベル及び属性を指定すると(第5
図ステツプ24)、制御部1はメモリ5内に格納さ
れているプログラムテキストの中から指定された
レベル及び属性を持たないプログラム構成要素を
取り出して表示させる(第5図ステツプ25)。例
えばユーザが(レベル≧1)、(%)を指定すると
人間にとつて必要な設計情報のみが表示される。 When the user inputs a command to instruct display degeneration (deletion) using the coordinate input device 2 (Step 23 in Figure 5), following this command, specifying the level and attribute to be hidden (Step 23). 5
At step 24 in FIG. 5, the control section 1 retrieves program components that do not have the specified level and attributes from the program text stored in the memory 5 and displays them (step 25 in FIG. 5). For example, if the user specifies (level≧1) and (%), only design information necessary for humans will be displayed.
本実施例においてはユーザが座標入力装置2を
介してプリンタ4への出力形式の指定も出来る。
ユーザが先ずプリンタの出力形式のコマンドを入
力した後(第5図ステツプ26)、出力形式の指定
を行なうが(第5図ステツプ27)この指定にはプ
ログラム構成要素を出力する際に第2図に示す様
なベタ書き形式で出力するか、又は第3図に示す
様な木構造形式にして出力するか等を指定するも
のである。制御部1は指定された出力形式に従つ
てプログラム構成要素をプリンタ4へ出力する
(第5図ステツプ28)。 In this embodiment, the user can also specify the output format to the printer 4 via the coordinate input device 2.
The user first inputs a command for the printer's output format (Step 26 in Figure 5), and then specifies the output format (Step 27 in Figure 5). It specifies whether to output in a solid format as shown in Figure 3 or in a tree structure format as shown in Figure 3. The control section 1 outputs the program components to the printer 4 in accordance with the specified output format (step 28 in FIG. 5).
ユーザが上述した編集作業を終了すると座標入
力装置2より終了コマンドを入力する(第5図ス
テツプ29)。このコマンドが入力されると制御部
1はメモリ5内に格納されているプログラムテキ
ストを図示しない制御部1内の補助記憶装置(フ
ロツピーデイスク等)へ書き込んで(第5図ステ
ツプ30)。一連の処理を終了する。 When the user finishes the editing work described above, he inputs an end command from the coordinate input device 2 (step 29 in FIG. 5). When this command is input, the control unit 1 writes the program text stored in the memory 5 to an auxiliary storage device (such as a floppy disk) in the control unit 1 (not shown) (step 30 in FIG. 5). Finish the series of processing.
尚、ユーザが上述した第5図のステツプ13、
17、20、23、26、29に該当するコマンドのいずれ
も入力しない場合は、制御部1がデイスプレイ3
にエラーメツセージを出力する(第5図ステツプ
31)。 It should be noted that the user has performed step 13 in FIG. 5 mentioned above.
If none of the commands corresponding to 17, 20, 23, 26, or 29 are input, the control unit 1
(Step 5 in Figure 5)
31).
以上詳述した様に、ユーザは、前記木構造情報
からそのプログラムテキストの全体的な構成を把
握しながら作製・編集対象とするプログラム構成
要素をそのレベルと属性とに応じてデイスプレイ
表示して所望とする処理を対話的に行うことが可
能となる。このことは指定した属性を持つプログ
ラムテキストの中で目的とする部分のプログラム
構成要素をユーザが参照可能なことを意味し、指
定以外の属性をつプログラムテキストはその時点
で不必要な情報として非表示状態に設定可能なこ
とを意味するので効果的なプログラムの理解・作
成・編集作業が可能となる。そして目的とする部
分に処理焦点を効果的に絞ることが可能となる等
の実用上多大なる効果が奏せられる。 As described in detail above, the user grasps the overall structure of the program text from the tree structure information and displays the program components to be created/edited on the display according to their level and attributes. It becomes possible to perform the processing interactively. This means that the user can refer to the program components of the target part of the program text that has the specified attributes, and program text that has attributes other than the specified attributes is ignored as unnecessary information at that point. This means that the display state can be set, making it possible to effectively understand, create, and edit programs. In addition, great practical effects can be achieved, such as being able to effectively narrow down the processing focus to a target portion.
尚、本発明は上記実施例に限定されるものでは
ない。例えば1まとまりのプログラム構成要素毎
に定義されるレベルはそのプログラムテキストの
構造に応じて定めればよい。つまり木構造を更に
階層化することを勿論可能である。又、このよう
な木構造に応じてプログラム構成要素の出力表示
順序(上位レベル→下位レベル、下位レベル→上
位レベル)を変えることも可能である。更にプロ
グラム構成要素の属性は設計情報とソースプログ
ラム・コードの2種類には限定されず2個以上で
も可能である。本発明の思想を文書作成装置の応
用することも可能であり、要するに本発明はその
要旨を逸脱しない範囲で種々変形して実施するこ
とができる。 Note that the present invention is not limited to the above embodiments. For example, the level defined for each set of program components may be determined according to the structure of the program text. In other words, it is of course possible to further hierarchize the tree structure. It is also possible to change the output display order of program components (upper level→lower level, lower level→upper level) according to such a tree structure. Furthermore, the attributes of a program component are not limited to two types, design information and source program code, but can include two or more. It is also possible to apply the idea of the present invention to a document creation device, and in short, the present invention can be implemented with various modifications without departing from the gist thereof.
第1図は本発明の一実施例の概略構成図、第2
図はプログラムテキスト及び木構造情報の例を示
す図、第3図はプログラムテキストの木構造を模
式的に示す図、第4図はプログラム構成要素の表
示例を示す図、第5図は本実施例の制御部の動作
フロー図である。
1……制御部、2……座標入力装置、3……デ
イスプレイ、4……プリンタ、5……メモリ。
FIG. 1 is a schematic configuration diagram of an embodiment of the present invention, and FIG.
The figure shows an example of the program text and tree structure information, Figure 3 schematically shows the tree structure of the program text, Figure 4 shows an example of display of program components, and Figure 5 shows the implementation of this implementation. FIG. 3 is an operation flow diagram of an example control unit. 1...Control unit, 2...Coordinate input device, 3...Display, 4...Printer, 5...Memory.
Claims (1)
ストの1まとまりの構成要素毎に、このプログラ
ムテキストを木構造化する手段と、 この手段により木構造化された前記構成要素毎
に、この構成要素の木構造における内容の詳細度
を表わすレベル及び構成要素の種類を表わす属性
を指定する手段と、 この手段により前記レベル及び属性が指定され
た前記構成要素の中から所望のレベルあるいは属
性に対応する構成要素のみを選択的に出力表示す
る手段とを具備することを特徴とするプログラム
作成装置。[Scope of Claims] 1. An input means for inputting a program text; A means for converting the program text inputted by the input means into a tree structure for each constituent element; means for specifying a level representing the level of detail of the content in the tree structure of this component and an attribute representing the type of the component, for each of the component elements, and the configuration in which the level and attributes are specified by this means. 1. A program creation device comprising means for selectively outputting and displaying only constituent elements corresponding to a desired level or attribute from among the elements.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59201518A JPS6180332A (en) | 1984-09-28 | 1984-09-28 | Forming device of program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59201518A JPS6180332A (en) | 1984-09-28 | 1984-09-28 | Forming device of program |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6180332A JPS6180332A (en) | 1986-04-23 |
JPH0340410B2 true JPH0340410B2 (en) | 1991-06-18 |
Family
ID=16442371
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59201518A Granted JPS6180332A (en) | 1984-09-28 | 1984-09-28 | Forming device of program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6180332A (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5428554A (en) * | 1992-09-03 | 1995-06-27 | International Business Machines Corporation | Hierarchical graph analysis method and apparatus |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58223864A (en) * | 1982-06-23 | 1983-12-26 | Toshiba Corp | Production and display system of problem structure chart |
JPS59734A (en) * | 1982-06-28 | 1984-01-05 | Hitachi Ltd | Process controller |
-
1984
- 1984-09-28 JP JP59201518A patent/JPS6180332A/en active Granted
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58223864A (en) * | 1982-06-23 | 1983-12-26 | Toshiba Corp | Production and display system of problem structure chart |
JPS59734A (en) * | 1982-06-28 | 1984-01-05 | Hitachi Ltd | Process controller |
Also Published As
Publication number | Publication date |
---|---|
JPS6180332A (en) | 1986-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS61229168A (en) | Generation of graph using computer | |
JPH0340410B2 (en) | ||
US5867700A (en) | Information processing apparatus and method for displaying a first window displaying a list of names of attribute information and a second window displaying search and substitution command columns | |
JPS63131229A (en) | Processing procedure creation processing method | |
JP2764826B2 (en) | Inductive input method | |
JPS62145424A (en) | Program management method | |
JP3144235B2 (en) | Figure creation device | |
JP3737884B2 (en) | Horizontal writing conversion processing apparatus and method | |
JPH06274482A (en) | Character processing method and device | |
JPS59123043A (en) | Clean copy processor | |
JP2576371B2 (en) | Jump signal name assignment method | |
JP2823188B2 (en) | Information processing apparatus and method | |
JP2757367B2 (en) | Character processor | |
JPH03177966A (en) | Document editing device | |
JPH0814824B2 (en) | Document logical structure editing device | |
JPH0696145A (en) | Processing system for character string/graphic | |
JPH086928A (en) | Method and device for processing document | |
JPS59125406A (en) | Automatic computer programming device | |
JP2002133051A (en) | Device for preparing business model | |
JPH05334295A (en) | Screen editor with fair copy function | |
JPH0462671A (en) | Supporting device for preparing information processing system design specification | |
JPH0816555A (en) | Device and method for processing document | |
JPH1011514A (en) | Table preparing method | |
JPH01303572A (en) | Menu producing device | |
JP2002238157A (en) | Data file forming apparatus in simulation system for transmission line system |