JPS63253432A - Editing system for program comment sentence - Google Patents
Editing system for program comment sentenceInfo
- Publication number
- JPS63253432A JPS63253432A JP8827787A JP8827787A JPS63253432A JP S63253432 A JPS63253432 A JP S63253432A JP 8827787 A JP8827787 A JP 8827787A JP 8827787 A JP8827787 A JP 8827787A JP S63253432 A JPS63253432 A JP S63253432A
- Authority
- JP
- Japan
- Prior art keywords
- comment
- sentence
- instruction
- source program
- editing
- 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
Links
- 238000000034 method Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000007792 addition Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はプログラムコメント文エディツトシステムに関
し、特にソースプログラムのコメント文のみに対して追
加、削除、置換を行うためのプログラムコメント文エデ
ィッ1〜システムに関する。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a program comment statement editing system, and in particular to program comment statement editing systems 1 to 1 for adding, deleting, and replacing only comment statements in a source program. Regarding the system.
従来のプログラノ、エディツトシステムは、ソースプロ
グラムのコメント文と命令文とを区別せずに画面エディ
タ等を使用して追加、削減、置換を行えるようにしてあ
り、すでにテストされ内容が正しいソースプログラムに
対してコメント文のみを追加、削除、置換したい場合に
もそのまま適用されている。Conventional programming and editing systems allow additions, reductions, and replacements using a screen editor, etc., without distinguishing between comment statements and instruction statements in a source program. It is also applied as is when you want to add, delete, or replace only comment sentences.
上述した従来のプログラムエディツトシステムでコテン
ト文のみの追加、削除、置換を行う際には、操作ミスな
どにより、命令文を誤って変更してしまう危険性がある
。このため、プログラムの読解性、保守性を向上させる
目的ですでに安定稼動しているプログラムに対しコメン
ト文の加除や修正を施した場合に、命令文の誤変更の有
無を再確認するためのテストが必要となる欠点がある。When adding, deleting, or replacing only a content statement using the conventional program editing system described above, there is a risk that the command statement may be erroneously changed due to an operational error or the like. For this reason, when adding or deleting comment statements or modifying a program that is already running stably in order to improve program readability and maintainability, it is necessary to reconfirm whether there are any erroneous changes to command statements. There are drawbacks that require testing.
上述のような、プログラムの読解性、保守性を向上させ
るためのコメントの補113は、該プログラム1ト成者
が実施するとは限らず、第3者に委託して実施する場合
もあり、ソースプログラムの命令文を保護し得るコメン
ト文エディッI・システムが要望されている。The addition of comments 113 to improve the readability and maintainability of the program as described above is not necessarily carried out by the person who created the program, but may be entrusted to a third party, and the source There is a need for a comment editor system that can protect program instructions.
本発明は、上記の欠点を解決するために、ソースプロク
ラムへのコメント文の追加、削除、置換等の挿入におい
て、ソースプログラムの命令文の変更を不可能とするプ
ログラムコメント文エディツトシステムを提供すること
を目的とする。In order to solve the above-mentioned drawbacks, the present invention provides a program comment statement editing system that makes it impossible to change the command statements of the source program when adding, deleting, replacing, etc., comment statements to the source program. The purpose is to
本発明のエディツトシステムは、エディツトの対象とな
るソースプログラムの命令文およびコメント文を識別す
るための情報を生成する識別手段と、入力されたエディ
ツト要求が前記コメント文のみに対するものであるか否
かを前記識別用情報と照合して判別し該判別結果が肯定
的であれば該エディツト要求に従った処理を実行し否定
的であれば該エディツト要求に従った処理を禁止するエ
ディツト手段とを、備えている。The editing system of the present invention includes an identification means for generating information for identifying instruction statements and comment statements of a source program to be edited, and whether an input edit request is for only the comment statements. an editing means that determines whether the editing information is correct by comparing it with the identification information, and executes processing according to the editing request if the judgment result is positive, and prohibits processing according to the editing request if the judgment result is negative; , is equipped.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。同
図において、システム全体を制御する中央制御ユニット
(以下CPUと略記する)1は、ソースプログラム中の
命令文とコメント文とを識別するための情報を生成する
命令文/コメント文識別モジュール2、ならびに命令文
/コメント文識別モジュール2で生成された識別用情報
を参照してディスプレイ41.キーボード42等の入出
力機器4の操1ヤで入力されるソースプログラムエディ
ツト要求の受入れ処理を行うコメント文エディツトモジ
ュール3に、バス接続されている。FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, a central control unit (hereinafter abbreviated as CPU) 1 that controls the entire system includes an instruction/comment statement identification module 2 that generates information for identifying instruction statements and comment statements in a source program; and the display 41. with reference to the identification information generated by the instruction/comment statement identification module 2. The comment editing module 3 is connected by a bus to a comment editing module 3 that accepts a source program editing request input through an operator of the input/output device 4 such as a keyboard 42.
第2図は本実施例の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of this embodiment.
同図において、ステップ202は命令文/コメント文識
別モジュール2の動作を示し、ステップ203〜207
はコメント文エディツトモジュール3の動作を示す。ス
タート(ステップ201)するとCPUIの制御によっ
て、まず命令文/コメント文識別モジュール2で命令文
/コメント文識別処理を行ない、命令文/コメント文識
別情報を生成する(ステップ2=02)。第3図はP
L 、、/ I等のプログラム雪詰でのソースプログラ
ムを例示するデータ構造図であり、第4図はこれに対応
して生成される命令文/コメント文識別情報を例示する
データ構造図である。第3図において、カラムaおよび
bはそれぞれ命令文1のスタートカラムおよびエンドカ
ラムを、またカラムCおよび(」はコメント文1のスタ
ートカラムおよびエンドカラム、カラムeおよびfは命
令文2のスタートカラムおよびエンドカラム、カラムg
およびhはコメント文2のスタートカラムおよびエンド
カラムを、それぞれ示す。これに対応して生成した命令
文/コメント文識別情報な、第4図に示すように、ソー
スプログラムの各行番号に対応させて命令文およびコメ
ント文の各スタートカラムおよびエンドカラムを表示す
るためのワードを有しており、該プログラム行番号に命
令文またはコメント文がない場合は、その文のスタート
カラムおよびエンドカラムのワード表示を共に“oo“
にする。In the same figure, step 202 indicates the operation of the instruction/comment statement identification module 2, and steps 203 to 207
indicates the operation of the comment text editing module 3. When started (step 201), under the control of the CPUI, the command/comment sentence identification module 2 first performs command/comment sentence identification processing to generate command/comment sentence identification information (step 2=02). Figure 3 is P
FIG. 4 is a data structure diagram illustrating a source program with a full program such as L, , / I, etc., and FIG. 4 is a data structure diagram illustrating instruction/comment statement identification information generated correspondingly. . In Figure 3, columns a and b are the start and end columns of statement 1, respectively, columns C and ( are the start and end columns of comment 1, and columns e and f are the start columns of statement 2. and end column, column g
and h indicate the start column and end column of comment statement 2, respectively. The instruction statement/comment statement identification information generated in response to this is used to display the start column and end column of instruction statements and comment statements in correspondence with each line number of the source program, as shown in Figure 4. If the program line number has a word and there is no command or comment statement, the word display in the start column and end column of that statement are both “oo”.
Make it.
第2図中のソースプログラムエディツト要求受入れ処理
(ステップ203)では、コメント文エディツトモジュ
ール3が、入出力機器4がら入力されるソースプログラ
ムエディツト要求を受入れ、このあとのエディツト要求
解析処理(ステップ204)において、該エディツト要
求がコメント文のみのエディツト要求か、命令文を含む
エディッI・要求かを命令文/コメント文識別情報を参
照して判別し、この判別結果に応じて次ステツプへ移行
する。コメント文のみのエディツト要求の場合には、ソ
ースプログラム更新処理(ステップ2゜5)において、
エディツト要求の内容に従いソースプログラムの更新を
行う。命令文を含むエディツト要求の場合は、エラーメ
ツセージ出力処理(ステップ206)において、入出力
機器4にエラーメツセージを出力して、エディツト要求
を拒否する9全工デイツト操作が終了するまで、ステッ
プ203〜206を巡回実行し、終了時にエンド(ステ
ップ208)の状態になる。In the source program edit request acceptance process (step 203) in FIG. In step 204), it is determined whether the edit request is a comment-only edit request or an edit request that includes an imperative statement by referring to the imperative statement/comment statement identification information, and the process proceeds to the next step according to the determination result. Transition. In the case of a request to edit only comment text, in the source program update process (step 2.5),
The source program is updated according to the contents of the edit request. In the case of an edit request that includes a command statement, an error message is output to the input/output device 4 in the error message output process (step 206), and the edit request is rejected until the complete date operation is completed. Step 206 is executed cyclically, and at the end, the state becomes END (step 208).
以上説明したように本発明は、ソースプログラムの命令
文とコメント文とを識別することにより、コメント文の
みのエディツトを許可して命令文のエディツトを禁止で
き、ソースプログラムのコメンI・文のみの補修時に命
令文の誤変更が発生するのを自動的に防止できる効果が
ある。As explained above, the present invention allows editing of only comment statements and prohibits editing of instruction statements by distinguishing command statements and comment statements of a source program. This has the effect of automatically preventing erroneous changes to instruction statements during repairs.
第1図は本発明の一実施例を示すブロック図、第2図は
本発明の実施例の動作を説明するためのフローチャー1
・、第3図および第4図は本発明の実施例のデータ構造
図である。
1は中央処理ユニット(CPU)、2は命令文/コメン
ト文識別モジュール、3はコメント文エディツトモジュ
ール、4は入出力機器を示す。FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart 1 for explaining the operation of the embodiment of the present invention.
, FIG. 3 and FIG. 4 are data structure diagrams of the embodiment of the present invention. Reference numeral 1 indicates a central processing unit (CPU), 2 indicates a command statement/comment statement identification module, 3 indicates a comment statement editing module, and 4 indicates an input/output device.
Claims (1)
びコメント文を識別するための情報を生成する識別手段
と、入力されたエディット要求が前記コメント文のみに
対するものであるか否かを前記識別用情報と照合して判
別し該判別結果が肯定的であれば該エディット要求に従
った処理を実行し否定的であれば該エディット要求に従
った処理を禁止するエディット手段とを、備えているこ
とを特徴とするプログラムコメント文エディットシステ
ム。an identification means for generating information for identifying command statements and comment statements of a source program to be edited; and checking with the identification information whether the input edit request is for only the comment statement. and an editing means that performs a process according to the edit request if the determination result is positive, and prohibits the process according to the edit request if the determination result is negative. Program comment statement editing system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8827787A JPS63253432A (en) | 1987-04-09 | 1987-04-09 | Editing system for program comment sentence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8827787A JPS63253432A (en) | 1987-04-09 | 1987-04-09 | Editing system for program comment sentence |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63253432A true JPS63253432A (en) | 1988-10-20 |
Family
ID=13938409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8827787A Pending JPS63253432A (en) | 1987-04-09 | 1987-04-09 | Editing system for program comment sentence |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63253432A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5524192A (en) * | 1993-02-09 | 1996-06-04 | International Business Machines Corporation | Simplifying maintaining and displaying of program comments |
-
1987
- 1987-04-09 JP JP8827787A patent/JPS63253432A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5524192A (en) * | 1993-02-09 | 1996-06-04 | International Business Machines Corporation | Simplifying maintaining and displaying of program comments |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63253432A (en) | Editing system for program comment sentence | |
JPS58103023A (en) | Field input system for display terminal | |
JPS6358553A (en) | Display system for error countermeasure of electronic computer system | |
WO1991000557A1 (en) | Nc data execution method | |
JPH0157812B2 (en) | ||
JPH06236246A (en) | Source data editing device for designing slip | |
JPS5870361A (en) | Input controlling system | |
JP2980740B2 (en) | Circuit diagram creation device | |
JPH0350672A (en) | Interactive type text editor | |
JPH06332749A (en) | Register analysis processor | |
JPH01306922A (en) | System for preparing program stepwise for graphical program editor | |
JPS62293354A (en) | Back-up device formation of specialist system | |
JPH04288623A (en) | Editing device | |
JPS6220040A (en) | File updating system | |
JPH0254499A (en) | Write processing system for memory data | |
JPH0715693B2 (en) | Document editing device | |
JPH0390934A (en) | Check system for propriety of document | |
JP2001022817A (en) | Automatic generation device of logic circuit | |
JPH03218146A (en) | Communication program development device | |
JPH02128219A (en) | System generation system using system definition information | |
JPH0231244A (en) | Control system for program check history | |
JPH04178772A (en) | System and method for circuit design backup | |
JPH04195222A (en) | Inspection system for module specifications | |
JPH03136134A (en) | Automatic patch data conversion | |
JPH01109430A (en) | Programming method for computer processing |