JPH04174026A - Specified block editing system of editor - Google Patents

Specified block editing system of editor

Info

Publication number
JPH04174026A
JPH04174026A JP29745890A JP29745890A JPH04174026A JP H04174026 A JPH04174026 A JP H04174026A JP 29745890 A JP29745890 A JP 29745890A JP 29745890 A JP29745890 A JP 29745890A JP H04174026 A JPH04174026 A JP H04174026A
Authority
JP
Japan
Prior art keywords
block
specified
editing
editor
edited
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
JP29745890A
Other languages
Japanese (ja)
Inventor
Yoshikane Tsuchiya
土屋 義兼
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 IC Microcomputer Systems Co Ltd
Original Assignee
NEC IC Microcomputer Systems 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 NEC IC Microcomputer Systems Co Ltd filed Critical NEC IC Microcomputer Systems Co Ltd
Priority to JP29745890A priority Critical patent/JPH04174026A/en
Publication of JPH04174026A publication Critical patent/JPH04174026A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To find an error in its early stage and to shorten the time of program developing operation by inputting the block identifier and block position of an optional block to be edited which is specified by a user in an editor during the editing operation of a source program. CONSTITUTION:An upper-limit and a lower-limit token (identifier) which indicate the range of the block to be processed during the editing of the editor are specified and the depth (nest level) of the block to be edited in the outermost block is specified to determine the block specification range to the lower-limit token by moving a cursor to the upper-limit position. Then only the specified block is extracted as an editing image plane and the editing of only the specified block is enabled. Consequently, an error is found in its early stage and the program development time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、エディタの指定ブロック編集方式に関し、特
にCソース・プログラムの編集方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a designated block editing method for an editor, and particularly to a C source program editing method.

〔従来の技術〕[Conventional technology]

従来のプログラム編集は、ソース・プログラム中でネス
トを許すブロック記述、例えばCソース・プログラム記
述においては、゛(′と′)′、゛(”と゛)″、“/
*″と°’ * / ”および“#if d e f 
”等のコンパイラ制御指示子などのブロック識別子で囲
まれたあるいは対応付けられた部分において、その妥当
性チエツクを行う必要がある。このチエツクは、一連の
ソース・プログラム全体の中からネストされたブロック
構造を目視により行っている。そのためそのチエツクに
時間がかかり、またチエツクミスを生ずることもある。
In conventional program editing, block descriptions that allow nesting in a source program, for example, in a C source program description, ゛(′ and ′)′, ゛(” and ゛)″, “/
*″ and °’ * / ” and “#if d e f
It is necessary to check the validity of parts enclosed in or associated with block identifiers such as compiler control directives such as The structure is checked visually, which takes time and may result in checking errors.

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

従来のプログラム編集においては、ソース・プログラム
中でネストを許すブロック記述、例えばCソース・プロ
グラム記述においては、゛(“と′)″、“(′と“)
′、“= / *l=とI */ ″および’#1fd
ef”等のコンパイラ制御指示子などのブロック識別子
で囲まれたあるいは対応付けられた部分の妥当性チエツ
クは、一連のソース・プログラム全体の中からネストさ
れたブロック構造を目視により行っている。そのためそ
のチエツクに時間がかかり、またチエツクを誤ってしま
うという欠点がある。
In conventional program editing, block descriptions that allow nesting in a source program, for example, in a C source program description,
′, “= / *l= and I */ ” and '#1fd
The validity of parts surrounded by or associated with block identifiers such as compiler control directives such as "ef" is checked by visually inspecting the nested block structure in the entire series of source programs. The disadvantage is that the check takes time and mistakes can be made.

また、コンパイルによるシンタクス・チエツクを行っ°
た場合においても、偶然にブロック構造のバランスが一
致してしまうような時に、そのブロック記述の誤りを発
見し難いという欠点がある。
It also performs a syntax check by compiling.
Even in this case, there is a drawback that it is difficult to discover errors in the block description when the balance of the block structures coincides by chance.

