JPH04165533A - Data information offering device - Google Patents

Data information offering device

Info

Publication number
JPH04165533A
JPH04165533A JP2292752A JP29275290A JPH04165533A JP H04165533 A JPH04165533 A JP H04165533A JP 2292752 A JP2292752 A JP 2292752A JP 29275290 A JP29275290 A JP 29275290A JP H04165533 A JPH04165533 A JP H04165533A
Authority
JP
Japan
Prior art keywords
information
variable
block
source program
pointer
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
JP2292752A
Other languages
Japanese (ja)
Inventor
Toshiyuki Koo
小尾 俊之
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 JP2292752A priority Critical patent/JPH04165533A/en
Publication of JPH04165533A publication Critical patent/JPH04165533A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To simply and quickly obtain the derived information and to improve the efficiency of a programming work and the quality by generating an information table in which information related to a variable is registered by analyzing a source program, and retrieving the information table, when an offer of variable information is requested from a user. CONSTITUTION:At the time of generating a variable information table 6, a code analyzing part 7 reads in a source program from a source file 4, analyzes it and generates information related to a variable in accordance with grammar of program language. Subsequently, in the case it is desired to receive an information offer related to a variable, when a variable on the source program is outputted to an information retrieving part 8 through a control/interface part 5 from an input device 3, the information retrieving part 8 specifies an information block by following an effective information pointer of a variable block whose variable name coincides. Next, information related to the variable registered in its information block is displayed on a screen of a display device 2. In such a way, the information related to the variable can be obtained simply and quickly, and the efficiency of a programming work and the quality can be improved.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ソフトウェアのコーディング、デパック、保
守等の作業を行う際に用いられるデータ情報提供装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a data information providing device used when performing tasks such as software coding, depacking, and maintenance.

(従来の技術) 近年、プログラムの大規模化、複雑化に伴い、そのなか
で用いられる変数(データ)の種類や数も増大する傾向
にある。こうしたなか、変数の型宣言が別のファイル(
パッケージ)やモジュール等で行われたり、他人が宣言
した変数を用いるということか類繁に行われている。
(Prior Art) In recent years, as programs have become larger and more complex, the types and number of variables (data) used in them have also tended to increase. Under these circumstances, the variable type declaration is in a separate file (
It is often done in packages), modules, etc., or by using variables declared by others.

そのため、プログラマが利用しようとする変数の型や初
期値が、プログラマ自身分らないようなことが多々起こ
る。このような場合、宣言しである場所(ファイル、モ
ジュール等)を即座に確認できればよいが、通常それを
知る手掛かりは同等用意されていないため、早急には確
認できないことが普通である。また、変数の有効範囲を
限定することができる言語では、常にその変数が使える
か否かを確認する必要がある。いずれにせよこれらの作
業をプログラミング作業と並行して実施していたのでは
大変に効率が悪く、ひいては品質の低下を招くという問
題があった。
Therefore, it often happens that the programmer does not know the type or initial value of the variable that the programmer wants to use. In such cases, it would be good if you could immediately check the location (file, module, etc.) of the declaration, but there are usually no clues to find out, so it is usually not possible to check immediately. Furthermore, in languages where the effective range of variables can be limited, it is necessary to always check whether the variable can be used. In any case, if these tasks were performed in parallel with the programming task, it would be very inefficient, leading to a problem of quality deterioration.

(発明が解決しようとする課題) このように、従来、ソフトウェアのコーディング、デバ
ッグあるいは保守等の作業において変数についての情報
を知りたくなっても、これを簡単かつ即座に確認するこ
とが困難であると言う問題があった。
(Problem to be Solved by the Invention) As described above, in the past, even if one wanted to know information about variables during work such as software coding, debugging, or maintenance, it was difficult to check this easily and immediately. There was a problem.

本発明はこのような事情に鑑みてなされたもので、変数
に関する情報を簡単かつ迅速に得ることができ、これに
よりプログラミング作業の効率および品質の向上が期待
できるデータ情報提供装置の提供を目的としている。
The present invention was made in view of the above circumstances, and an object of the present invention is to provide a data information providing device that can easily and quickly obtain information regarding variables, thereby improving the efficiency and quality of programming work. There is.

