JPH04316139A - Syntax checking system of program syntax editor - Google Patents

Syntax checking system of program syntax editor

Info

Publication number
JPH04316139A
JPH04316139A JP3109722A JP10972291A JPH04316139A JP H04316139 A JPH04316139 A JP H04316139A JP 3109722 A JP3109722 A JP 3109722A JP 10972291 A JP10972291 A JP 10972291A JP H04316139 A JPH04316139 A JP H04316139A
Authority
JP
Japan
Prior art keywords
syntax
data
source program
division
program
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
JP3109722A
Other languages
Japanese (ja)
Inventor
Takao Sato
孝夫 佐藤
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 JP3109722A priority Critical patent/JPH04316139A/en
Publication of JPH04316139A publication Critical patent/JPH04316139A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform syntax checking including the checking of data names appearing in the procedural section of a source program for the presence/ absence of data definition, propriety of data attribute, combination among the data, etc. CONSTITUTION:A source program inputting means 3 inputs a source program inputted from a terminal 1 through a screen-type program editor 2 and a data section syntax/procedural section syntax discriminating means 4 discriminates the program whether the program has the syntax of a data section or that of a procedural section. A data section syntax checking means 6 checks the syntax of the data section and a dictionary registering means 7 prepares a data section dictionary 82 composed of data names and data attributes. Then a procedural section syntax checking means 5 checks the syntax of the procedural section by inputting the information of the dictionary 82 and a syntax error displaying means 9 displays the syntax error information of the source program on the terminal 1.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は端末から原始プログラム
を入力し原始プログラムファイルを作成/更新するプロ
グラムエディタに関し、特に原始プログラムの入力時に
構文チェックを行い原始プログラムファイルを作成/更
新するプログラム構文エディタに関する。
[Industrial Application Field] The present invention relates to a program editor that inputs a source program from a terminal and creates/updates a source program file, and in particular, a program syntax editor that performs a syntax check when inputting a source program and creates/updates a source program file. Regarding.

【0002】0002

【従来の技術】従来、この種のプログラム構文エディタ
は、例えば図4に示すように、端末41からユーザが投
入する原始プログラムからソースライブラリ48の原始
プログラムファイル481を作成する画面型プログラム
エディタ42と、画面型プログラムエディタ42から1
行の原始プログラムを入力する原始プログラム入力手段
43と、入力された1行の原始プログラムを構文チェッ
クする構文チェック手段50と、構文チェック手段50
によって構文チェックされた原始プログラムの構文エラ
ー情報を端末41に表示する構文エラー表示手段49と
から構成されていた。
2. Description of the Related Art Conventionally, this type of program syntax editor includes a screen-type program editor 42 that creates a source program file 481 of a source library 48 from a source program input by a user from a terminal 41, as shown in FIG. , screen-type program editor 42 to 1
A source program input means 43 for inputting a line of the source program, a syntax check means 50 for checking the syntax of the input one line of the source program, and a syntax check means 50.
and a syntax error display means 49 for displaying syntax error information of the source program whose syntax has been checked by the syntax error display means 49 on the terminal 41.

【0003】このような従来のプログラム構文エディタ
では、単一の構文チェック手段50によりデータ部の原
始プログラムと手続き部の原始プログラムとを区別せず
に原始プログラムの1行毎に構文チェックを行っていた
。このため、データ部の原始プログラムと手続き部の原
始プログラムとの関連チェックを行うことができず、手
続き部の原始プログラムの構文チェックでは、命令で使
用されるデータ名についてはデータ定義の有無,データ
属性の妥当性,データ間の組合せの妥当性等のチェック
が行われず、単純な形式的な構文チェックを行うに留ま
っていた。
In such a conventional program syntax editor, a single syntax checker 50 checks the syntax of each line of the source program without distinguishing between the source program in the data division and the source program in the procedure division. Ta. For this reason, it is not possible to check the relationship between the source program in the data division and the source program in the procedure division, and when checking the syntax of the source program in the procedure division, the data names used in instructions are checked for whether or not there is a data definition, The validity of attributes, the validity of combinations of data, etc. were not checked, and only a simple formal syntax check was performed.

