JP2006190332A

Device, method, and program for generating program specification

Abstract

Problem to be solved.To provide a device, a method, and a program for generating program specifications, which easily and quickly generate program specifications from a source program.

Solution.A display device 21 for the device for generating program specifications provides a GUI function to a user, an input device 22 provides a data input function, an external storage device 23 preserves the source program and other project properties, and a printer 24 prints program specifications. Respective modules of a comment keyword setting part 31, a comment extraction part 32, a project property management part 33, a difference analysis part 34, a specification generation part 35, and a specification print part 36 are mounted on an arithmetic unit 25. Candidates of a keyword by which comments are retrieved from the source program are extracted, set and confirmed, and comments related to differences between files, comments related to differences between symbols, and comments related to differences between processing procedures are extracted by comment items on the basis of the confirmed keywords and are printed as revised specifications.

Copyright (C)2006,JPO&NCIPI

Term

Term ended

Projected expiry passed 24 March 2026, 0.5 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

5 claims: 3 independent, 2 dependent

  1. 1
    Comments that have the same character or symbol consecutively specified or more from the comments inserted in the source program, and comments other than comments that have the same character or symbol consecutive specified number or more in the continuous comment line are on the far left. A comment keyword candidate extraction means for extracting a comment described or a comment matching a keyword defined in a predetermined definition file as a comment keyword candidate, and a comment keyword candidate extracted by the comment keyword candidate extraction means. The comment keyword setting means for selectively confirming as a comment keyword, the comment keyword confirmation means for notifying and confirming the comment keyword confirmed by the comment keyword setting means by comparing with the source program, and the comment keyword confirmation means. A comment item extraction means for extracting comment items from the source program based on the comment keyword confirmed by the above, and a program specification generation means for generating a program specification based on the comment items extracted by the comment item extraction means. A program specification creation device characterized in that it is configured to include. ソースプログラムに挿入されているコメントから同じ文字又は記号が所定個以上連続しているコメント、連続するコメント行の中の同じ文字又は記号が所定個以上連続しているコメント以外のコメントで最左端に記述されているコメント、又は所定の定義ファイルに定義されているキーワードに一致するコメントをコメントキーワードの候補として抽出するコメントキーワード候補抽出手段と、該コメントキーワード候補抽出手段により抽出されたコメントキーワードの候補をコメントキーワードとして選択的に確定するコメントキーワード設定手段と、該コメントキーワード設定手段により確定されたコメントキーワードを前記ソースプログラムと照らし合わせて報知して確認するコメントキーワード確認手段と、該コメントキーワード確認手段により確認されたコメントキーワードに基づいて前記ソースプログラムからコメント項目を抽出するコメント項目抽出手段と、該コメント項目抽出手段により抽出されたコメント項目に基づいてプログラム仕様書を生成するプログラム仕様書生成手段と、を含んで構成されたことを特徴とするプログラム仕様書作成装置。
  2. 4
    A comment other than a comment in which the same character or symbol is continuous by a predetermined number or more from a comment inserted in the source program to the computer, or a comment in which the same character or symbol is continuous by a predetermined number or more in a continuous comment line. It is extracted by the comment keyword candidate extraction function that extracts the comment described at the leftmost end of the comment or the comment that matches the keyword defined in the predetermined definition file as a comment keyword candidate, and the comment keyword candidate extraction function. A comment keyword setting function that selectively confirms a comment keyword candidate as a comment keyword, and a comment keyword confirmation function that notifies and confirms a comment keyword confirmed by the comment keyword setting function by comparing it with the source program. A comment item extraction function that extracts comment items from the source program based on the comment keywords confirmed by the comment keyword confirmation function, and a program that generates a program specification based on the comment items extracted by the comment item extraction function. A program specification creation program to realize the specification generation function. コンピュータに対して、ソースプログラムに挿入されているコメントから同じ文字又は記号が所定個以上連続しているコメント、連続するコメント行の中の同じ文字又は記号が所定個以上連続しているコメント以外のコメントで最左端に記述されているコメント、又は所定の定義ファイルに定義されているキーワードに一致するコメントをコメントキーワードの候補として抽出するコメントキーワード候補抽出機能と、該コメントキーワード候補抽出機能により抽出されたコメントキーワードの候補をコメントキーワードとして選択的に確定するコメントキーワード設定機能と、該コメントキーワード設定機能により確定されたコメントキーワードを前記ソースプログラムと照らし合わせて報知して確認するコメントキーワード確認機能と、該コメントキーワード確認機能により確認されたコメントキーワードに基づいて前記ソースプログラムからコメント項目を抽出するコメント項目抽出機能と、該コメント項目抽出機能により抽出されたコメント項目に基づいてプログラム仕様書を生成するプログラム仕様書生成機能と、を実現させるためのプログラム仕様書作成プログラム。
  3. 5
    A recording medium in which a program for creating a program specification is recorded so that it can be read by a computer. A comment in which the same characters or symbols are consecutive by a predetermined number or more from a comment inserted in the source program, the same in a continuous comment line With the function to extract the comment described at the leftmost end of the comment other than the comment in which a predetermined number or more of characters or symbols are continuous, or the comment matching the keyword defined in the predetermined definition file as a comment keyword candidate. , The function to selectively confirm the extracted comment keyword candidates as comment keywords, the function to notify and confirm the confirmed comment keywords by comparing with the source program, and the confirmed comment keywords. A recording medium recording a program specification creation program for causing a computer to execute a function of extracting a comment item from the source program based on the above and a function of generating a program specification based on the extracted comment item. プログラム仕様書作成プログラムをコンピュータによる読み取り可能に記録した記録媒体であって、ソースプログラムに挿入されているコメントから同じ文字又は記号が所定個以上連続しているコメント、連続するコメント行の中の同じ文字又は記号が所定個以上連続しているコメント以外のコメントで最左端に記述されているコメント、又は所定の定義ファイルに定義されているキーワードに一致するコメントをコメントキーワードの候補として抽出する機能と、抽出された前記コメントキーワードの候補をコメントキーワードとして選択的に確定する機能と、確定された前記コメントキーワードを前記ソースプログラムと照らし合わせて報知して確認する機能と、確認された前記コメントキーワードに基づいて前記ソースプログラムからコメント項目を抽出する機能と、抽出された前記コメント項目に基づいてプログラム仕様書を生成する機能と、をコンピュータに実行させるためのプログラム仕様書作成プログラムを記録した記録媒体。