JPS62242238A - Correcting method for source program - Google Patents

Correcting method for source program

Info

Publication number
JPS62242238A
JPS62242238A JP61086359A JP8635986A JPS62242238A JP S62242238 A JPS62242238 A JP S62242238A JP 61086359 A JP61086359 A JP 61086359A JP 8635986 A JP8635986 A JP 8635986A JP S62242238 A JPS62242238 A JP S62242238A
Authority
JP
Japan
Prior art keywords
source program
display
intermediate code
screen
definition section
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
JP61086359A
Other languages
Japanese (ja)
Inventor
Kazumi Imamura
今村 和美
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61086359A priority Critical patent/JPS62242238A/en
Publication of JPS62242238A publication Critical patent/JPS62242238A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make correction of a source program easy by displaying a layout image of a picture defining section in a picture display unit, correcting the display by inputting of interactive system observing the display, and correcting the source program automatically. CONSTITUTION:A source program 7 is converted to intermediate codes by a program analyzing means 8. When executing, an image displaying means 10 displays a layout image of a picture defining section or a document defining section of the display picture of a picture display unit 5. An operator changes the intermediate codes observing the display. The changed image is displayed in the display picture, and this changing operation is repeated until judgement becomes OK. Thus, the intermediate codes changed by a file forming means 12 of the intermediate codes are stored as intermediate codes 9 and converted to a source program 14 by a source program forming means 13.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はソースプログラムの修正方法に関し、特に画
面定義部又は帳表定義部を含むソースプログラムの修正
方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for modifying a source program, and particularly to a method for modifying a source program including a screen definition section or a ledger definition section.

〔従来の技術〕[Conventional technology]

l!3図はソースプログラムの修正に用いられる計算機
システムを示すブロック図で、図において11)は処理
装置、(2)は制御装置、(3)は主記憶装置、(4)
は補助記憶装置としてのディスク装置、(5)は画面表
示装置、(6)はキーボード装置である。
l! Figure 3 is a block diagram showing a computer system used for modifying source programs, in which 11) is a processing unit, (2) is a control unit, (3) is a main storage unit, and (4) is a processing unit.
is a disk device as an auxiliary storage device, (5) is a screen display device, and (6) is a keyboard device.