【0004】0004

【発明が解決しようとする課題】上述した従来のプログ
ラム構文エディタでは、単一の構文チェック手段50に
よりデータ部の原始プログラムと手続き部の原始プログ
ラムとを区別せずに構文チェックを行っていたので、手
続き部の原始プログラムで出現するデータ名については
、データ定義の有無,データ属性の妥当性,データ間の
組合せの妥当性等のチェックが行われず、十分な構文チ
ェックを行うことができないために誤った原始プログラ
ムでも入力できてしまうという問題点がある。
[Problems to be Solved by the Invention] In the conventional program syntax editor described above, the single syntax checking means 50 performs syntax checking without distinguishing between the source program in the data division and the source program in the procedure division. , data names that appear in the source program of the procedure division are not checked for the existence of data definitions, validity of data attributes, validity of combinations of data, etc., and sufficient syntax checking cannot be performed. There is a problem that even an incorrect source program can be input.

【0005】本発明の目的は、上述の点に鑑み、プログ
ラム構文エディタにおいて手続き部の原始プログラムで
出現するデータ名についてデータ定義の有無,データ属
性の妥当性,データ間の組合せの妥当性等のチェックを
行い、データ部の原始プログラムと手続き部の原始プロ
グラムとの関連でも正しい原始プログラムのみを入力す
ることができるようにしたプログラム構文エディタの構
文チェック方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to use a program syntax editor to check the existence of data definitions, the validity of data attributes, the validity of combinations of data, etc. for data names that appear in the source program of the procedure division. To provide a syntax checking method for a program syntax editor which performs a check and allows inputting only a correct source program in relation to a source program in a data division and a source program in a procedure division.

【0006】[0006]

【課題を解決するための手段】本発明のプログラム構文
エディタの構文チェック方式は、端末から投入された原
始プログラムの構文チェックを行いソースライブラリに
原始プログラムファイルを作成/更新するプログラム構
文エディタにおいて、端末から投入された1行の原始プ
ログラムを入力する原始プログラム入力手段と、この原
始プログラム入力手段により入力された1行の原始プロ
グラムがデータ部の構文か手続き部の構文かを判断する
データ部構文/手続き部構文識別手段と、このデータ部
構文/手続き部構文識別手段により1行の原始プログラ
ムがデータ部の構文であると識別されたときにデータ部
の構文チェックを行うデータ部構文チェック手段と、こ
のデータ部構文チェック手段による構文チェック結果に
基づいて原始プログラム上で定義されたデータ名および
データ属性からなるデータ部ディクショナリを作成する
ディクショナリ登録手段と、前記データ部構文/手続き
部構文識別手段により1行の原始プログラムが手続き部
の構文であると識別されたときに手続き部の1行の原始
プログラムと前記データ部ディクショナリの情報とを入
力して手続き部の構文チェックを行う手続き部構文チェ
ック手段と、前記データ部構文チェック手段および前記
手続き部構文チェック手段によって構文チェックされた
原始プログラムの構文エラー情報を端末に表示する構文
エラー表示手段とを有する。
[Means for Solving the Problems] The syntax checking method of the program syntax editor of the present invention is to check the syntax of a source program input from a terminal and create/update a source program file in a source library. a source program input means for inputting one line of the source program input from the source program input means; and a data division syntax for determining whether the one line of the source program input by the source program input means is the syntax of the data division or the syntax of the procedure division. a procedure division syntax identifying means; a data division syntax checking means for checking the syntax of the data division when one line of the source program is identified as having the data division syntax by the data division syntax/procedure division syntax identifying means; a dictionary registration means for creating a data part dictionary consisting of data names and data attributes defined on the source program based on the syntax check result by the data part syntax checking means; and a data part syntax/procedure part syntax identifying means. a procedure division syntax checking means for checking the syntax of the procedure division by inputting the one-line source program of the procedure division and the information of the data division dictionary when the source program of the line is identified as having the syntax of the procedure division; and a syntax error display means for displaying syntax error information of the source program whose syntax has been checked by the data division syntax check means and the procedure division syntax check means on a terminal.