本発明の目的は、これらの欠点を除き、誤りを早期発見
してプログラム開発作業を時間短縮できるエディタの指
定ブロック編集方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a specified block editing method for an editor that can eliminate these drawbacks, detect errors at an early stage, and shorten the time required for program development work.

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

本発明の指定ブロック編集方式の構成は、エディタの編
集中に処理すべきブロックの範囲を示す上限および下限
のトークン(識別子)を指定し、その編集対象のブロッ
クが一番外側のブロックにおける深さ(ネスト・レベル
)を指定することにより、その上限位置にカーソルを移
動させることで対応する下限のトークンまでのブロック
指定範囲を確定し、この指定ブロックのみを編集画面と
して抽比し、その指定ブロックだけを編集できるように
することを特徴とする。
The configuration of the specified block editing method of the present invention is that upper and lower tokens (identifiers) indicating the range of blocks to be processed are specified during editing by the editor, and the block to be edited is at the depth of the outermost block. By specifying the (nest level), move the cursor to the upper limit position to confirm the block specification range up to the corresponding lower limit token, draw only this specified block as an editing screen, and select the specified block. The feature is that only the content can be edited.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を説明するフローチャートで
ある。
FIG. 1 is a flowchart illustrating one embodiment of the present invention.

本実施例の指定ブロック編集方式は、戒ずステップ1で
ニブイト中にブロックの範囲を示す上限及び下限のトー
クン(識別子)を指定し、次にステップ2でブロックの
ネスト・レベルを指定し、これら入力操作の完了後に、
ステップ3で前記入力ブロックのネスト・レベルに一致
する上限のブロック識別子とそれに対応する下限のブロ
ック識別子を捜し出し、ステップ4でそのブロックの範
囲を決定して反転表示またはカラー表示し、ステップ5
でその指定したブロックのみを編集画面として編集を可
能とするものである。
In the specified block editing method of this embodiment, in step 1, upper and lower tokens (identifiers) indicating the range of blocks are specified in the nibut, then in step 2, the nesting level of the block is specified, and these After completing the input operation,
In step 3, the upper limit block identifier and the corresponding lower limit block identifier that match the nesting level of the input block are found, in step 4 the range of the block is determined and displayed in reverse video or in color, and in step 5
This allows you to edit only the specified block on the editing screen.

第2図(a)〜(f)は第1図を説明するためエディタ
にCソースプログラムを読込んな状態、編集状態の画面
表示の一例の表示図、第3図はそのプログラムの流れを
説明するフローチャートである。
Figures 2 (a) to (f) are display diagrams of examples of screen displays in the edit state and when the C source program is not loaded into the editor in order to explain Figure 1, and Figure 3 explains the flow of the program. This is a flowchart.

