[go: up one dir, main page]

JPS62177628A - Processing system for graphic language error - Google Patents

Processing system for graphic language error

Info

Publication number
JPS62177628A
JPS62177628A JP61019469A JP1946986A JPS62177628A JP S62177628 A JPS62177628 A JP S62177628A JP 61019469 A JP61019469 A JP 61019469A JP 1946986 A JP1946986 A JP 1946986A JP S62177628 A JPS62177628 A JP S62177628A
Authority
JP
Japan
Prior art keywords
source program
language
error
program
pad
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
JP61019469A
Other languages
Japanese (ja)
Inventor
Makoto Kogure
木暮 誠
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP61019469A priority Critical patent/JPS62177628A/en
Publication of JPS62177628A publication Critical patent/JPS62177628A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To detect easily the grammatical error of a source program described in a graphic program language out of a compiling error list, by using a labeling means and a source program converting means. CONSTITUTION:An input/output control module 203 judges the compiling command of a source program described in a graphic program language PAD and drives a labeling module 201 and a source program convertion module 202. Then an object program and a compiling error list are produced via both modules 201 and 202 and an existing language compiler 206. The contents of a PAD source program memory 204 consisting of a BOX labeled by the module 203 are read out and displayed or printed in order to detect the grammatical errors out of said error list. Thus the grammatical errors of the source program described in the PAD can be detected easily out of the compiling error list.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は図形的プログラム言語で記述されたソースプロ
グラムを、テキスト形式言語で記述されたソースプログ
ラムに変換するさいに使用される図形8語エラー処理シ
ステムに関する。
Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to a graphical 8-word error handling method used when converting a source program written in a graphical programming language to a source program written in a text format language. Regarding the system.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

図形的プログラムtsmたとえばPADを用いて図形的
にプログラムを設計し、それをC言語やFORTRAN
のようなテキスト形式で記述された既存言語のソースプ
ログラムに変換するツールが知られている。第6図はこ
のような変換ツールを用いてプログラム変換をおこなう
手順を説明したフローチャートである。
Graphical program tsmFor example, design a program graphically using PAD, and then write it in C language or FORTRAN.
There are known tools for converting existing language source programs written in text format, such as . FIG. 6 is a flowchart illustrating the procedure for converting a program using such a conversion tool.

プログラマ−はまず、PADンースプログラム101を
図形的にプログラム設計する。次に変換ツール102を
用いて既存のソースプログラム103に変換する。つい
で既存のコンパイラ104により、オブジェクトプログ
ラム105とコンパイルエラーリスト106とを得る。
First, the programmer designs the PAD program 101 graphically. Next, the conversion tool 102 is used to convert it into an existing source program 103. Next, an object program 105 and a compilation error list 106 are obtained using the existing compiler 104.

このエラーリスト106を調べ、エラーがあれば再びP
ADソースプログラム101を修正し、エラーが無くな
るまでこのような処理を繰り返す。
Check this error list 106, and if there is an error, press again.
The AD source program 101 is corrected and such processing is repeated until the error disappears.

ただし第6図に示したフローチャートは、プログラムが
仕様を満足しているかどうかのチェック以前におこなわ
れるフローを示したものである。
However, the flowchart shown in FIG. 6 shows the flow that is performed before checking whether the program satisfies the specifications.

ところがエラーリスト106は、既存のソースプログラ
ム103上の文法的誤り位置を、既存のソースプログラ
ム103に付されたラインナンバーにより指摘′するの
みであり(第6図の点線A)、PADソースプログラム
101上の誤り位置の指摘(第6図の点線矢印B)はし
ない。したがって、PADンースプログラム101の文
法的誤り位置を発見するためには、PADソースプログ
ラム101と既存のソースプログラム103とを見比べ
て(第6図の点線矢印C)おこなわねばならない欠点が
あった。
However, the error list 106 only points out the grammatical error position in the existing source program 103 by the line number attached to the existing source program 103 (dotted line A in FIG. 6), and the PAD source program 101 Do not point out the above error position (dotted arrow B in Figure 6). Therefore, in order to discover the location of a grammatical error in the PAD source program 101, it is necessary to compare the PAD source program 101 with the existing source program 103 (dotted arrow C in FIG. 6).