【0007】[0007]

【作用】本発明のプログラム構文エディタの構文チェッ
ク方式では、原始プログラム入力手段が端末から投入さ
れた1行の原始プログラムを入力し、データ部構文/手
続き部構文識別手段が原始プログラム入力手段により入
力された1行の原始プログラムがデータ部の構文か手続
き部の構文かを判断し、データ部構文チェック手段がデ
ータ部構文/手続き部構文識別手段により1行の原始プ
ログラムがデータ部の構文であると識別されたときにデ
ータ部の構文チェックを行い、ディクショナリ登録手段
がデータ部構文チェック手段による構文チェック結果に
基づいて原始プログラム上で定義されたデータ名および
データ属性からなるデータ部ディクショナリを作成し、
手続き部構文チェック手段がデータ部構文/手続き部構
文識別手段により1行の原始プログラムが手続き部の構
文であると識別されたときに手続き部の1行の原始プロ
グラムとデータ部ディクショナリの情報とを入力して手
続き部の構文チェックを行い、構文エラー表示手段がデ
ータ部構文チェック手段および手続き部構文チェック手
段によって構文チェックされた原始プログラムの構文エ
ラー情報を端末に表示する。
[Operation] In the syntax checking method of the program syntax editor of the present invention, the source program input means inputs one line of the source program input from the terminal, and the data division syntax/procedure division syntax identification means inputs the input from the source program input means. The data division syntax checking means uses the data division syntax/procedure division syntax identification means to determine whether the single line source program has the data division syntax or the procedure division syntax. When it is identified, the syntax of the data part is checked, and the dictionary registration means creates a data part dictionary consisting of data names and data attributes defined on the source program based on the syntax check result by the data part syntax checking means. ,
When the data division syntax/procedure division syntax identification means identifies one line of the source program as having procedure division syntax, the procedure division syntax checking means checks the one line of the procedure division source program and the information in the data division dictionary. The syntax error display means displays on the terminal the syntax error information of the source program whose syntax has been checked by the data division syntax check means and the procedure division syntax check means.

【0008】[0008]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained in detail with reference to the drawings.

【0009】図1は、本発明の一実施例に係る構文チェ
ック方式が適用されたプログラム構文エディタの構成を
示すブロック図である。このプログラム構文エディタは
、端末1からユーザが投入する原始プログラムからソー
スライブラリ8の原始プログラムファイル81を作成す
る画面型プログラムエディタ2と、端末1からユーザが
投入した1行の原始プログラムを画面型プログラムエデ
ィタ2を経由して入力する原始プログラム入力手段3と
、入力された1行の原始プログラムがデータ部の構文か
手続き部の構文かを判断するデータ部構文/手続き部構
文識別手段4と、入力された1行の原始プログラムがデ
ータ部の構文であればデータ部の構文チェックを行うデ
ータ部構文チェック手段6と、データ部の構文から原始
プログラム上で定義されたデータ名およびデータ属性か
らなるデータ部ディクショナリ82を作成するディクシ
ョナリ登録手段7と、手続き部の1行の原始プログラム
とデータ部ディクショナリ82の情報とを入力し手続き
部の構文チェックを行う手続き部構文チェック手段5と
、データ部構文チェック手段6および手続き部構文チェ
ック手段5によって構文チェックされた原始プログラム
の構文エラー情報を端末1に表示する構文エラー表示手
段9とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of a program syntax editor to which a syntax checking method according to an embodiment of the present invention is applied. This program syntax editor includes a screen-type program editor 2 that creates a source program file 81 of a source library 8 from a source program input by the user from the terminal 1, and a screen-type program editor 2 that creates a source program file 81 of the source library 8 from a source program input by the user from the terminal 1. A source program input means 3 for inputting via the editor 2; a data division syntax/procedure division syntax identification means 4 for determining whether an input one line of the source program is a data division syntax or a procedure division syntax; If the one-line source program that has been written has the syntax of the data division, the data division syntax checking means 6 checks the syntax of the data division, and the data consisting of the data name and data attributes defined on the source program from the syntax of the data division. a dictionary registration means 7 for creating a procedure division dictionary 82; a procedure division syntax checking means 5 for inputting a one-line source program of the procedure division and information of the data division dictionary 82 and checking the syntax of the procedure division; and a data division syntax check. 6 and a syntax error display means 9 for displaying syntax error information of the source program whose syntax has been checked by the procedure division syntax check means 5 on the terminal 1.

