JPH02137026A - Fair copy processing system for program - Google Patents

Fair copy processing system for program

Info

Publication number
JPH02137026A
JPH02137026A JP29025288A JP29025288A JPH02137026A JP H02137026 A JPH02137026 A JP H02137026A JP 29025288 A JP29025288 A JP 29025288A JP 29025288 A JP29025288 A JP 29025288A JP H02137026 A JPH02137026 A JP H02137026A
Authority
JP
Japan
Prior art keywords
sentence
information
level
nest
information table
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
JP29025288A
Other languages
Japanese (ja)
Inventor
Chikayoshi Yui
湯井 京美
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP29025288A priority Critical patent/JPH02137026A/en
Publication of JPH02137026A publication Critical patent/JPH02137026A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To comprehend the nest relation among blocks or groups at a glance even when any program of a deep nest level is copied out fair by increasing or reducing the next level and outputting this level to a list when the block and group nest levels are deepened. CONSTITUTION:An input program text 7 is decomposed into each sentence via a sentence setting means 1, and the program images of the sentences excluding the undesired immediately preceding blank are successively set to the sentence information stored in a sentence information table 8. A sentence information table setting means 2 is started after an end code to the sentence information. Then the information on the switching stage number is inputted via an external parameter 10 and at the same time a nest level switch deciding means 3 is started to decide whether the sentence information on the table 8 has the end code or not. If not, the sentence information, the nest level information, and the sentence title information are taken out of the table 8 and sent to a nest level increasing process means 4 and a nest level reducing process means 5. Then these information are displayed on a list 9 after a prescribed process.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は原始プログラムの1M書処理に関し、特にブロ
ック及びグループのネスト関係を見やすく清書してリス
トに出力する場合のプログラムの清書処理方式に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to 1M write processing of a source program, and particularly to a program cleanup processing method when the nested relationships of blocks and groups are formatted in an easy-to-read manner and output to a list.

[従来の技術] 従来、この種の原始プログラムのブロック及びグループ
のネスト関係を見やすく清書しリストの出力する処理は
、ブロック及びグループの開始文と終了文を縦線で結ぶ
が、あるネストレベルをオーバーするとブロック及びグ
ループの開始文と終J′文を縦線で結ぶことを中止して
いた。
[Prior Art] Conventionally, in the process of tidying up and outputting a list of nested relationships between blocks and groups in this type of source program in an easy-to-read manner, the start and end statements of blocks and groups are connected with vertical lines. If the number exceeds the limit, connecting the start sentence and the end J' sentence of a block or group with a vertical line is stopped.

[発明が解決しようとする課題] 上述した従来のブロック及びグループの開始文と終γ文
を縦線で結ぶ処理方式では、あるネストレベルをオーバ
ーするとそれ以降のネストの深いプログラムイメージに
対してネストの関係が表示されずブロック或はグループ
のネスト関係を一目で理解できないという欠点がある。
[Problems to be Solved by the Invention] In the conventional processing method described above that connects the start statement and the end γ statement of a block or group with a vertical line, when a certain nesting level is exceeded, the nesting is disabled for deeply nested program images after that. The problem is that the relationships among blocks or groups are not displayed, making it difficult to understand the nesting relationships between blocks or groups at a glance.

そこで、本発明の技術的課題は、上記欠点に鑑み、ブロ
ック或はグループのネスト関係を一目で理解できるプロ
グラム清書方式を提供することである。
SUMMARY OF THE INVENTION In view of the above drawbacks, it is a technical object of the present invention to provide a program cleanup method that allows the nesting relationships of blocks or groups to be understood at a glance.

