Object oriented framework for specifying the format of compiler output with a template facility
First Claim
1. A system for specifying a format of an output file from a compiler comprising:
- a compiler which accepts first and second input files to the compiler, where the first input file is a source file which is compiled to produce the output file and the second input file is a file for specifying a format for at least a first section of the output file; and
a facility within the compiler for formatting output from the compiler according to the second input file to produce the first output file section in the desired format, whereby the specified format in the second input file overrides a format which would ordinarily result from compilation of the first input file.
0 Assignments
0 Petitions
Accused Products
Abstract
The format of an output file from a compiler is altered using two new objects, a template definition file for specifying the desired formats for the sections of the output file and a template facility for formatting output from the compiler according to the template definition file. The desired formats are specified by patterned sets of symbol names in the template definition file. A symbol table which is maintained by the template facility stores a set of symbol values corresponding to the symbol names. The template facility outputs the section by placing symbol values from the symbol table in the output file according to the positions of the corresponding symbol names in the patterned sets of symbol names.
57 Citations
12 Claims
-
1. A system for specifying a format of an output file from a compiler comprising:
-
a compiler which accepts first and second input files to the compiler, where the first input file is a source file which is compiled to produce the output file and the second input file is a file for specifying a format for at least a first section of the output file; and a facility within the compiler for formatting output from the compiler according to the second input file to produce the first output file section in the desired format, whereby the specified format in the second input file overrides a format which would ordinarily result from compilation of the first input file. - View Dependent Claims (2, 3, 4)
-
-
5. A method for specifying a format of an output file from a compiler comprising the steps of:
-
compiling a first input file by the compiler; accepting a second input file to the compiler which specifies a format for at least a first section of the output file; and formatting output from the compiler according to the second input file to produce the output file section in the desired format, whereby the specified format in the second input file overrides a format which would ordinarily result from compilation of the first input file. - View Dependent Claims (6, 7, 8)
-
-
9. A computer program product in a computer readable medium for specifying a format of an output file from a compiler comprising:
-
a compiler for compiling a first input file; in the compiler, means for accepting a second input file specifying a format for at least a section of the output file; and in the compiler, a facility for formatting output from the compiler according to the second file to produce the output file section in the specified format, whereby the specified format in the second input file overrides a format which would ordinarily result from compilation of the input file. - View Dependent Claims (10, 11, 12)
-
Specification