Generating a natural language specification of a computer program by generating an intermediate expression table based on a flow chart from analyzed syntax of the program
AssigneeFujitsu Limited
InventorsTakao Ohkubo, Toshiaki Yoshino
Life of this patent
Estimating the term…
Abstract
A specification generating method for a computer program comprises the steps of: analyzing the syntax of a predetermined computer program; generating a control flowchart based on the analyzed syntax; generating an intermediate expression table based on the control flowchart; providing block numbers for calls and branched destinations; attaching an item number and a heading to every call and branched destination; and generating the specification of the computer program, using a natural language based on the item number and the heading.
Claims12
A method for generating a natural language specification for a computer program comprising the steps of:
- analyzing a syntax of a computer program;
- generating a control flowchart based on the analyzed syntax, said control flowchart comprising a series of control blocks, and each control block respectively provided with a block number;
- generating an intermediate expression table including a natural language expression based on the control flowchart;
- identifying calls and branched destinations described in the intermediate expression table;
- obtaining block numbers for calls and the branched destinations described in the intermediate expressions;
- obtaining an item number and a heading for every call and branched destination based on the obtained block number;
- replacing the calls and the branched destination described in the intermediate expression table with the obtained item number and headings;
- and
- generating the specification of the computer program, using a natural language.
A computer system for generating a natural language specification of a computer program comprising:
- means for analyzing a syntax of a computer program;
- means for generating a control flowchart based on the analyzed syntax said control flowchart comprising a series of control blocks, and each control block respectively provided with a block number
- means for generating an intermediate expression table including a natural language expression based on the control flowchart;
- means for identifying calls and branched destinations described in the intermediate expression table;
- means for obtaining block numbers for the calls and the branched destinations identified in the intermediate expressions;
- means for obtaining an item number and a heading for every call and branched destination based on the obtained block number;
- replacing the calls and the branched destination described in the intermediate expression table with the obtained item number and headings;
- and
- means for generating the specification of the computer program, using a natural language.
Dependencies are inferred from the claim text.