まず、ステップA1で第2図(a>のようにエディタに
Cソース・プログラムを読み込み、この入力状態あるい
は編集途中の状態11が示される。次にステップA1で
指定ブロックの入力モードを設定するキーを入力し、ス
テップA2で小ウィンド12が表示される。ここで小ウ
ィンド12内にはブロックの上限(BEG IN  B
LOCK )および下限(END  BLOCK )を
表すトークン(識別子〉を入力する(ステップA2.A
3)。この例ではブロックの上限に′(′ を下限に゛
)″を入力している。ここでは、小ウィンド12内に入
力を促すためのガイダンス・メツセージ13が示される
(第2図(b))。
First, in step A1, the C source program is loaded into the editor as shown in Figure 2 (a>), and this input state or state 11 in the middle of editing is shown.Next, in step A1, a key is pressed to set the input mode of the specified block. is input, and a small window 12 is displayed in step A2.The upper limit of the block (BEG IN B) is displayed in the small window 12.
LOCK ) and a token (identifier) representing the lower limit (END BLOCK ) (step A2.A
3). In this example, the upper limit of the block is ``('' and the lower limit is ゛)''. Here, a guidance message 13 for prompting input is shown in the small window 12 (Fig. 2(b)). .

入力が完了すると、ステップBl、B2でカーソル表示
14の移動によりブロックのネスト・レベルの位置が指
定され、カーソル表示には矢印キーにより近傍の上限を
示すブロック識別子にジャンプし、対応する下限のブロ
ック識別子までの領域を確定(編集対象ブロックの確定
)する。この操作は指定ブロックの、最外部のブロック
における深さ(ネスト・レベル〉を確定するために行う
(ステップB3.B4)。
When the input is completed, the position of the nesting level of the block is specified by moving the cursor display 14 in steps Bl and B2, and the cursor display jumps to the block identifier indicating the upper limit of the neighborhood using the arrow keys, and moves to the block of the corresponding lower limit. Determine the area up to the identifier (determine the block to be edited). This operation is performed to determine the depth (nesting level) of the specified block in the outermost block (steps B3 and B4).

次にステップC1で見つけられたブロック範囲を編集対
象とするブロックであり、この部分を反転表示15(あ
るいはカラー表示)とする(第2図(C))。
Next, the block range found in step C1 is the block to be edited, and this portion is displayed in reverse 15 (or in color) (FIG. 2(C)).

この反転部分の表示後、ステップDi、D2で任意のキ
ーを入力することにより、第2図(d)のように編集対
象とするブロック16のみを表示しくステップD3)、
編集可能なモードとなる。
After displaying this inverted part, by inputting any key in steps Di and D2, only the block 16 to be edited is displayed as shown in FIG. 2(d).Step D3)
The mode becomes editable.

ここで、この部分の編集/修正を行い、その部分の終了
状態17となる(第2図(e))。
Here, this part is edited/corrected, and the part becomes in the final state 17 (FIG. 2(e)).

ここでステップEl、E2で再び指定ブロックの入力モ
ードを設定するキーを入力することにより、全ソース・
プログラムの表示状態に切り替えられ(第2図(f)、
この場合の操作を終了する。
Here, by inputting the key to set the input mode of the specified block again in steps El and E2, all sources are
The display state of the program is switched (Fig. 2 (f),
End the operation in this case.

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

以上説明したように本発明は、ソース・プログラムの編
集作業中にエディタ内で利用者の指定する任意のブロッ
クに対し、編集対象とするブロックのブロック識別子と
ブロックの位置(ネスト・レベル)を入力することによ
り、編集対象のブロックの妥当性チエツクおよび編集を
行い、見つけ難いブロックの対応誤りを早期発見し、プ
ログラム開発作業の時間短縮を可能とさせる効果がある
。また、大量のソース・プログラムを編集する場合、利
用者が必要とするブロックのみを扱う時は、無駄なペー
ジ送りやサーチ操作等のキー操作の手間を省け、ソース
・プログラムの修正、編集が容易にできるという効果も
ある。
As explained above, the present invention allows inputting the block identifier of the block to be edited and the block position (nesting level) for any block specified by the user in the editor during source program editing work. By doing so, the validity of the block to be edited is checked and edited, and correspondence errors in blocks that are difficult to find can be discovered at an early stage, thereby making it possible to shorten the time required for program development work. In addition, when editing a large amount of source programs, when handling only the blocks that the user needs, it is easy to modify and edit source programs by eliminating the need for unnecessary page turns and key operations such as search operations. It also has the effect of being able to

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

第1図は本発明により編集を行う場合の一実施例の操作
手順を示すフロー・チャート、第2図(a)〜(f)は
第1図の工程を具体的プログラムで説明する画面表示例
の表示図、第3図は第1図を詳細に説明するプログラム
のフロー・チャートである。 1〜5・・・基本処理ステップ、]コ、・・・入力状態
または編集状態、12・・・ブロック識別子の入力待を
行う小ウィンド、13・・・小ウィンド内に表示するガ
イダンス・メツセージ、工4・・・カーソルの位置、1
5・・・編集対象とする反転表示ブロック、16・・・
編集対象ブロック15のみの表示ブロック、17・・・
ソース・プログラムの修正/編集終了状態、18・・・
編集完了状態。
FIG. 1 is a flow chart showing the operating procedure of one embodiment when editing according to the present invention, and FIGS. 2(a) to (f) are screen display examples explaining the steps in FIG. 1 using a specific program. FIG. 3 is a flow chart of a program explaining FIG. 1 in detail. 1 to 5...Basic processing steps,]...Input state or editing state, 12...Small window for waiting for block identifier input, 13...Guidance message displayed in the small window, Technique 4...Cursor position, 1
5... Reverse display block to be edited, 16...
Display block of only block 15 to be edited, 17...
Source program modification/editing completion status, 18...
Editing completed.