【0010】図2を参照すると、本実施例のプログラム
構文エディタの構文チェック方式における原始プログラ
ム登録時の処理は、1行の原始プログラム入力ステップ
21と、データ部構文/手続き部構文判定ステップ22
と、データ部構文チェックステップ23と、データ部デ
ィクショナリ登録ステップ24と、手続き部構文チェッ
クステップ25と、原始プログラムファイル登録ステッ
プ26とからなる。
Referring to FIG. 2, the processing at the time of registering a source program in the syntax checking method of the program syntax editor of this embodiment includes a one-line source program input step 21, and a data division syntax/procedure division syntax determination step 22.
, a data section syntax check step 23, a data section dictionary registration step 24, a procedure section syntax check step 25, and a source program file registration step 26.

【0011】図3を参照すると、本実施例のプログラム
構文エディタの構文チェック方式における原始プログラ
ム更新時の処理は、1行の原始プログラム入力ステップ
31と、データ部構文/手続き部構文判定ステップ32
と、データ部構文チェックステップ33と、データ部デ
ィクショナリ登録または更新ステップ34と、手続き部
構文チェックステップ35と、原始プログラムファイル
更新ステップ36とからなる。
Referring to FIG. 3, the processing when updating a source program in the syntax checking method of the program syntax editor of this embodiment includes a one-line source program input step 31 and a data division syntax/procedure division syntax determination step 32.
, a data section syntax check step 33, a data section dictionary registration or update step 34, a procedure section syntax check step 35, and a source program file update step 36.

【0012】次に、このように構成された本実施例のプ
ログラム構文エディタの構文チェック方式の動作につい
て説明する。
Next, the operation of the syntax checking method of the program syntax editor of this embodiment configured as described above will be explained.

【0013】まず、図2を参照して、本実施例のプログ
ラム構文エディタの構文チェック方式における原始プロ
グラムの登録時の処理を説明する。
First, with reference to FIG. 2, the processing at the time of registering a source program in the syntax checking method of the program syntax editor of this embodiment will be explained.

【0014】まず、原始プログラム入力手段3は、端末
1にユーザが投入した1行の原始プログラムを画面型プ
ログラムエディタ2を経由して入力する(ステップ21
)。
First, the source program input means 3 inputs a one-line source program input by the user into the terminal 1 via the screen program editor 2 (step 21).
).

【0015】次に、データ部構文/手続き部構文識別手
段4は、原始プログラム入力手段3により入力された1
行の原始プログラムがデータ部の構文か手続き部の構文
かを識別する(ステップ22)。
Next, the data division syntax/procedure division syntax identification means 4 uses the 1 inputted by the source program input means 3.
It is determined whether the source program of the line is a data division syntax or a procedure division syntax (step 22).

【0016】データ部の構文であれば、データ部構文チ
ェック手段6は、データ部の原始プログラムの構文チェ
ックを行い、構文エラーがあれば構文エラー表示手段9
を起動して構文エラー情報を端末1に表示する(ステッ
プ23)。
If it is the syntax of the data part, the data part syntax checking means 6 checks the syntax of the source program of the data part, and if there is a syntax error, the syntax error display means 9
is started to display syntax error information on terminal 1 (step 23).