[課題を解決するための手段] 原始プログラムのブロック及びグループのネスト関係を
みやすく清書しリストに出力するプログラム清書処理方
式において、入力したプログラムテキストを構成する文
のプログラムイメージを示す文情報と、この文のネスト
レベルを示すネストレベル情報と、この文のタイプを示
す文タイプ情報とをtjfつ文情報テーブルと、入力し
たプログラムテキストを文単位に分解し直前の余分な空
白を除いた文のプログラムイメージを前記文情報テブル
に設定する文設定手段と、該文設定手段により設定され
た前記文情報テーブル内の文情報に該当する文タイプと
ネストレベルを決定し、この文タイプとネストレベルを
前記文情報テーブル文情報に関連づけて前記文情報テー
ブルに設定する文情報テーブル設定手段と、切り替え段
数の情報を外部パラメータより人力し前記文設定手段に
より設定された文情報テーブルの文情報と文情報テーブ
ル設定手段により設定されたネストレベル情報と文タイ
プ情報と前記切り替え段数の情報とにより、ネストレベ
ルを切り上げるかまた切り下げる必要があるか或はその
必要かないかを判定するネストレベル切り替え判定手段
と、該ネストレベル切り替え判定手段によりネストレベ
ルを切り上げる必要があると判定された場合に、前記文
情報テーブルのネストレベル情報と前記切り替え段数に
よりネストレベルの切り上げ表示をリストに出力するネ
ストレベル切り上げ処理手段と、前記ネストレベル切り
替え判定手段によりネストレベルを切り下げる必要があ
ると判定された場合に、前記文情報テーブルのネストレ
ベル情報と前記切り替え段数によりネストレベルの切り
下げ表示をリストに出力するネストレベル切り下げ処理
手段と、清書後のプログラムを出力する領域の先頭より
前記文情報テーブル設定手段により設定された文情報テ
ーブルのネストレベル情報と切りえ段数の値より求めら
れた値分縦線を設定し、この直後に前記文設定手段にて
設定された前記文情報テーブルの文情報を設定しリスト
に出力するリスト出力手段とを有することを特徴とする
プログラム清書処理方式が得られる。
[Means for Solving the Problems] In a program cleanup processing method that cleans up the nest relationships of blocks and groups of a source program in an easy-to-read format and outputs it in a list, sentence information indicating a program image of sentences constituting an input program text and this A statement information table containing nesting level information indicating the nesting level of a statement and statement type information indicating the type of this statement, and a statement program in which the input program text is broken down into sentences and extra blanks immediately before them are removed. a sentence setting means for setting an image in the sentence information table; and determining a sentence type and nesting level corresponding to the sentence information in the sentence information table set by the sentence setting means; Sentence information table A sentence information table setting means that sets the sentence information in the sentence information table in association with the sentence information, and a sentence information table and a sentence information table that manually inputs information on the number of switching stages from an external parameter and is set by the sentence setting means. nest level switching determining means for determining whether or not it is necessary to round up or down the nest level based on the nest level information, sentence type information, and information on the number of switching stages set by the setting means; nest level round-up processing means for outputting a nest level round-up display to a list based on the nest level information of the sentence information table and the number of switching stages when it is determined by the nest level switching determination means that the nest level needs to be rounded up; nest level devaluation processing means for outputting a nest level devaluation display to a list based on the nest level information of the sentence information table and the number of switching stages when it is determined by the nest level switching determination means that it is necessary to devalue the nest level; , from the beginning of the area where the cleaned up program is output, a vertical line is set by the value determined from the nest level information and the number of cutting stages of the sentence information table set by the sentence information table setting means, and immediately after this, There is obtained a program fairwriting processing method characterized by comprising list output means for setting the sentence information in the sentence information table set by the sentence setting means and outputting it to a list.

[実施例] 次に、本発明の一実施例について図面を参照し一〇説明
する。
[Example] Next, an example of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を構成するブロック図である
FIG. 1 is a block diagram configuring an embodiment of the present invention.