[発明の構成] (1題を解決するための手段) 本発明のデータ情報提供装置は上記目的を達成するため
に、ソースプログラムを解析して変数に関する情報テー
ブルを作成する変数情報テーブル作成手段と、この変数
情報テーブル作成手段により作成された情報テーブルを
基に、利用者から提供要求のあった変数についての情報
検索を行う情報検索手段と、この情報検索手段により検
索された情報を利用者に提供する情報表示手段とを具備
している。
[Structure of the Invention] (Means for Solving One Problem) In order to achieve the above object, the data information providing device of the present invention includes variable information table creation means for analyzing a source program and creating an information table regarding variables. , an information retrieval means for retrieving information about variables requested by the user based on the information table created by the variable information table creation means; and information display means to provide the information.

(作 用) 本発明のデータ情報提供装置では、まず変数情報テーブ
ル作成手段により、ソースプログラムを解析して変数に
関する情報を登録した情報テーブルを作成する。その後
、利用者からの変数情報の提供要求があると、情報検索
手段は情報テーブルを基にその変数に関する情報を検索
する。そして情報表示手段は、検索された情報を利用者
に提供する。
(Function) In the data information providing device of the present invention, first, the variable information table creation means analyzes a source program and creates an information table in which information regarding variables is registered. Thereafter, when there is a request from the user to provide variable information, the information search means searches for information regarding the variable based on the information table. The information display means then provides the retrieved information to the user.

したがってこの発明によれば、利用者が求める変数に関
する情報を簡単かつ迅速に得ることかでき、これにより
プログラミング作業の効率および品質の向上を図ること
ができる。
Therefore, according to the present invention, information regarding the variables desired by the user can be obtained easily and quickly, thereby improving the efficiency and quality of programming work.

(実施例) 以下、本発明の実施例の詳細を図面に基づいて説明する
(Example) Hereinafter, details of an example of the present invention will be described based on the drawings.

第1図は本発明の一実施例に係るデータ情報提供装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a data information providing apparatus according to an embodiment of the present invention.

同図に示すように、このデータ情報提供装置は、本体装
置1と、CRTデイスプレィや液晶デイスプレィ等の表
示装置2と、キーボードやタブレット等の入力装置3と
、ソースプログラムが格納されたソースファイル4とか
らその主要部が構成されている。
As shown in the figure, this data information providing device includes a main unit 1, a display device 2 such as a CRT display or a liquid crystal display, an input device 3 such as a keyboard or a tablet, and a source file 4 in which a source program is stored. The main part is composed of.

また本体装置1は、各部の制御や他ツールとのインタフ
ェースを司る制御φインタフェース部5と、この制御・
インタフェース部5からの指示によりソースファイル4
からソースプログラムを読み込み解析して、その解析結
果からプログラム言語の文法に従って変数に関する情報
である変数名やその変数の型名および初期値等からなる
変数情報テーブル6を作成するコード解析部7と、作業
者から情報提供要求のあった変数に関する情報を変数情
報テーブル6から検索する情報検索部8と、検索された
情報を表示装W2の画面上に表示したり、特定のデバイ
ス(例えばプリンタ)へ出力する等の情報表示制御を行
う表示制御部9とから構成されている。
The main device 1 also includes a control φ interface unit 5 that controls each part and interfaces with other tools, and a control interface unit 5 that controls each part and interfaces with other tools.
Source file 4 according to instructions from interface unit 5
a code analysis unit 7 that reads and analyzes a source program from the source program and creates a variable information table 6 consisting of variable names, variable type names, initial values, etc. that are information about variables according to the grammar of the programming language from the analysis results; An information search unit 8 searches the variable information table 6 for information regarding a variable for which information provision has been requested by a worker, and displays the searched information on the screen of the display device W2 or sends it to a specific device (for example, a printer). It is composed of a display control section 9 that performs information display control such as output.