【0017】次に、ディクショナリ登録手段7は、デー
タ部構文チェック手段6によるデータ部の構文チェック
結果に基づいてデータ名およびデータ属性をデータ部デ
ィクショナリ82としてソースライブラリ8に登録する
(ステップ24)。データ部ディクショナリ82の登録
時に、ディクショナリ登録手段7は、原始プログラムフ
ァイル81とデータ部ディクショナリ82との関連情報
を原始プログラムファイル81に登録する。
Next, the dictionary registration means 7 registers the data name and data attribute in the source library 8 as the data part dictionary 82 based on the result of checking the syntax of the data part by the data part syntax checking means 6 (step 24). When registering the data section dictionary 82, the dictionary registration means 7 registers the related information between the source program file 81 and the data section dictionary 82 in the source program file 81.

【0018】データ部の構文エラーがなければ、画面型
プログラムエディタ2は、正しい構文の原始プログラム
を原始プログラムファイル81としてソースライブラリ
8に登録する(ステップ26)。
If there is no syntax error in the data section, the screen-based program editor 2 registers the source program with the correct syntax in the source library 8 as the source program file 81 (step 26).

【0019】一方、ステップ22で1行の原始プログラ
ムが手続き部の構文であれば、手続き部構文チェック手
段5は、手続き部の原始プログラム中で参照しているデ
ータ名の情報を原始プログラムファイル81に対応する
データ部ディクショナリ82から入力して、データ定義
の有無,データ属性の妥当性,データ間の組合せの妥当
性等のチェックを含む構文チェックを行う。構文エラー
があれば、手続き部構文チェック手段5は、構文エラー
表示手段9を起動して手続き部の構文エラー情報を端末
1に表示する(ステップ25)。
On the other hand, if the one-line source program has the procedure division syntax in step 22, the procedure division syntax checking means 5 stores information on the data names referenced in the procedure division source program in the source program file 81. A syntax check is performed, including checking the presence or absence of data definitions, the validity of data attributes, the validity of combinations of data, etc. If there is a syntax error, the procedure division syntax checking means 5 activates the syntax error display means 9 to display the syntax error information of the procedure division on the terminal 1 (step 25).

【0020】手続き部の構文エラーがなけば、画面型プ
ログラムエディタ2は、正しい構文の原始プログラムを
原始プログラムファイル81としてソースライブラリ8
に登録する(ステップ26)。
If there is no syntax error in the procedure division, the screen program editor 2 saves the source program with the correct syntax as the source program file 81 to the source library 8.
(Step 26).

【0021】以降、ステップ21からステップ26まで
をユーザの原始プログラムの入力が終了するまで続ける
Thereafter, steps 21 to 26 are continued until the user completes inputting the source program.

【0022】次に、図3を参照して、本実施例のプログ
ラム構文エディタの構文チェック方式における原始プロ
グラムの更新時の処理を説明する。
Next, with reference to FIG. 3, the processing at the time of updating a source program in the syntax checking method of the program syntax editor of this embodiment will be described.

【0023】まず、原始プログラム入力手段3は、端末
1でユーザが更新を行った1行の原始プログラムを画面
型プログラムエディタ2を経由して入力する(ステップ
31)。
First, the source program input means 3 inputs a one-line source program updated by the user on the terminal 1 via the screen-type program editor 2 (step 31).

【0024】次に、データ部構文/手続き部構文識別手
段4は、原始プログラム入力手段3により入力された1
行の原始プログラムがデータ部の構文か手続き部の構文
かを識別する(ステップ32)。
Next, the data division syntax/procedure division syntax identification means 4 uses the 1 inputted by the source program input means 3.
It is determined whether the source program of the line is a data division syntax or a procedure division syntax (step 32).