本実施例のプログラム清書処理方式は、文設定手段1と
、文情報テーブル設定手段2と、ネストレベル切り替え
判定手段3と、ネストレベル切り上げ処理手段4と、ネ
ストレベル切り下げ処理手段5と、リスト出力手段6と
、プログラムテキスト7と、文情報テーブル8と、リス
ト9と、外部パラメータ10とで構成されている。
The program cleanup processing method of this embodiment includes a sentence setting means 1, a sentence information table setting means 2, a nest level switching judgment means 3, a nest level rounding up processing means 4, a nest level rounding down processing means 5, and a list output. It is composed of a means 6, a program text 7, a statement information table 8, a list 9, and an external parameter 10.

第2図は第1図における文情報テーブル設定手段2の動
作を示すフローチャート図である。
FIG. 2 is a flowchart showing the operation of the text information table setting means 2 in FIG.

第゛う図は第1図におけるネストレベル切り替え判定手
段3の動作を示すフローチャート図である。
The second figure is a flowchart showing the operation of the nest level switching determination means 3 in FIG.

第4図は文情報テーブル8の詳細を示す。FIG. 4 shows details of the sentence information table 8.

文情報テーブル8はプログラムテキスト7を構成する文
のプログラムイメージの情報を示す文情報とこの文のネ
ストレベルの情報を示すネストレベル情報とこの文のタ
イプを示す文タイプ情報とて構成されている。
The sentence information table 8 is composed of sentence information indicating program image information of the sentences constituting the program text 7, nesting level information indicating the nesting level of this sentence, and sentence type information indicating the type of this sentence. .

第5図(Ht)、(b)は本発明をPL/I言語にて書
かれた原始プログラムに実施した場合の出力されるリス
トの一例である。
FIGS. 5(Ht) and 5(b) are examples of lists output when the present invention is applied to a source program written in the PL/I language.

次に本実施例の全体的な動作を具体的に説明する。Next, the overall operation of this embodiment will be specifically explained.

文設定手段1は、プログラムテキスト7を入力し全ての
プログラムテキスト7を文単位に分解し、直前の余分な
空白を除いた文のプログラムイメージを次々に文情報テ
ーブル8内の文情報に設定し、終えたら文情報テーブル
8内の文情報に終了コードを設定し、文情報テーブル設
定手段2を起動する。
The sentence setting means 1 inputs the program text 7, decomposes all the program texts 7 into sentence units, and sets program images of the sentences one after another, excluding the immediately preceding extra blanks, to the sentence information in the sentence information table 8. , when finished, sets an end code to the sentence information in the sentence information table 8, and starts the sentence information table setting means 2.

文情報テーブル設定手段2は文設定手段1より起動され
、第2図に示された処理終了後ネストレベル切り替え判
定手段3を起動する。
The sentence information table setting means 2 is activated by the sentence setting means 1, and after the processing shown in FIG. 2 is completed, the nest level switching determination means 3 is activated.

文情報テーブル設定手段2の動作を第2図に示す。ここ
で、文のネストレベルを示すデータをAとする。
The operation of the sentence information table setting means 2 is shown in FIG. Here, let A be data indicating the nesting level of a sentence.