第2図は変数情報テーブル6の構成を示す図である。な
お、この変数情報テーブル6はソースファイル4内のソ
ースプログラム毎に作成される。
FIG. 2 is a diagram showing the structure of the variable information table 6. Note that this variable information table 6 is created for each source program in the source file 4.

同図において、210はコントロールブロックであり、
このコントロールブロック210は、ソースプログラム
内の各モジュールの名称とそのモジュールのモジュール
コントロールブロックへのポインタP1とからなってい
る。またモジュールコントロールブロック220は、モ
ジュール内で宣言・定義されている変数の最初の変数ブ
ロック231へのポインタP2と、次に情報登録可能な
変数ブロック232へのポインタP3とからなっている
。さらに各変数ブロック231〜234は、それぞれ自
身(変数)の名称(変数名)と、最初の情報ブロック2
41.242.243へのポインタP4と、次の変数ブ
ロックへのポインタP5と、現在有効となっている情報
ブロック241.243.244へのポインタ(有効情
報ポインタ)P6とからなっている。そして情報ブロッ
ク241〜244は、変数の型や初期値等の情報と、次
の情報ブロック244へのポインタP7(情報ブロック
が複数ある場合)からなっている。
In the figure, 210 is a control block;
This control block 210 consists of the name of each module in the source program and a pointer P1 to the module control block of that module. The module control block 220 also includes a pointer P2 to the first variable block 231 of variables declared and defined in the module, and a pointer P3 to the next variable block 232 in which information can be registered. Furthermore, each variable block 231 to 234 has its own (variable) name (variable name) and the first information block 2.
It consists of a pointer P4 to 41.242.243, a pointer P5 to the next variable block, and a pointer (valid information pointer) P6 to the currently valid information block 241.243.244. The information blocks 241 to 244 are made up of information such as variable types and initial values, and a pointer P7 to the next information block 244 (if there are multiple information blocks).

次にこのデータ情報提供装置の動作を説明する。Next, the operation of this data information providing device will be explained.

変数情報テーブル6の作成において、まずコード解析部
7はソースファイル4からソースプログラムを読み込み
、これを解析して、その結果からプログラム言語の文法
に従って変数に関する情報、例えば変数名、その変数の
型名および初期値等の情報を作成する。そしてコントロ
ールブロック中の該当するモジュール名に対応するポイ
ンタにつながれたモジュールコントロールブロックを参
照し、ここに登録された“次に情報登録可能な変数ブロ
ックへのポインタ”を辿ってそこに変数名を書き込む。
In creating the variable information table 6, the code analysis unit 7 first reads the source program from the source file 4, analyzes it, and uses the results to extract information about variables, such as variable names and type names of the variables, according to the grammar of the programming language. and create information such as initial values. Then, refer to the module control block connected to the pointer corresponding to the corresponding module name in the control block, trace the "pointer to the next variable block where information can be registered" registered here, and write the variable name there. .

さらにコード解析部7は、その変数に関する情報を情報
ブロックに書き込んで前記変数ブロックとこの情報ブロ
ックとをポインタでつなげるとともに、前記モジュール
コントロールブロック内の“次に情報登録可能な変数ブ
ロックへのポインタ“を更新する。
Furthermore, the code analysis unit 7 writes information regarding the variable into an information block, connects the variable block and this information block with a pointer, and also writes the "pointer to the next variable block in which information can be registered" in the module control block. Update.

また、既にある変数に対して新しい宣言・定義が行われ
た場合、コード解析部7は、別の情報ブロックにその変
数に関する情報を書き込み、これを一つ前の情報ブロッ
クとポインタでつなげる。
Furthermore, when a new declaration or definition is made for an existing variable, the code analysis unit 7 writes information regarding that variable in another information block, and connects this to the previous information block using a pointer.

そして変数ブロックの有効情報ポインタを令書き込んだ
情報ブロックに付は換える。また途中で変数の有効範囲
が変った時は、逆に一つ前の情報ブロックに有効情報ポ
インタを付は換える。
Then, the effective information pointer of the variable block is assigned to the information block in which the instruction was written. Also, when the effective range of a variable changes during the process, the effective information pointer is changed to the previous information block.