〔発明の目的〕 本発明は上記事情を考慮してなされたもので、図形的プ
ログラム言語で記jLされたソースプログラム上の文法
的誤りを、コンパイルして(りられIζエラーリストか
ら容易に指摘することのできる図形言語エラー処理シス
テムを提供することを目的とする。
[Object of the Invention] The present invention has been made in consideration of the above-mentioned circumstances, and it is possible to easily point out grammatical errors in a source program written in a graphical programming language by compiling (reading) from an error list. The purpose of this invention is to provide a graphical language error handling system that can perform the following tasks.

〔発明の概要〕[Summary of the invention]

上記の目的を達成するため本発明は、図形的プログラム
言語で記述された第1のソースプログラムをテキスト形
式言語で記述された第2のソースプログラムに変換した
後、コンパイラを用いて第2のソースプログラムからオ
ブジェクトプログラムとコンパイルエラーリストとを得
る図形言語エラー処理システムであって、第1のソース
プログラムの全てのBOXにラベルを付加ザるラベリン
グ手段と、付加されたラベルをラインナンバと対応づけ
て第1のソースプログラムを第2のソースプログラムに
変換する手段とを備え、コンパイルエラーリストにライ
ンナンバで表示された第2のソースプログラムのエラー
を第1のソースプログラムのBOXに付加されたラベル
に対応づけて表示することを特徴とする図形言語エラー
処理システムを提供するものである。
In order to achieve the above object, the present invention converts a first source program written in a graphical programming language into a second source program written in a text format language, and then uses a compiler to convert the second source program into a second source program written in a text format language. A graphical language error processing system that obtains an object program and a compilation error list from a program, the system comprising a labeling means for adding labels to all BOXes of a first source program, and associating the added labels with line numbers. means for converting the first source program into a second source program; The present invention provides a graphical language error processing system characterized by displaying images in association with each other.

(発明の実施例〕 以下、本発明を図示する実施例に基づいて詳細に説明す
る。
(Embodiments of the Invention) The present invention will be described in detail below based on illustrated embodiments.

@1図は本発明の一実施例にかかる図形言語エラー処理
システムの構成を示すブロック図である。
Figure @1 is a block diagram showing the configuration of a graphical language error processing system according to an embodiment of the present invention.

本システムの全ての制御を統括管理するCPU207の
ちとに、ラベリングモジュール201、ソースプログう
ム変換モジュール202、入出力管理モジュール203
、PADソースプログラムメモリ204、既存ソースプ
ログラムメモリ205および既存言語コンパイラ206
が備えられている。また入出力管理モジュール203に
は、キーボード208、CRT209およびプリンター
210が接続されており、情報の入出力をおこなってい
る。
After the CPU 207, which centrally manages all the controls of this system, there is a labeling module 201, a source program conversion module 202, and an input/output management module 203.
, PAD source program memory 204, existing source program memory 205, and existing language compiler 206
is provided. Further, a keyboard 208, a CRT 209, and a printer 210 are connected to the input/output management module 203, and input and output information.

ラベリングモジュール201はPADソースプログラム
の全てのBOXにラベルを付加するためのモジュールで
、同時にここで付加されたラベルは対応する既存言語ソ
ースプログラムのラインナンバーに対応するようにソー
スプログラム変換モジュール202により変換される。
The labeling module 201 is a module for adding labels to all BOXes of the PAD source program, and at the same time, the labels added here are converted by the source program conversion module 202 so that they correspond to the line numbers of the corresponding existing language source program. be done.

ソースプログラム変換モジュール202はPADソース
プログラムを既存言語ソースプログラムに変換するモジ
ュールであって、前述したように付加されたラベルをラ
インナンバーに対応する形で変換する機能をも有してい
る。
The source program conversion module 202 is a module that converts a PAD source program into an existing language source program, and also has a function of converting an added label into a form corresponding to a line number as described above.

入出力管理モジュール203はキーボード208のコマ
ンドを解釈し、CRT209やプリンター210へ表示
、印刷する機能を有している。
The input/output management module 203 has a function of interpreting commands from the keyboard 208 and displaying and printing them on the CRT 209 and printer 210.

PADソースプログラムメモリ204および既存言語ソ
ースプログラムメモリ205は、それぞれ対応するソー
スプログラムを記憶、格納しておくためのメモリである
。既存言語コンパイラ206は既存言語ソースプログラ
ムメモリ205に格納された既存言語から、オブジェク
トプログラムとコンパイルエラーリストとを作製するた
めの機能を有してい、る。CPU207は以上説明した
すべてのモジュ5−ル、メモリおよび装置を統括管理し
ている。
The PAD source program memory 204 and the existing language source program memory 205 are memories for storing corresponding source programs. The existing language compiler 206 has a function for creating an object program and a compilation error list from the existing language stored in the existing language source program memory 205. The CPU 207 centrally manages all the modules, memories, and devices described above.

次に第1図に示すシステムの動作を説明する。Next, the operation of the system shown in FIG. 1 will be explained.

まずキーボード208によりPADソースプログラムの
コンパイルコマンドが与えられると、入出力管理モジュ
ール203がそれを判断しラベリングモジュール201
、ソースプログラム変換モジュール202を駆動させる
。ラベリングモジュール201はPADソースプログラ
ムメモリ204から取出したBOXにラベルを付加し、
再びメモリ204へ戻′す。
First, when a compile command for the PAD source program is given from the keyboard 208, the input/output management module 203 judges it and the labeling module 201
, drives the source program conversion module 202. The labeling module 201 adds a label to the BOX retrieved from the PAD source program memory 204,
The data is returned to the memory 204 again.

ソースプログラム変換モジュール202は、BOXを既
存言語記述に変換して既存言語ソースプログラムに変え
るにさいし、上述したラベルをラインナンバーとして変
換する。変換された既存Ei Hソースプログラムはメ
モリ205ヘセーブされる。ラベリングモジュール20
1とソースプログラム変換モジュール202とは同期し
て動作する。
The source program conversion module 202 converts the above-mentioned label as a line number when converting BOX into an existing language description and converting it into an existing language source program. The converted existing EiH source program is saved in memory 205. Labeling module 20
1 and the source program conversion module 202 operate synchronously.

このようにしてソースプログラム間の変換が終ったのち
、既存言語コンパイラ206が駆動され、このコンパイ
ラ206によりオブジェクトプログラムとコンパイルエ
ラーリストとが作製される。
After the conversion between source programs is completed in this way, the existing language compiler 206 is activated, and the compiler 206 creates an object program and a compilation error list.

このコンパイラ206はソースプログラムに誤りがあれ
ば、誤り個所をソースプログラムのラインナンバーで指
摘する機能を有する既存のコンパイラであり、コンパイ
ルエラーリストは入出力管理モジュール203へ送られ
てCRT209またはプリンタ210へ表示または印字
される。
This compiler 206 is an existing compiler that has the function of pointing out the error location using the line number of the source program if there is an error in the source program, and the compilation error list is sent to the input/output management module 203 and sent to the CRT 209 or printer 210. Displayed or printed.

さて表示または印字されたコンパイルエラーリストから
PADソースプログラムの誤り位置をさがすには、次の
ような操作をおこなう。コンパイルエラーリストには誤
り位置を示すラインナンバーが表示されているので、キ
ーボード208からPADソースプログラムの表示また
は印字のコマンドを与えれば、入出力管理モジュール2
03がそれを判断する。すなわち、先にラベル付けされ
たBOXからなるPADソースプログラムメモリ204
の内容を読み出し、CRT209またはブリンク210
に表示または印字する。エラーリストに示されるライン
ナンバーとPADソースプログラムのラベルは、前述し
たように対応づけられているため誤り個所は一目でわか
る。
Now, to find the error location in the PAD source program from the displayed or printed compilation error list, perform the following operations. The compile error list displays the line number indicating the error position, so if you give a command to display or print the PAD source program from the keyboard 208, the input/output management module 2
03 will judge that. That is, the PAD source program memory 204 consists of the previously labeled BOX.
Read the contents of CRT 209 or Blink 210
Display or print on. Since the line numbers shown in the error list and the labels of the PAD source program are associated with each other as described above, the error location can be identified at a glance.

次に第2図〜第5図に示すプログラム変換フオームを用
いて、さらに具体的に説明する。
Next, a more specific explanation will be given using the program conversion forms shown in FIGS. 2 to 5.

まず、第2図に示すPADで記述されたソースプログラ
ムは、ソース変換モジュール202により第4図に示す
ような既存言語によるソースプログラムに変換される。
First, the source program written in PAD shown in FIG. 2 is converted by the source conversion module 202 into a source program written in an existing language as shown in FIG. 4.

同時に?A3図に示すように、ラベリングモジュール2
01により各BOXに対してラインナンバー300と対
応するラベル400が付加される。
at the same time? As shown in figure A3, labeling module 2
01, a line number 300 and a corresponding label 400 are added to each BOX.

次に第4図に示す既存言語によるソースプログラムにエ
ラーがある場合には、コンパイラ206により第5図に
示すようにエラー個所がラインナンバー300で指摘さ
れ、これがエラーリストとして出力される。例えば、!
T5図で示されるラインナンバー300は、第3図で示
されるラベル400と対応しているためPADソースプ
ログラムのエラー個所が一目で判別できる。
Next, if there is an error in the source program written in the existing language shown in FIG. 4, the compiler 206 points out the error location using a line number 300 as shown in FIG. 5, and outputs this as an error list. for example,!
Since the line number 300 shown in Figure T5 corresponds to the label 400 shown in Figure 3, the error location in the PAD source program can be identified at a glance.

なお上述した説明において、変換前のプログラム記述言
語としてPADを取り上げたが、PADに限定されるも
のではなく、ラインナンバーを持っていないすべての図
形的プログラム言語で記述されたソースプログラムにつ
いても、本発明を適用することができる。
In the above explanation, PAD was used as the program description language before conversion, but this is not limited to PAD, and this book also covers source programs written in all graphical programming languages that do not have line numbers. The invention can be applied.

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

以上説明したように本発明では、図形的プログラム言語
をテキスト形式言語に変換するにさいして、図形的゛プ
ログラム言語のすべてのBOXにラベルを付加し、この
付加されたラベルをラインナンバーと対応づけて変換す
るようにしているため、コンパイルエラーリストから図
形的プログラム言語におけるエラー個所を容易に認識す
ることができる図形言語エラー処理システムが得られる
As explained above, in the present invention, when converting a graphical programming language into a text format language, labels are added to all boxes of the graphical programming language, and the added labels are associated with line numbers. As a result, a graphical language error processing system can be obtained that can easily recognize error locations in a graphical programming language from a compilation error list.

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

第1図は本発明の一実施例に係る図形言語エラー処理シ
ステムの構成を示寸ブロック図、第2図乃至第5図は本
発明によるプログラム変換を説明するために用いるプロ
グラム変換フオーム、第6図は従来のプログラム変換の
手順を説明するためのフローチャートである。 201・・・ラベリングモジュール、202・・・ソー
スプログラム変換モジュール、203・・・入出力管理
モジュール、204・・・PADソースプログラムメモ
リ、205・・・既存言語ソースプログラムメモリ、2
06・・・既存言語コンパイラ。 出願人代理人  佐  藤  −雄 第1図 初、10 5UBROUTINE 5aODD20  
READ  01 30  CAu GETSYM(X) 40 1F (MOD(X、2)、EQ、 1)50 
 THEN FLG= ’YES’60  ELSE 
FLG= N6“6第4図 帛5図
FIG. 1 is a block diagram showing the configuration of a graphical language error processing system according to an embodiment of the present invention, FIGS. 2 to 5 are program conversion forms used to explain program conversion according to the present invention, and FIGS. The figure is a flowchart for explaining the conventional program conversion procedure. 201... Labeling module, 202... Source program conversion module, 203... Input/output management module, 204... PAD source program memory, 205... Existing language source program memory, 2
06... Existing language compiler. Applicant's representative Mr. Sato Figure 1 First, 10 5UBROUTINE 5aODD20
READ 01 30 CAu GETSYM(X) 40 1F (MOD(X, 2), EQ, 1) 50
THEN FLG='YES'60 ELSE
FLG = N6 “6 Figure 4 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 図形的プログラム言語で記述された第1のソースプログ
ラムをテキスト形式言語で記述された第2のソースプロ
グラムに変換した後、コンパイラを用いて前記第2のソ
ースプログラムからオブジェクトプログラムとコンパイ
ルエラーリストとを得る図形言語エラー処理システムに
おいて、前記第1のソースプログラムの全てのBOXに
ラベルを付加するラベリング手段と、付加されたラベル
をラインナンバーと対応づけて前記第1のソースプログ
ラムを前記第2のソースプログラムに変換する手段とを
備え、前記コンパイルエラーリストにラインナンバで表
示された前記第2のソースプログラムのエラーを前記第
1のソースプログラムのBOXに付加されたラベルに対
応づけて表示することを特徴とする図形言語エラー処理
システム。
After converting a first source program written in a graphical programming language into a second source program written in a text format language, a compiler is used to extract an object program and a compilation error list from the second source program. a graphical language error processing system to obtain a graphical language error processing system, further comprising a labeling means for adding labels to all BOXes of the first source program, and a labeling means for attaching labels to all BOXes of the first source program; a means for converting the second source program into a program, and displaying errors in the second source program displayed by line numbers in the compile error list in association with labels added to the BOX of the first source program. Features a graphical language error handling system.
JP61019469A 1986-01-31 1986-01-31 Processing system for graphic language error Pending JPS62177628A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61019469A JPS62177628A (en) 1986-01-31 1986-01-31 Processing system for graphic language error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61019469A JPS62177628A (en) 1986-01-31 1986-01-31 Processing system for graphic language error

Publications (1)

Publication Number Publication Date
JPS62177628A true JPS62177628A (en) 1987-08-04

Family

ID=12000176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61019469A Pending JPS62177628A (en) 1986-01-31 1986-01-31 Processing system for graphic language error

Country Status (1)

Country Link
JP (1) JPS62177628A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63128431A (en) * 1986-11-18 1988-06-01 Omron Tateisi Electronics Co Producing device for process language string collation type flow chart
WO2001088704A1 (en) * 2000-05-16 2001-11-22 Eurocity Online Real time translation of user interfaces in an arbitrary application

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63128431A (en) * 1986-11-18 1988-06-01 Omron Tateisi Electronics Co Producing device for process language string collation type flow chart
WO2001088704A1 (en) * 2000-05-16 2001-11-22 Eurocity Online Real time translation of user interfaces in an arbitrary application

Similar Documents

Publication Publication Date Title
JPS62177628A (en) Processing system for graphic language error
JPS6167131A (en) Document automatic output control method
CN115774549A (en) Page character code editing system and method of airborne display equipment
JP2002032223A (en) Application generating apparatus for multiple OSs and recording medium
CA1259138A (en) Method of compiling high level language statements into low level language instruction sets
JPH0510691B2 (en)
JP2847861B2 (en) Portable byte string data converter
JPS6057479A (en) Form producer
JP4198844B2 (en) Display position control system, display position control method, and recording medium
JPH02264356A (en) Character frame designing method for ocr slip in slip cad system
JPH0535782A (en) Language converter
JPS6028987Y2 (en) Program operation device
JPH0399385A (en) Method for forming control program for optical reader
JPH0318214B2 (en)
JPH04294404A (en) Numerical controller for robot and its system program developing device
JPH03176740A (en) Source file compatibility method
JPS6097390A (en) Large capacity display system
JPH02278339A (en) Robot program translation device and robot controller
JPS6051950A (en) Program outputting system
JPH10111885A (en) Common data management method for CAD drawings
JPH05334058A (en) Data editing device
JPS6170642A (en) Remote maintenance display system
JPS6257036A (en) Execution module generating device
JPH02291082A (en) Graphic processor
JPH0335315A (en) Print controller