ステップC2でAに初期値0を設定する。ステップC3
で文設定手段1にて設定された文情報テーブル8の文情
報が終了コードであるか判定し、終了コードであれば、
全ての文情報テーブル8の文情報の処理が終了したので
、ステップC4にて処理を終rし、終了コードでなけれ
ば、ステップC5へ制御を渡す。次に、ステップC5に
て文情報テーブル8の文情報を取り出す。次に、ステッ
プC6でステップC5にて取り出した文情報テーブル8
の文情報が、ブロック或はグループの開始文または終了
文であるかそれ以外であるかを判定し、この文情報に対
応する文情報テーブル8の文タイプ情報に設定する。次
に、ステップC7でステップC6にて設定された文情報
テーブル8の文タイプ情報が、ブロック或はグループの
終了文か判定し、そうであればステップC8へ制御を渡
し、そうでなければステップC9へ制御を渡す。次に、
ステップC8では、ステップC5にて取り出した文情報
テーブル8の文情報が、ブロック或はグループの終了文
であるので、Aの値を−1し、ステップC9に制御を渡
す。ステップC9では、ステップC5にて取り出した文
情報テーブル8の文情報に対応する文情報テーブル8の
ネストレベル情報域にAの値を設定する。次に、ステッ
プCIOでは、ステップC6にて設定された文情報テー
ブル8の文タイプ情報がブロック或はグループの開始文
か判定し、そうであればステップC11へ制御を渡し、
そうでなければステップC3に制御を渡し、以降の処理
を繰り返す。次に、ステップC1lではステップC5に
て取り出した文情報テーブル8の文情報が、ブロック或
はグループの開始文であるので、Aの値を+1し、ステ
ップC3(j制御を渡し、以降の処理を繰り返す。
In step C2, A is set to an initial value of 0. Step C3
It is determined whether the sentence information in the sentence information table 8 set by the sentence setting means 1 is an end code, and if it is an end code,
Since the processing of the sentence information of all the sentence information tables 8 has been completed, the process is terminated at step C4, and if the code is not an end code, control is passed to step C5. Next, in step C5, the sentence information from the sentence information table 8 is extracted. Next, in step C6, the sentence information table 8 extracted in step C5
It is determined whether the sentence information is the start sentence or end sentence of a block or group or something else, and the sentence type information of the sentence information table 8 corresponding to this sentence information is set. Next, in step C7, it is determined whether the sentence type information in the sentence information table 8 set in step C6 is the end sentence of a block or group, and if so, control is passed to step C8, and if not, control is passed to step C8. Transfer control to C9. next,
In step C8, since the sentence information in the sentence information table 8 extracted in step C5 is the end sentence of the block or group, the value of A is decremented by 1 and control is passed to step C9. In step C9, the value A is set in the nest level information area of the sentence information table 8 corresponding to the sentence information in the sentence information table 8 extracted in step C5. Next, in step CIO, it is determined whether the sentence type information in the sentence information table 8 set in step C6 is the start sentence of a block or group, and if so, control is passed to step C11,
Otherwise, control is passed to step C3 and the subsequent processing is repeated. Next, in step C1l, since the sentence information in the sentence information table 8 retrieved in step C5 is the start sentence of a block or group, the value of A is incremented by 1, and step C3 (j control is passed and subsequent processing repeat.

ネストレベル切り替え判定手段3は、文情報テーブル設
定手段2より起動され、切り替え段数の情報を外部パラ
メータ10より人力する。ネストレベル切り替え判定手
段3の動作を第3図に示す。
The nest level switching determination means 3 is activated by the sentence information table setting means 2 and manually inputs information on the number of switching stages from an external parameter 10. The operation of the nest level switching determination means 3 is shown in FIG.

ステップD2において、文設定手段1にて設定された文
情報テーブル8の文情報が、終了コードであるか判定し
、終了コードであれば、全ての文情報テーブル8の文情
報の処理が終了したので、ステップD3にて処理を終了
し、終了コードでなければステップD4へ制御を渡す。
In step D2, it is determined whether the sentence information of the sentence information table 8 set by the sentence setting means 1 is an end code, and if it is an end code, the processing of the sentence information of all the sentence information tables 8 has been completed. Therefore, the process ends in step D3, and if the code is not an end code, control is passed to step D4.

次に、ステップD4にて文情報テーブル8の文情報・ネ
ストレベル情報・文タイプ情報を取り出す。次に、ステ
ツブDうでステップD4にて取り出した文タイプ情報よ
り、ブロック或はグループの開始文かまたは終了文であ
るか判定し、そうであればステップD6へ制御を渡し、
そうでなければステップD8へ制御を渡す。次に、ステ
ップD6でステップD4にて取り出した文情報テーブル
8のネストレベル情報の値を切り替え段数の値で割った
余りを、Bに設定し、次のステップD7にて、切り替え
段数の値より−1した値とBが等しいか判定し、等しけ
ればステップD9へ制御を渡し、等しくなければステッ
プD8に制御を渡す。ステップD8はステップD4にて
取り出した文情報テーブル8の文情報をリスト9に出力
するため、リススト出力f段6を起動し、その後ステッ
プD2に制御を渡し以降の処理を繰り返す。ステップD
9ではステップD4にて取り出した文情報テーブル8の
文タイプ情報より、ブロック或はグループの開始文であ
るか判定し、そうであればステップDIOへ制御を渡し
、そうでなければステップDI2へ制御を渡す。ステッ
プD10にてネストレベルを切り上げるためステップD
4にて取り出した文情報テーブル8の文情報を出力する
ため、リスト出力手段6を起動し、その後制御をステッ
プDllに渡す。ステップD11ではネストレベルの切
り上げ表示を出力するため、ネストレベル切り上げ処理
手段4を起動し、その後、ステップD2に制御を渡し以
降の処理を繰り返す。ステップD12にてネストレベル
を切り下げるためネストレベルの切り下げ表示を出力す
るため、ネストレベル切り下げ処理手段5を起動し、そ
の後ステップD13に制御を渡す。ステップD13では
、ステップD4にて取り出した文情報テーブル8の文情
報を出力するため、リスト出力手段6を起動し、その後
ステップD2に制御を渡し以降の処理を繰り返す。
Next, in step D4, sentence information, nest level information, and sentence type information from the sentence information table 8 are extracted. Next, based on the sentence type information extracted in step D4, step D determines whether it is the start sentence or end sentence of a block or group, and if so, passes control to step D6,
Otherwise, control is passed to step D8. Next, in step D6, the remainder obtained by dividing the value of the nest level information of the sentence information table 8 retrieved in step D4 by the value of the number of switching stages is set to B, and in the next step D7, the value of the number of switching stages is calculated. It is determined whether the -1 value and B are equal, and if they are equal, control is passed to step D9, and if not, control is passed to step D8. Step D8 starts the list output stage f 6 in order to output the sentence information of the sentence information table 8 extracted in step D4 to the list 9, and then passes control to step D2 and repeats the subsequent processing. Step D
In step 9, it is determined whether it is the start sentence of a block or group based on the sentence type information in the sentence information table 8 taken out in step D4, and if so, control is passed to step DIO, otherwise control is passed to step DI2. give. In order to round up the nest level in step D10, step D
In order to output the sentence information of the sentence information table 8 retrieved in step 4, the list output means 6 is activated, and then control is passed to step Dll. In step D11, the nest level rounding up processing means 4 is started in order to output a nest level rounding up display, and then control is passed to step D2 and the subsequent processes are repeated. In step D12, the nest level devaluation processing means 5 is activated to output a nest level devaluation display in order to devalue the nest level, and then control is passed to step D13. In step D13, the list output means 6 is started in order to output the sentence information of the sentence information table 8 extracted in step D4, and then control is passed to step D2 and the subsequent processes are repeated.

ネストレベル切り上げ処理手段4は、文情報テーブル8
の文情報をリスト9に出力する時に、ネストレベルの切
り上げ表示を出力する必要があると判定された場合に、
ネストレベル切り替え判定手段3より起動され、ネスト
レベル切り上げ表示を出力するため、ネストレベル切り
替え判定手段3にて取り出された文情報テーブル8のネ
ストレベル情報の値より次のEとFの値を求める。
The nest level rounding up processing means 4 uses the sentence information table 8.
When outputting sentence information to List 9, if it is determined that it is necessary to output the nesting level rounded up display,
It is activated by the nest level switching determining means 3 to calculate the next values of E and F from the nest level information values of the sentence information table 8 extracted by the nesting level switching determining means 3 in order to output a nest level round-up display. .

E−(ネストレベル)+1 F−E−(切り替え段数)+1 次に、清書後のプログラムを出力する領域の先頭よりF
の値に+1づつした数字を丸で囲った切り替え段数分の
文字を、設定しりスト9に出力し、次に、清書後のプロ
グラムを出力する領域の先頭に、Eの値に+1した数字
を丸で囲った文字を設定し、リスト9に出力する。ネス
トレベル切りドげ処理手段5は、文情報テーブル8の文
情報をリスト9に出力する時に、ネストレベルの切り下
げ表示を出力する必要があると判定された場Cに、ネス
トレベル切り替え判定手段3より起動され、ネストレベ
ル切り下げ表示を出力するため、文情報テーブル8のネ
ストレベル情報の値より次のGとHの値を求める。
E- (nest level) +1 F-E- (number of switching stages) +1 Next, from the beginning of the area where the clean-written program is output,
Output the number corresponding to the number of switching stages by enclosing the number +1 to the value of E to the setting list 9, and then add the number +1 to the value of E at the beginning of the area where the cleaned up program is output. Set the circled characters and output them to List 9. When outputting the sentence information in the sentence information table 8 to the list 9, the nest level devaluation processing means 5 executes the nest level change determination means 3 when it is determined that it is necessary to output a devaluation display of the nest level. The next G and H values are determined from the nest level information values in the sentence information table 8 in order to output a nest level devaluation display.

G−(ネストレベル)+1 H−G−(切り替え段数)+1 ’/I!f書後のプログラムを出力する領域の先頭にG
の値に+1した数字を丸で囲った文字を設定し、リスト
9に出力し、次に、清書後のプログラムを出力する領域
の先頭よりHの値に+1づつした数字を丸で囲った切り
替え段数分の文字を設定し、リスト9に出力する。
G- (nest level) +1 H-G- (number of switching stages) +1 '/I! G at the beginning of the area where the program is output after the f file
Set a circled number that is +1 to the value of H, and output it to List 9. Next, set a circled number that is +1 to the value of H from the beginning of the area where the cleaned up program is output. Set characters for the number of columns and output to list 9.

リスト出力手段6は、ネストレベル切り替え判定手段3
にて取り出した文情報テーブル8の文情報を清書後ξリ
スト9に出力するために起動され、li’i4F後のプ
ログラムを出力する領域の先頭より文情報テーブル8の
ネストレベル情報の値を切り替え段数で割った余りの値
分縦線を設定し、この直後に文情報テーブル8の文情報
を設定しりスト9に出力する。
The list output means 6 includes the nest level switching determination means 3.
It is activated in order to output the sentence information of the sentence information table 8 extracted in the ξ list 9 after the cleanup, and the value of the nest level information of the sentence information table 8 is switched from the beginning of the area where the program after li'i4F is output. Vertical lines are set by the value of the remainder after dividing by the number of columns, and immediately after this, the sentence information in the sentence information table 8 is output to the setting list 9.

[発明の効果] 以上説明したように、本発明は、原始プログラムのブロ
ック及びグループのネスト関係見やすく清書しリストに
出力する処理において、ブロック及びグループのネスト
が深くなった場合、ネストレベルを切り上げたり切り下
げたりしてリストに出力することにより、ブロック及び
グループの開始文と終了文を縦線で結ぶだけの方式より
も、どんなにネストレベルの深いプログラムを書いても
、ブロック或はグループのネストの関係が表示されるの
で、ブロック或はグループのネストの関係が一目で理解
できる効果がある。
[Effects of the Invention] As explained above, the present invention is capable of rounding up the nesting level when the nesting of blocks and groups becomes deep in the process of formatting and outputting the nested relationships of blocks and groups of a source program in an easy-to-read list. By rounding down and outputting to a list, the relationship between the nesting of blocks or groups can be improved, no matter how deep the program is written. is displayed, which has the effect of allowing you to understand the nesting relationships of blocks or groups at a glance.

0・・・外部パラメータ。0...External parameter.

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

第1図は本発明のプログラム清書処理方式の一実施例を
示す構成図、第2図は第1図の文情報テーブル設定手段
の動作を示すフローチャート図、第3図は第1図のネス
トレベル切り替え判定手段の動作を示すフローチャート
図、第4図は文情報テーブルを構成する要素を示す構成
要素図、第5図は本実施例を実施した場合の出力される
リストの一例である。 〕・・・文設定手段、2・・・文情報テーブル設定手段
、3・・・ネストレベル切り替え判定手段、4・・・ネ
ストレベル切り上げ処理手段、5・・・ネストレベル切
り下げ処理手段、6・・・リスト出力手段、7・・・プ
ログラムテキスト、8・・・文情報テーブル、9・・・
リスト、第 図 第 図 第 冥施憧の出力リスト 切り讐え段室が5の場合 第4図 文情報テーブル 第 図 (Q) (C)
FIG. 1 is a block diagram showing an embodiment of the program cleanup processing method of the present invention, FIG. 2 is a flowchart showing the operation of the text information table setting means of FIG. 1, and FIG. 3 is a nest level diagram of FIG. 1. FIG. 4 is a flowchart showing the operation of the switching determination means, FIG. 4 is a component diagram showing the elements constituting the sentence information table, and FIG. 5 is an example of a list output when this embodiment is implemented. ]... Sentence setting means, 2... Sentence information table setting means, 3... Nest level switching determination means, 4... Nest level rounding up processing means, 5... Nest level rounding down processing means, 6. ...List output means, 7.Program text, 8.Text information table, 9..
List, Fig. Fig. Fig. 2. Output list of meishi admiration When number of rooms is 5 Fig. 4 Text information table Fig. (Q) (C)

Claims (1)

【特許請求の範囲】 1)原始プログラムのブロック及びグループのネスト関
係をみやすく清書しリストに出力するプログラム清書処
理方式において、 入力したプログラムテキストを構成する文のプログラム
イメージを示す文情報と、この文のネストレベルを示す
ネストレベル情報と、この文のタイプを示す文タイプ情
報とを持つ文情報テーブルと、 入力したプログラムテキストを文単位に分解し直前の余
分な空白を除いた文のプログラムイメージを前記文情報
テーブルに設定する文設定手段と、該文設定手段により
設定された前記文情報テーブル内の文情報に該当する文
タイプとネストレベルを決定し、この文タイプとネスト
レベルを前記文情報テーブル文情報に関連づけて前記文
情報テーブルに設定する文情報テーブル設定手段と、切
り替え段数の情報を外部パラメータより入力し前記文設
定手段により設定された文情報テーブルの文情報と文情
報テーブル設定手段により設定されたネストレベル情報
と文タイプ情報と前記切り替え段数の情報とにより、ネ
ストレベルを切り上げるかまた切り下げる必要があるか
或はその必要がないかを判定するネストレベル切り替え
判定手段と、 該ネストレベル切り替え判定手段によりネストレベルを
切り上げる必要があると判定された場合に、前記文情報
テーブルのネストレベル情報と前記切り替え段数により
ネストレベルの切り上げ表示をリストに出力するネスト
レベル切り上げ処理手段と、 前記ネストレベル切り替え判定手段によりネストレベル
を切り下げる必要があると判定された場合に、前記文情
報テーブルのネストレベル情報と前記切り替え段数によ
りネストレベルの切り下げ表示をリストに出力するネス
トレベル切り下げ処理手段と、 清書後のプログラムを出力する領域の先頭より前記文情
報テーブル設定手段により設定された文情報テーブルの
ネストレベル情報と切り替え段数の値より求められた値
分縦線を設定し、この直後に前記文設定手段にて設定さ
れた前記文情報テーブルの文情報を設定しリストに出力
するリスト出力手段とを有することを特徴とするプログ
ラム清書処理方式。
[Claims] 1) In a program cleanup processing method that cleans up the nest relationships of blocks and groups of a source program in an easy-to-read format and outputs it in a list, sentence information indicating a program image of a sentence constituting an input program text and this sentence are provided. A statement information table that has nesting level information indicating the nesting level of this statement, and statement type information indicating the type of this statement, and a program image of the statement after breaking down the input program text into sentences and removing extra spaces immediately before them. A sentence setting means to be set in the sentence information table, and a sentence type and nesting level corresponding to the sentence information in the sentence information table set by the sentence setting means are determined, and this sentence type and nesting level are set in the sentence information. A sentence information table setting means for setting the sentence information table in association with table sentence information, and a sentence information table setting means for inputting information on the number of switching stages from an external parameter and setting the sentence information of the sentence information table set by the sentence setting means. a nest level switching determination means for determining whether it is necessary to round up or down the nest level, or whether there is no need to round up the nest level, based on the nest level information set by the nest level information, the sentence type information, and the information on the number of switching stages; a nest level round-up processing means for outputting a nest level round-up display to a list based on the nest level information of the sentence information table and the number of switching stages when the level switching determination means determines that the nest level needs to be rounded up; nest level devaluation processing means for outputting a nest level devaluation display to a list based on the nest level information of the sentence information table and the number of switching stages when it is determined by the nest level switching determination means that it is necessary to devalue the nest level; A vertical line is set from the beginning of the area for outputting the program after cleansing by a value determined from the nest level information of the sentence information table set by the sentence information table setting means and the value of the number of switching stages, and immediately after this, the sentence is A program fairwriting processing method comprising: list output means for setting the sentence information of the sentence information table set by the setting means and outputting it to a list.
JP29025288A 1988-11-18 1988-11-18 Fair copy processing system for program Pending JPH02137026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29025288A JPH02137026A (en) 1988-11-18 1988-11-18 Fair copy processing system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29025288A JPH02137026A (en) 1988-11-18 1988-11-18 Fair copy processing system for program