【0025】データ部の構文であれば、データ部構文チ
ェック手段6は、データ部の原始プログラムの構文チェ
ックを行い、構文エラーがあれば構文エラー表示手段9
を起動して構文エラー情報を端末1に表示する(ステッ
プ33)。
If it is the syntax of the data part, the data part syntax checking means 6 checks the syntax of the source program of the data part, and if there is a syntax error, the syntax error display means 9
is activated to display syntax error information on terminal 1 (step 33).

【0026】次に、ディクショナリ登録手段7は、デー
タ部構文チェック手段6によるデータ部の構文チェック
結果に基づいてデータ名およびデータ属性をデータ部デ
ィクショナリ82としてソースライブラリ8に登録する
(ステップ34)。このとき、すでに登録済みの行に対
する更新であれば、ディクショナリ登録手段7は、デー
タ部ディクショナリ82中の対応する従来の情報を削除
してから新しい情報を登録する。また、同一のデータ名
がすでにデータ部ディクショナリ82に登録済みであれ
ば、データ部構文チェック手段6は、構文エラー表示手
段9を起動して構文エラー情報を端末1に表示する。
Next, the dictionary registration means 7 registers the data name and data attribute in the source library 8 as the data part dictionary 82 based on the result of checking the syntax of the data part by the data part syntax checking means 6 (step 34). At this time, if the update is to a row that has already been registered, the dictionary registration means 7 deletes the corresponding conventional information in the data section dictionary 82 and then registers the new information. Further, if the same data name has already been registered in the data part dictionary 82, the data part syntax checking means 6 activates the syntax error display means 9 to display syntax error information on the terminal 1.

【0027】データ部の構文エラーがなければ、画面型
プログラムエディタ2は、正しい原始プログラムを用い
て原始プログラムファイル81のデータ部の対応する行
を更新する(ステップ36)。
If there is no syntax error in the data section, the screen-based program editor 2 updates the corresponding line in the data section of the source program file 81 using the correct source program (step 36).

【0028】一方、ステップ32で1行の原始プログラ
ムが手続き部の構文であれば、手続き部構文チェック手
段5は、手続き部の原始プログラム中で参照しているデ
ータ名の情報を原始プログラムファイル81に対応する
データ部ディクショナリ82から入力して、データ定義
の有無,データ属性の妥当性,データ間の組合せの妥当
性等のチェックを含む構文チェックを行う。構文エラー
があれば、手続き部構文チェック手段5は、構文エラー
表示手段9を起動して手続き部の構文エラー情報を端末
1に表示する(ステップ35)。
On the other hand, if the one-line source program has the procedure division syntax in step 32, the procedure division syntax checking means 5 stores the information of data names referenced in the procedure division source program in the source program file 81. A syntax check is performed, including checking the presence or absence of data definitions, the validity of data attributes, the validity of combinations of data, etc. If there is a syntax error, the procedure division syntax checking means 5 activates the syntax error display means 9 to display the syntax error information of the procedure division on the terminal 1 (step 35).

【0029】手続き部の構文エラーがなければ、画面型
プログラムエディタ2は、正しい原始プログラムを用い
て原始プログラムファイル81の手続き部の対応する行
を更新する(ステップ36)。
If there is no syntax error in the procedure division, the screen-based program editor 2 updates the corresponding line in the procedure division of the source program file 81 using the correct source program (step 36).

【0030】以降、ステップ31からステップ36まで
をユーザの原始プログラムの更新が終了するまで続ける
Thereafter, steps 31 to 36 are continued until the update of the user's source program is completed.