以上のようにして変数情報テーブル6が作成される。The variable information table 6 is created as described above.

その後、コーディング、デバッグ、保守等の作業におい
て、変数に関する情報提供を受けたい場合は、ソースプ
ログラム上の変数を、例えば表示装置2の画面上で指定
しながら変数情報提供の指示を入力装置3から制御・イ
ンタフェース部5を通じて情報検索部8に出す。すると
情報検索部8は、変数情報テーブル6の該当するモジュ
ール名のモジュールコントロールブロックで指示されて
いる最初の変数ブロックから順に、各変数ブロック内の
変数名と情報提供を受けようとしている変数名とを比較
して行き、変数名が一致した変数ブロックの有効情報ポ
インタを辿って情報ブロックを特定する。そしてその情
報ブロックに登録された変数に関する情報を表示装置2
の画面上に表示して作業者に提供する。
After that, if you want to receive information about variables during coding, debugging, maintenance, etc., specify the variables in the source program on the screen of the display device 2, for example, and input instructions for providing variable information from the input device 3. The information is sent to the information retrieval section 8 through the control/interface section 5. Then, the information search unit 8 searches the variable name in each variable block and the variable name for which information is to be provided, in order from the first variable block specified in the module control block of the corresponding module name in the variable information table 6. are compared, and the valid information pointer of the variable block with the matching variable name is followed to identify the information block. Then, information regarding the variables registered in that information block is displayed on the display device 2.
displayed on the screen and provided to the worker.

例えば、第3図に示すようなソースプログラムをコーデ
ィングしている途中で、図中P行における“C”という
変数の型を知りたい場合は、その変数の所で指示を行う
ことにより、情報検索部8は変数情報テーブル6から当
該変数の情報を検索して、その検索結果を表示制御部9
を通じて表示装置2の画面に表示する。
For example, if you are coding a source program like the one shown in Figure 3 and want to know the type of the variable "C" in line P in the diagram, you can search for information by specifying the variable. The unit 8 searches the variable information table 6 for information on the variable and displays the search results in the control unit 9.
It is displayed on the screen of the display device 2 through.

また、続けてP行以降のコーディングにおいてデータ宣
言・定義が行われた場合、コード解析部7は入力された
コードを解析し、その結果を変数情報テーブル6の新た
な情報ブロックに登録し、変数ブロックの有効情報ポイ
ンタの付は換えを行う。さらにQ行のような有効範囲の
区切れ行が入力された場合は、一つ前の情報ブロックに
変数ブロックの有効情報ポインタを付は換える。
In addition, if data declaration/definition is subsequently performed in coding after line P, the code analysis unit 7 analyzes the input code, registers the result in a new information block of the variable information table 6, and The effective information pointer of the block is replaced. Further, when a valid range dividing line such as the Q line is input, the valid information pointer of the variable block is replaced with the previous information block.

またP行より前に戻ってデータ宣言争定義が行われた場
合、コード解析部7は、指定した変数の情報ブロックが
一つのみの場合はその情報ブロックに有効情報ポインタ
を付け、複数ある場合は新規の場合と同様にソースプロ
グラムを読み込み解析して有効情報ポインタを更新する
In addition, when the data declaration conflict definition is performed by returning to the point before line P, the code analysis unit 7 attaches a valid information pointer to the information block if there is only one information block for the specified variable, and if there is more than one reads the source program, analyzes it, and updates the valid information pointer in the same way as when creating a new program.

途中でデータ宣言・定義が追加もしくは削除された場合
は情報ブロックの全体を更新する。
If data declarations/definitions are added or deleted during the process, the entire information block is updated.

かくしてこの実施例のデータ情報提供装置によれば、ソ
フトウェアのコーディング、デバッグあるいは保守作業
において、変数の型や初期値、あるいはその変数が使用
できるか否かを容易に確認でき、これにより、プログラ
ミング作業の生産性および品質の向上が期待できる。
Thus, according to the data information providing device of this embodiment, it is possible to easily check the type and initial value of a variable, or whether or not the variable can be used during software coding, debugging, or maintenance work. Improvements in productivity and quality can be expected.