第4図は従来の方法を示すフローチャートで、(40)
〜(48)は各ステップを示す。修正すべきソースプロ
グラムはディスク装置(4)にファイルとして格納され
ているとし、ステップ(41)により主記憶装置(3)
に入力され、ステップ(42)によりソースエディタに
よって修正される。ソースエディタにはラインソースエ
ディタとスクリーンソースエディタがあり、ラインソー
スエディタの場合はソースプログラムの1行分がソース
プログラムの形で、スフリースソースエディタの場合は
ソースプログラムの複数性分が同時にソースプログラム
の形で画面表示装置(5)に表示され、オペレータは対
話形式(=よってソースプログラムの修正を行う。この
修正(二よってステップ(43)のソースプログラム生
成が終了するが、画面定義部や帳表定義部に対する修正
はステップ(42)では実行できないので、ステップ(
44)、(45)を実行したのちステップ(46)の(
実行テストイメージ確認)(二よって画面レイアウトの
イメージを画面表示装置(5)に表示してオペレータが
これを確認した上でステップ(47)の判定がNOなら
ばステップ(41)に戻り、ステップ(42)で必要な
修正を行いその修正されたソースプログラム(ステップ
(43) ) によってステ・ツブ(45) 、 (4
6) 、 (47)を繰返す必要があり、ステップ(4
6)の確認とステップ(42)の修正とは間接的にしか
関連されていないので、修正に要する時間と労力とが大
きくなる。
FIG. 4 is a flowchart showing the conventional method, (40)
-(48) indicate each step. It is assumed that the source program to be modified is stored as a file in the disk device (4), and in step (41) the source program is stored in the main storage device (3).
and modified by the source editor in step (42). Source editors include line source editors and screen source editors.In the case of the line source editor, one line of the source program is created as a source program, and in the case of the Sfreece source editor, multiple parts of the source program are created simultaneously. is displayed on the screen display device (5) in the form of , and the operator makes an interactive correction to the source program. Modifications to the table definition section cannot be executed in step (42), so step (
44) and (45), then step (46) (
Execution test image confirmation) (2) Therefore, the image of the screen layout is displayed on the screen display device (5), the operator confirms it, and if the judgment in step (47) is NO, the process returns to step (41), and the process returns to step (41). After making the necessary modifications in step (42), the modified source program (step (43)) can be used to create step-by-step programs (45) and (4).
6), (47) need to be repeated, and step (4)
Since the confirmation in step 6) and the correction in step (42) are only indirectly related, the time and effort required for the correction increases.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上のように、ソースプログラムが画面定義部や帳表定
義部を含む場合、これらの定義部に関するソースプログ
ラムの修正は、従来の方法では、間接的に行われるので
、短時間の間に適確な修正を実行することが困難である
という問題があった。
As described above, when a source program includes a screen definition section or a ledger definition section, the source program regarding these definition sections is modified indirectly using conventional methods, so it can be done accurately and in a short period of time. There was a problem in that it was difficult to carry out necessary modifications.

この発明は上記のような問題点を解決するためになされ
たもので、画面定義部や@表定義部のソースプログラム
をも画面表示装置(5)の表示を介しての対話的入力孟
二よって直接修正することのできるソースプログラム修
正方法を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and the source programs of the screen definition section and @table definition section can also be input interactively through the display on the screen display device (5). The purpose is to obtain a source program modification method that allows direct modification.

〔問題点を解決するための手段〕[Means for solving problems]

この発明では、ソースプログラムの画面定義部や帳表定
義部はソースプログラムに使用されているプログラム言
語から中間コード(二置換して、この中間コード;二よ
って画面表示装置Eイメージな表示させ、オペレータは
このイメージを観察しながら、対話形式C二よる入力で
このイメージを修正して、中間コードを介してソースプ
ログラムのその部分を自動的に修正するようにしたもの
である。
In this invention, the screen definition part and the ledger definition part of the source program are replaced with intermediate code (2) from the programming language used in the source program, and this intermediate code; While observing this image, the user modifies this image using input using interactive C2, and automatically modifies that part of the source program via intermediate code.

〔作用〕[Effect]

この発明の方法では画面定義部のレイアウトイメージを
画面表示装置(二表示させ、この表示を観察しながら対
話形式の入力によってこの表示を修正してソースプログ
ラムを自動的に修正することができので、ソースプログ
ラムの修正が容易になる。
In the method of the present invention, the layout image of the screen definition section is displayed on the screen display device (2), and the source program can be automatically modified by modifying this display through interactive input while observing this display. Source programs can be easily modified.

〔実施例〕〔Example〕

以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例を示すブロック図で、第1
図:;おいて第3図と同一符号は同−又は相当部分を示
し、fga図の装置がこの発明の方法(二より動作する
ときの機能部分を第1図に表したものである。
FIG. 1 is a block diagram showing one embodiment of the present invention.
3, the same reference numerals as in FIG. 3 indicate the same or corresponding parts, and FIG. 1 shows the functional parts when the apparatus shown in FIG.

第1図において、(7)はソースプログラムファイルに
格納されているソースプログラム、(81はソースプロ
グラム解析手段、(9)は中間コード、(1のは実行時
イメージ表示手段、(12)は中間コードのファイル生
成手段、(13)はソースプログラム生成手段、(14
)は修正後のソースプログラムである。
In FIG. 1, (7) is the source program stored in the source program file, (81 is the source program analysis means, (9) is the intermediate code, (1 is the runtime image display means, and (12) is the intermediate code. code file generation means, (13) source program generation means, (14)
) is the modified source program.

また、第2図は第1図C:示す装置の動作を示すフロー
チャートであり(20)〜(27)は各ステップである
。第5図は第1図の画面表示装置(5)に表示された実
行時イメージを示す斜視図であって、第5図において第
3図と同一符号は同一部分を示し、(15)は表示画面
、(16〕は画面レイアウトを修正するパラメータ、(
17)はパラメータフィールドを区別するフィールド定
義文字である。
Further, FIG. 2 is a flowchart showing the operation of the apparatus shown in FIG. 1C, and (20) to (27) are each step. FIG. 5 is a perspective view showing the execution image displayed on the screen display device (5) in FIG. 1, in which the same reference numerals as in FIG. screen, (16) is a parameter for modifying the screen layout, (
17) is a field definition character that distinguishes parameter fields.

次に第2図を用いてこの発明の詳細な説明する。Next, the present invention will be explained in detail using FIG. 2.

ステップ(21) l二よりソースプログラムファイル
からのソースプログラム(7)が主記憶装置(3)に入
力される。このソースプログラム(7)はソースプログ
ラム解析手段(8)によって中間コードに変換される。
Step (21) From l2, the source program (7) from the source program file is input to the main storage device (3). This source program (7) is converted into intermediate code by a source program analysis means (8).

すなわち、画面定義部の中間コード、帳表定義部の中間
コード、ファイル定義部の中間コード、ソースプログラ
ムの手続き部の中間コードがンースプログラムから生成
されステップ(22)に示す中間コードファイル生成が
行われて中間コード(9)となる。実行時イメージ表示
手段(10)は処理装置(1)におけるプログラム制御
によって中間コード(9)を用い制御装置(2)を介し
画面表示装置(5)の表示画面(15)上に画面定義部
又は帳表定義部のレイアウトイメージをたとえば第5図
に示すように表示する(ステップ(23) )。この表
示を観察した(ステップ(24))オペレータがステッ
プ(25)の判定でOKを与えればステップ(26)に
うつる。この場合ステップ(26)の中間コードファイ
ルはステップ(22)のものと同じとなり、したがっ゛
てソースプログラム入力(ステップ(21) )はその
ままステップ(27)のソースプログラム生成(27)
となり、1i正後のソースプログラムとして格納される
That is, the intermediate code of the screen definition section, the intermediate code of the ledger definition section, the intermediate code of the file definition section, and the intermediate code of the procedure section of the source program are generated from the source program, and the intermediate code file shown in step (22) is generated. This process results in an intermediate code (9). The runtime image display means (10) uses the intermediate code (9) under program control in the processing device (1) to display the screen definition section or A layout image of the ledger definition section is displayed, for example, as shown in FIG. 5 (step (23)). If the operator who has observed this display (step (24)) gives OK in the determination in step (25), the process moves to step (26). In this case, the intermediate code file in step (26) will be the same as that in step (22), so the source program input (step (21)) will be the same as the source program generation (27) in step (27).
This is stored as a source program after 1i.

ステップ(25〕の判定がNoならステップ(22)と
(23)の間に帰り表示画面(15)の表示を観察しな
がら中間コードを変更する。この変更は、オペレータが
表示画面上に表示されているカーソル(第5図には図示
せず)を移動しくキーボード装置【6)からの入力によ
る)、画面レイアウトパラメータ(16)及びパラメー
タフィールド定義文字(17)を入力することによって
行う。この変更により中間コードファイルの内容が変更
され、その変更によって変更されたイメージが表示画面
(15)に表示され、真後、ステラ7’ (25)の判
定がOKとなるまで、この変更操作を繰り返す。このよ
うにして、中間コードのファイル生成手段(12)によ
って変更された中間コードは中間コード(9)として記
憶され、次にはソースプログラム生成手段(13)によ
って中間コード(9)からソースプログラム(14)に
変換されソースプログラムファイルとして格納される。
If the determination in step (25) is No, change the intermediate code while observing the display on the return display screen (15) between steps (22) and (23). This is done by moving a cursor (not shown in FIG. 5) and inputting screen layout parameters (16) and parameter field definition characters (17) using a keyboard device (6). This change changes the contents of the intermediate code file, and the image changed by the change is displayed on the display screen (15). Immediately after, this change operation is continued until the judgment of Stella 7' (25) is OK. repeat. In this way, the intermediate code modified by the intermediate code file generation means (12) is stored as an intermediate code (9), and then the source program generation means (13) converts the intermediate code (9) into a source program ( 14) and stored as a source program file.

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

以上のようにこの発明によれば、画面定義部又は帳表定
義部を含むソースプログラムを修正するに際し、画面レ
イアウト及び帳表レイアウトの実行時イメージを画面表
示装置上に表示して確認しながら修正できるので、従来
の方法のようにコンパイル、ロードモジュール生ステス
ト実行、レイアウト確認という一連の確認作業の必要が
なくなり、ソースプログラムの修正を迅速に行うことが
できる。
As described above, according to the present invention, when modifying a source program including a screen definition section or a ledger definition section, the execution images of the screen layout and the ledger layout are displayed on the screen display device and the images are checked while the correction is made. This eliminates the need for a series of confirmation tasks such as compilation, load module production test execution, and layout confirmation as in the conventional method, and it is possible to quickly modify the source program.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1因に示す装置の動作を示すフローチャート、第3
図はソースプログラムの修正(:用いられる計算機シス
テムを示すブロック図、第4図は従来の方法を示すフロ
ーチャート、第5図は第1図の画面表示装置に表示され
た実行時イメージを示す斜視図。 (1)は処理装置、(2)は制御装置、(3)は主記憶
装置、(4)はディスク装置、(5)は画面表示装置、
(6)はキーボード装置、(7)はソースプログラム、
(8)はソースプログラム解析手段、(9)は中間コー
ド、(10)は実行時イメージ表示手段、(12〕は中
間コードファイル生成手段、(13)はソースプログラ
ム生成手段。 尚、各図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the device shown in the first factor, and FIG.
The figure is a block diagram showing the computer system used for modifying the source program, Figure 4 is a flowchart showing the conventional method, and Figure 5 is a perspective view showing the runtime image displayed on the screen display device in Figure 1. (1) is a processing device, (2) is a control device, (3) is a main storage device, (4) is a disk device, (5) is a screen display device,
(6) is a keyboard device, (7) is a source program,
(8) is a source program analysis means, (9) is an intermediate code, (10) is a runtime image display means, (12) is an intermediate code file generation means, and (13) is a source program generation means. The same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】 画面定義部又は帳表定義部を含むソースプログラムを修
正するソースプログラムの修正方法において、 修正の対象となるソースプログラムを入力し、上記画面
定義部を構成する中間コード又は上記帳表定義部を構成
する中間コードを作成する段階、上記画面定義部を構成
する中間コード又は上記帳表定義部を構成する中間コー
ドを用い上記画面定義部又は帳表定義部のレイアウトイ
メージを画面表示装置に表示する段階、 この画面表示装置の表示を観察しながら、オペレータが
対話形式の入力によって表示の修正を実行する段階、 この表示の修正に従って上記画面定義部の中間コード又
は上記帳表定義部の中間コードが自動的に修正される段
階、 オペレータが入力する修正終了信号により、その信号の
入力時点における上記中間コードがソースプログラムに
変換されて、修正済のソースプログラムが生成される段
階、 を備えたことを特徴とするソースプログラムの修正方法
[Claims] A source program modification method for modifying a source program including a screen definition section or a ledger definition section, wherein a source program to be modified is input, and an intermediate code or an upper A step of creating an intermediate code constituting the bookkeeping table definition section, which uses the intermediate code constituting the screen definition section or the intermediate code constituting the bookkeeping table definition section to create a layout image of the screen definition section or the book table definition section on the screen. A step in which the operator corrects the display through interactive input while observing the display on the screen display device; A step in which the intermediate code of the screen definition section or the above ledger definition is corrected in accordance with the correction of the display; a step in which the intermediate code of the part is automatically corrected; a step in which, in response to a correction end signal input by an operator, the intermediate code at the time of input of the signal is converted into a source program to generate a corrected source program; A method for modifying a source program.
JP61086359A 1986-04-15 1986-04-15 Correcting method for source program Pending JPS62242238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61086359A JPS62242238A (en) 1986-04-15 1986-04-15 Correcting method for source program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61086359A JPS62242238A (en) 1986-04-15 1986-04-15 Correcting method for source program

Publications (1)

Publication Number Publication Date
JPS62242238A true JPS62242238A (en) 1987-10-22

Family

ID=13884692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61086359A Pending JPS62242238A (en) 1986-04-15 1986-04-15 Correcting method for source program

Country Status (1)

Country Link
JP (1) JPS62242238A (en)

Similar Documents

Publication Publication Date Title
JP2001216142A (en) Program preparation aiding device
JP3288460B2 (en) Display data generation apparatus and method
JP2004157927A (en) Creating system for business form input, creating program and creating method
JPS62242238A (en) Correcting method for source program
JPH08190476A (en) Development assisting device for interactive program
JP2007122230A (en) Input error item display device, method, and program
JP2842511B2 (en) Form creation device
JPH0635987A (en) Device and mehtod for preparing circuit diagram
JPH08202856A (en) Picture processing method
JPH04238534A (en) Item unit type picture input/output controlling system
JP2512215B2 (en) Program creation device
JPH10187425A (en) User interface screen generation support device
JPS62145424A (en) Program managing method
JP2005233713A (en) Generating control rod operation sequence device for
JPH0533248U (en) Image processing simulation device
JPH03266117A (en) Jcl generation support device
JPH047637A (en) Program diagram generating device
JPH0553786A (en) System for displaying program source list
JP2000172496A (en) Plant monitor interactive image generating device
JPH05233295A (en) Supporting system for design type expert system construction
JPH0388026A (en) Data processor
JPH03182923A (en) Editing processing method for input/output information
JPH04318623A (en) Controller
JPH01251216A (en) Menu display system
JPS63173126A (en) Command menu editor