【0031】このように、本実施例の構文チェック方式
が適用されたプログラム構文エディタによれば、手続き
部の構文チェックで出現するデータ名についてデータ定
義の有無,データ属性の妥当性,データ間の組合せの妥
当性等のチェックを行い、データ部の原始プログラムと
手続き部の原始プログラムとの関連でも正しい原始プロ
グラムの作成/更新を行うことができる。
As described above, according to the program syntax editor to which the syntax checking method of this embodiment is applied, data names that appear in the syntax check of the procedure division are checked for the presence or absence of data definitions, the validity of data attributes, and the validity of data attributes. By checking the validity of the combination, it is possible to create/update a correct source program in relation to the source program in the data division and the source program in the procedure division.

【0032】[0032]

【発明の効果】以上説明したように本発明は、プログラ
ム構文エディタにおいて、原始プログラム入力手段,デ
ータ部構文/手続き部構文識別手段,データ部構文チェ
ック手段,ディクショナリ登録手段,手続き部構文チェ
ック手段および構文エラー表示手段を設けることにより
、手続き部の構文チェックで出現するデータ名について
データ定義の有無,データ属性の妥当性,データ間の組
合せの妥当性等のチェックを行い、データ部の原始プロ
グラムと手続き部の原始プログラムとの関連でも正しい
原始プログラムのみの作成/更新を行うことができると
いう効果がある。
As explained above, the present invention provides a program syntax editor that includes a source program input means, a data division syntax/procedure division syntax identification means, a data division syntax check means, a dictionary registration means, a procedure division syntax check means, and a program syntax editor. By providing a syntax error display means, it is possible to check the existence of data definitions, the validity of data attributes, the validity of combinations of data, etc. for data names that appear in the syntax check of the procedure division, and to check the validity of data combinations and the source program of the data division. This has the effect that only the correct source program can be created/updated in relation to the source program in the procedure division.

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

【図1】本発明の一実施例に係る構文チェック方式が適
用されたプログラム構文エディタの構成を示すブロック
図である。
FIG. 1 is a block diagram showing the configuration of a program syntax editor to which a syntax checking method according to an embodiment of the present invention is applied.

【図2】本実施例のプログラム構文エディタの構文チェ
ック方式における原始プログラム登録時の処理を示す流
れ図である。
FIG. 2 is a flowchart showing the processing at the time of registering a source program in the syntax checking method of the program syntax editor of this embodiment.

【図3】本実施例のプログラム構文エディタの構文チェ
ック方式における原始プログラム更新時の処理を示す流
れ図である。
FIG. 3 is a flowchart illustrating processing when updating a source program in the syntax checking method of the program syntax editor of this embodiment.

【図4】従来のプログラム構文エディタの一例を示すブ
ロック図である。
FIG. 4 is a block diagram illustrating an example of a conventional program syntax editor.

【符号の説明】[Explanation of symbols]

