METHOD AND APPARATUS FOR CONVERTING PROGRAMS AND SOURCE CODE FILES WRITTEN IN A PROGRAMMING LANGUAGE TO EQUIVALENT MARKUP LANGUAGE FILES
First Claim
1. A method of processing a source code statement written in a programming language, the method comprising the computer-implemented steps of:
- parsing a document type definition file for a markup language;
parsing a source code statement from a source code file;
selecting an element defined in the document type definition file based on an association between the element and an identifier of a routine in the source code statement; and
writing the selected element to a markup language file.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for converting programs and source code files written in a programming language to equivalent markup language files is provided. The conversion may be accomplished by a static process or by a dynamic process. In a static process, a programming source code file is converted by an application to a markup language file. A document type definition file for a markup language is parsed; a source code statement from a source code file is parsed; an element defined in the document type definition file is selected based on an association between the element and an identifier of a routine in the source code statement; and the selected element is written to a markup language file. In a dynamic process, the program is executed to generate the markup language file that corresponds to the source code file or presentation steps of the program. The application program is executed; a document type definition file for a markup language is provided as input; an element defined in the document type definition file is selected based on a routine called by the application program; and the selected element is written to a markup language file.
51 Citations
26 Claims
-
1. A method of processing a source code statement written in a programming language, the method comprising the computer-implemented steps of:
-
parsing a document type definition file for a markup language;
parsing a source code statement from a source code file;
selecting an element defined in the document type definition file based on an association between the element and an identifier of a routine in the source code statement; and
writing the selected element to a markup language file. - View Dependent Claims (2, 3, 4)
-
-
5. A method of processing a markup language element, the method comprising the computer-implemented steps of:
-
parsing a document type definition file for the markup language;
parsing a markup language element from a markup language file;
selecting an element defined in the document type definition file that is equivalent to the markup language element from the markup language file;
generating a source code statement using an identifier of a routine within the selected element; and
writing the source code statement to an output file.
-
-
6. A method of generating a markup language file, the method comprising the computer-implemented steps of:
-
executing an application program;
parsing a document type definition file for a markup language;
selecting an element defined in the document type definition file based on a routine called by the application program; and
writing the selected element to a markup language file. - View Dependent Claims (7, 8, 9, 10, 11)
-
-
12. A data processing system for processing a source code statement written in a programming language, the data processing system comprising:
-
first parsing means for parsing a document type definition file for a markup language;
second parsing means for parsing a source code statement from a source code file;
selecting means for selecting an element defined in the document type definition file based on an association between the element and an identifier of a routine in the source code statement; and
writing means for writing the selected element to a markup language file. - View Dependent Claims (13, 14, 15)
-
-
16. A data processing system for processing a markup language element, the data processing system comprising:
-
first parsing means for parsing a document type definition file for the markup language;
second parsing means for parsing a markup language element from a markup language file;
selecting means for selecting an element defined in the document type definition file that is equivalent to a the markup language element from the markup language file;
generating means for generating a source code statement using an identifier of a routine within the selected element; and
writing means for writing the source code statement to an output file.
-
-
17. A data processing system for generating a markup language file, the data processing system comprising:
-
executing means for executing an application program;
parsing means for parsing a document type definition file for a markup language;
selecting means for selecting an element defined in the document type definition file based on a routine called by the application program; and
writing means for writing the selected element to a markup language file. - View Dependent Claims (18, 19, 20, 21, 22)
-
-
23. A computer program product in a computer readable medium for use in a data processing system for processing a source code statement written in a programming language, the computer program product comprising:
-
first instructions for parsing a document type definition file for a markup language;
second instructions for parsing a source code statement from a source code file;
third instructions for selecting an element defined in the document type definition file based on an association between the element and an identifier of a routine in the source code statement; and
fourth instructions for writing the selected element to a markup language file.
-
-
24. A computer program product on a computer readable medium for use in a data processing system for processing a markup language element, the computer program product comprising:
-
first instructions for parsing a document type definition file for the markup language;
second instructions for parsing a markup language element from a markup language file;
third instructions for selecting an element defined in the document type definition file that is equivalent to the markup language element from the markup language file;
fourth instructions for generating a source code statement using an identifier of a routine within the selected element; and
fifth instructions for writing the source code statement to an output file.
-
-
25. A computer program product on a computer readable medium for use in a data processing system for processing a markup language file, the computer program product comprising:
-
first instructions for executing an application program;
second instructions for parsing a document type definition file for a markup language;
third instructions for selecting an element defined in the document type definition file based on a routine called by the application program; and
fourth instructions for writing the selected element to a markup language file.
-
-
26. A method of processing a source code statement written in a programming language, the method comprising the computer-implemented steps of:
-
parsing a grammar input file for a markup language;
parsing a source code statement from a source code file;
selecting a language syntax construct defined in the grammar input file based on an association between the language syntax construct and an identifier of a routine in the source code statement; and
writing the selected language syntax construct to a markup language file.
-
Specification