Claims (1)

【特許請求の範囲】[Claims] エディタの編集中に処理すべきブロックの範囲を示す上
限および下限のトークン(識別子)を指定し、その編集
対象のブロックが一番外側のブロックにおける深さ(ネ
スト・レベル)を指定することにより、その上限位置に
カーソルを移動させることで対応する下限のトークンま
でのブロック指定範囲を確定し、この指定ブロックのみ
を編集画面として抽出し、その指定ブロックだけを編集
できるようにすることを特徴とするエディタの指定ブロ
ック編集方式。
By specifying upper and lower tokens (identifiers) that indicate the range of blocks to be processed while editing the editor, and specifying the depth (nesting level) in which the block to be edited is the outermost block, By moving the cursor to the upper limit position, the specified block range up to the corresponding lower limit token is determined, and only this specified block is extracted as an editing screen, so that only the specified block can be edited. Editor's specified block editing method.
JP29745890A 1990-11-02 1990-11-02 Specified block editing system of editor Pending JPH04174026A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29745890A JPH04174026A (en) 1990-11-02 1990-11-02 Specified block editing system of editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29745890A JPH04174026A (en) 1990-11-02 1990-11-02 Specified block editing system of editor

Publications (1)

Publication Number Publication Date
JPH04174026A true JPH04174026A (en) 1992-06-22

Family

ID=17846767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29745890A Pending JPH04174026A (en) 1990-11-02 1990-11-02 Specified block editing system of editor

Country Status (1)

Country Link
JP (1) JPH04174026A (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
CN113050938A (en) Visual software development system, method, device and computer storage medium
JP2006277519A (en) Interaction device, interaction scenario editing device, interaction method and program
JPH04174026A (en) Specified block editing system of editor
JP4767309B2 (en) Information processing apparatus, information processing method, and computer program
JPS63172303A (en) Programming display method for programmable controller
JP2006318504A (en) Control method of development support device
JPH0667871A (en) Automatic program updating system
JP2018156214A (en) SFC program creation support apparatus, SFC program creation support program, and SFC program creation method
JP4894602B2 (en) Correction target file search device, correction target file search method, and correction target file search program
JPH01237834A (en) System for editing and displaying load module
JPH01306922A (en) System for preparing program stepwise for graphical program editor
JPS60167042A (en) Program editing device
JPH05313878A (en) Program coding back-up system
JPS62135958A (en) Simulation system
JPH07160536A (en) Program test supporting device for interactive system
JPH0689170A (en) Source program analysis method for case system
JPH02100732A (en) Program grammar checking system
JPH0317740A (en) Program editing support system
JP2003303097A (en) Generator editor system, integrated development method and program therefor
JPH0319041A (en) Automatic control system for control item
JPH01211120A (en) Syntax analyzing processing method
JPH05158679A (en) Program text editing device
JPH05181919A (en) System design supporting device
JPH03119422A (en) Interprogram connection system
JPS6172338A (en) Program producing system