Generation of a user interface code from a corresponding declarative language program
First Claim
1. A method for automatically generating computer code in a procedural language from a program coded in a declarative language, said program having elements specifying variables and communication units, and a data flow defined by a processing sequence of said communication units, comprising the steps of:
- providing a code block file having a set of code blocks defining a basic code structure of said procedural language code;
analyzing said variables of said declarative language program to obtain variables information corresponding to said code blocks;
analyzing said data flow of said declarative language program to obtain data flow information about the order of said processing sequence in which said communication units are used, said data flow information corresponding to said code blocks;
extracting from said code block file fragments of said procedural language code; and
combining said variables information and said data flow information with said fragments of said code block file to produce said computer code in said procedural language.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for automatically generating a computer code of a procedural language program from a corresponding program in a declarative language. The declarative language program is analyzed to obtain information about variables to be described in the procedural language program and information about the data flow to be used in the procedural language program. The information extracted from the declarative language program in this analysis is combined with code blocks from a code block file to form the procedural language program that is compiled to form the computer code. This method finds particular application in a computer system with an input/output device, a processor and a memory for developing applications programs that comprise an interface declaration and a business logic. When resident in the computer system, the code generator performs the method to produce interface specific code to produce a user interface between a user and the applications program.
190 Citations
16 Claims
-
1. A method for automatically generating computer code in a procedural language from a program coded in a declarative language, said program having elements specifying variables and communication units, and a data flow defined by a processing sequence of said communication units, comprising the steps of:
-
providing a code block file having a set of code blocks defining a basic code structure of said procedural language code; analyzing said variables of said declarative language program to obtain variables information corresponding to said code blocks; analyzing said data flow of said declarative language program to obtain data flow information about the order of said processing sequence in which said communication units are used, said data flow information corresponding to said code blocks; extracting from said code block file fragments of said procedural language code; and combining said variables information and said data flow information with said fragments of said code block file to produce said computer code in said procedural language. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for automatically generating interface code in a procedural language code for an applications program having a business logic in a procedural language code, and a user interface defined in a declarative language, said user interface having variables and communications units to be processed in a predetermined order, said user interface providing an interface between a user and said applications program comprising the steps of:
-
providing a code block file having a set of code blocks defining a basic code structure of said procedural language code; analyzing said user interface to establish information on said variables used in said user interface that correspond to said code blocks; analyzing said user interface to establish data flow information on said order in which said communications units in said user interface are processed and that correspond to said code blocks; extracting from said code block file fragments of said procedural language code corresponding to said information on said variables and said data flow information; and combining said information on said variables and said data flow information with said fragments extracted from said code block file to produce said interface code in said procedural language code. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system for generating an interface code in a procedural language from a declarative language program that comprises:
-
an applications program means comprising a business logic means for performing a predetermined task, and an interface declaration means having variables and communications units processed in a predetermined order, said interface declaration means coded as said declarative language program for providing a user interface between an end user and said applications program; and a code generator means for analyzing said applications program and generating said user interface code, said code generator means comprising; a code block file means having a set of code blocks for defining a basic code structure of said procedural language code; data analyzer means for analyzing said declarative language program to obtain information on said variables and said communications units; a first communications unit list means for defining said order said communications units in said declarative language program are processed; a second communications unit list means for defining said variables associated with said communications units; a variables list means, having a plurality of variable lists, for providing attribute information on said variables in said communications units; and means for combining code blocks from said code block file, entries from said first communications unit list means and said second communications unit list means, and said plurality of variable lists to produce said interface code. - View Dependent Claims (16)
-
Specification