[発明の効果] 以上説明したように本発明のデータ情報提供装置によれ
ば、コーディング、デバッグあるいは保守作業において
、変数に関する情報を簡単かつ迅速に得ることができ、
これによりプログラミング作業の効率アップおよび品質
向上が期待できる。
[Effects of the Invention] As explained above, according to the data information providing device of the present invention, information regarding variables can be easily and quickly obtained during coding, debugging, or maintenance work.
This can be expected to improve the efficiency and quality of programming work.

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

第1図は本発明に係る一実施例のデータ情報提供装置の
構成を示すブロック図、第2図は第1図の中の変数情報
テーブルの構成例を示す図、第3図はソースプログラム
の例を示す図である。 1・・・データ情報提供装置本体装置 2・・・表示装置 3・・・入力装置 4・・・ソースファイル 5・・・制m−インターフェース部 6・・・変数情報テーブル 7・・・コード解析部 8・・・情報検索部 9・・・表示制御部 出願人     株式会社 東芝 代理人 弁理士 須 山 佐 − 第1図 コントロールブロック 第2図 第3図
FIG. 1 is a block diagram showing the configuration of a data information providing device according to an embodiment of the present invention, FIG. 2 is a diagram showing an example of the configuration of the variable information table in FIG. 1, and FIG. It is a figure which shows an example. 1...Data information providing device main unit 2...Display device 3...Input device 4...Source file 5...Control interface section 6...Variable information table 7...Code analysis Part 8...Information search part 9...Display control part Applicant: Toshiba Corporation Patent attorney Satoshi Suyama - Figure 1 Control block Figure 2 Figure 3

Claims (1)

【特許請求の範囲】  ソースプログラムを解析して変数に関する情報テーブ
ルを作成する変数情報テーブル作成手段と、 この変数情報テーブル作成手段により作成された情報テ
ーブルを基に、利用者から提供要求のあった変数につい
ての情報検索を行う情報検索手段と、 この情報検索手段により検索された情報を利用者に提供
する情報表示手段とを具備することを特徴とするデータ
情報提供装置。
[Claims] Variable information table creation means for creating an information table regarding variables by analyzing a source program; 1. A data information providing device comprising: an information retrieval means for retrieving information about variables; and an information display means for providing a user with information retrieved by the information retrieval means.
JP2292752A 1990-10-30 1990-10-30 Data information offering device Pending JPH04165533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2292752A JPH04165533A (en) 1990-10-30 1990-10-30 Data information offering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2292752A JPH04165533A (en) 1990-10-30 1990-10-30 Data information offering device

Publications (1)

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

Family

ID=17785879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2292752A Pending JPH04165533A (en) 1990-10-30 1990-10-30 Data information offering device

Country Status (1)

Country Link
JP (1) JPH04165533A (en)

Similar Documents

Publication Publication Date Title
US6651240B1 (en) Object-oriented software development support apparatus and development support method
JPS63181033A (en) Automatic program generating system
US7178135B2 (en) Scope-based breakpoint selection and operation
JPH08202545A (en) Object-oriented system and method for generation of target language code
JP2000122886A (en) Program production system of semiconductor testing device
JPH086812A (en) Debugging method and debugger for information processing program
JPH05298052A (en) Window system and event processing method
JPH11102289A (en) Screen generating method for operation process
JPH04165533A (en) Data information offering device
JP2007041707A (en) System design support program
JPH1055339A (en) On-line business processing system
JPH06161773A (en) Generating device for parallel processing program
JP2942414B2 (en) Virtual database method
JPH0388026A (en) Data processor
JPH0468436A (en) Automatic compile and link device
JPH0327452A (en) Program debugging system
JP3139393B2 (en) Debug device
JP2004133827A (en) Core analysis system
JPH06195249A (en) Name designation method
JPH117399A (en) Data display system in object-oriented program
JPH07175619A (en) Interactive data input system
JPH0546434A (en) Program debugging system
JPH0283634A (en) Program debugging system
JPH06161723A (en) Program developing language editing device
JPH0267628A (en) Command start system