1  端末 2  画面型プログラムエディタ 3  原始プログラム入力手段 4  データ部構文/手続き部構文識別手段5  手続
き部構文チェック手段 6  データ部構文チェック手段 7  ディクショナリ登録手段 8  ソースライブラリ 9  構文エラー表示手段 81  原始プログラムファイル 82  データ部ディクショナリ
1 Terminal 2 Screen-type program editor 3 Source program input means 4 Data division syntax/procedure division syntax identification means 5 Procedure division syntax check means 6 Data division syntax check means 7 Dictionary registration means 8 Source library 9 Syntax error display means 81 Source program file 82 Data section dictionary

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  端末から投入された原始プログラムの
構文チェックを行いソースライブラリに原始プログラム
ファイルを作成/更新するプログラム構文エディタにお
いて、端末から投入された1行の原始プログラムを入力
する原始プログラム入力手段と、この原始プログラム入
力手段により入力された1行の原始プログラムがデータ
部の構文か手続き部の構文かを判断するデータ部構文/
手続き部構文識別手段と、このデータ部構文/手続き部
構文識別手段により1行の原始プログラムがデータ部の
構文であると識別されたときにデータ部の構文チェック
を行うデータ部構文チェック手段と、このデータ部構文
チェック手段による構文チェック結果に基づいて原始プ
ログラム上で定義されたデータ名およびデータ属性から
なるデータ部ディクショナリを作成するディクショナリ
登録手段と、前記データ部構文/手続き部構文識別手段
により1行の原始プログラムが手続き部の構文であると
識別されたときに手続き部の1行の原始プログラムと前
記データ部ディクショナリの情報とを入力して手続き部
の構文チェックを行う手続き部構文チェック手段と、前
記データ部構文チェック手段および前記手続き部構文チ
ェック手段によって構文チェックされた原始プログラム
の構文エラー情報を端末に表示する構文エラー表示手段
とを有することを特徴とするプログラム構文エディタの
構文チェック方式。
[Claim 1] A source program input means for inputting a one-line source program input from a terminal in a program syntax editor that checks the syntax of a source program input from a terminal and creates/updates a source program file in a source library. and a data division syntax that determines whether a single line of the source program input by this source program input means is a data division syntax or a procedure division syntax.
a procedure division syntax identifying means; a data division syntax checking means for checking the syntax of the data division when one line of the source program is identified as having the data division syntax by the data division syntax/procedure division syntax identifying means; a dictionary registration means for creating a data part dictionary consisting of data names and data attributes defined on the source program based on the syntax check result by the data part syntax checking means; and a data part syntax/procedure part syntax identifying means. a procedure division syntax checking means for checking the syntax of the procedure division by inputting the one-line source program of the procedure division and the information of the data division dictionary when the source program of the line is identified as having the syntax of the procedure division; . A syntax checking method for a program syntax editor, comprising: syntax error display means for displaying syntax error information of a source program whose syntax has been checked by the data division syntax check means and the procedure division syntax check means on a terminal.
JP3109722A 1991-04-15 1991-04-15 Syntax checking system of program syntax editor Pending JPH04316139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3109722A JPH04316139A (en) 1991-04-15 1991-04-15 Syntax checking system of program syntax editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3109722A JPH04316139A (en) 1991-04-15 1991-04-15 Syntax checking system of program syntax editor

Publications (1)

Publication Number Publication Date
JPH04316139A true JPH04316139A (en) 1992-11-06

Family

ID=14517569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3109722A Pending JPH04316139A (en) 1991-04-15 1991-04-15 Syntax checking system of program syntax editor

Country Status (1)

Country Link
JP (1) JPH04316139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538505A (en) * 2020-04-23 2020-08-14 保定康强医疗器械制造有限公司 Slitting program editing and grammar checking system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538505A (en) * 2020-04-23 2020-08-14 保定康强医疗器械制造有限公司 Slitting program editing and grammar checking system

Similar Documents

Publication Publication Date Title
JPH04316139A (en) Syntax checking system of program syntax editor
JP2681815B2 (en) Equipment control processor
JP2893989B2 (en) Electronic cash register
JPH03244022A (en) Screen customization system
JP3608864B2 (en) Typesetting method and apparatus
JPH0561666A (en) Source program forming device
JP3476338B2 (en) Information processing apparatus and computer-readable recording medium recording information processing program
JPS6033625A (en) Conversational information retrieving device
JPH03257636A (en) Interactive data preparing system
JPH04167123A (en) Mixed data processing system
JPH05257952A (en) Batch input method for desease name and medical treatment information
JPH04247552A (en) Data preparing/updating device
JPH11353162A (en) Program correction result comparing method
KR20030042240A (en) Method of processing alarm at the interactive program in a mmi system
JPH05181661A (en) General purpose menu system for each user
JP2513924B2 (en) Setting method of item definition information
JPS6285322A (en) Picture displaying system
JPH05241710A (en) Terminal input data inspecting system
JPH0916690A (en) Data input device
JPH07210579A (en) Data input/output device
JPH04130535A (en) System for supporting program development
JPH07200528A (en) System verifying device and method
JPH0511989A (en) Parameter analyzing device
JPH04317123A (en) System update information display controller
JPH096660A (en) Correlation check method for common data in plural departments