Publications (1)

Publication Number Publication Date
JPH02137026A true JPH02137026A (en) 1990-05-25

Family

ID=17753727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29025288A Pending JPH02137026A (en) 1988-11-18 1988-11-18 Fair copy processing system for program

Country Status (1)

Country Link
JP (1) JPH02137026A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013030196A (en) * 2012-10-24 2013-02-07 Toshiba Mitsubishi-Electric Industrial System Corp Program editing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013030196A (en) * 2012-10-24 2013-02-07 Toshiba Mitsubishi-Electric Industrial System Corp Program editing device

Similar Documents

Publication Publication Date Title
ATE211840T1 (en) SYSTEM AND METHOD FOR DETERMINING A PROGRESS STRUCTURE FOR EXECUTING A TASK
JPH01270164A (en) Simulation system
JPS6337478A (en) Designing apparatus utilizing computer
JPH02137026A (en) Fair copy processing system for program
JPH0796311A (en) Blank layout method
JPH0264734A (en) Program fair copy processor
JPH0896080A (en) Optical character reader
JP3192415B2 (en) Statement generation method
JPS63111565A (en) Composition system
JP2840129B2 (en) Method of creating numerical control data for contour machining
JPH01142975A (en) Document preparing device
JP2864974B2 (en) Pattern comparison method
JPH06110440A (en) Outline front file constructing method
JPH0250277A (en) Screening system for binary picture information
JPS63206871A (en) Noise eliminating device for image data
JPH0512389A (en) Graphic processor
JPH04151700A (en) Pattern matching control circuit
JPH10334094A (en) Character recognizing device and recording medium readable by computer in which character recognizing processing program is recorded
JPH0721182A (en) Character processor and its method
JPH02166572A (en) Vector character data processing method
JPH01239640A (en) High speed generating system for plural object programs
JPH01134560A (en) Line length control method
JPH03144856A (en) Changing point time series generation system
JPH01158530A (en) Indent realizing system
JP2001290852A (en) Three-dimensional shape processing method and storage medium stored with program for implementing the same method