Method and system for representing a high-level programming language data structure in a mark-up language
First Claim
1. A computer-readable medium having stored thereon a data structure comprising a plurality of mark-up language elements, wherein each element represents a variable of a high-level programming language data structure, at least one of the elements being nested with respect to at least one other element to represent a hierarchical relationship between the elements;
- and a plurality of tags comprising a tag for each element, wherein each tag includes the name of the variable represented by the element and the type of the variable.
2 Assignments
0 Petitions
Accused Products
Abstract
A novel method and system for representing a high-level programming language data structure in a mark-up language is provided, in which each variable of data structure is represented as a mark-up language element. The nesting of the elements represents the hierarchical relationship among the variables. Each element includes the name of the variable represented by the element and the type of the variable. The variable name may be included as the tag name, and the variable type may be included as an attribute. Additionally, a default value for the variable may be included as an attribute. Finally, comments to be included in the resulting high-level language source code may be represented in the body of the element.
65 Citations
46 Claims
-
1. A computer-readable medium having stored thereon a data structure comprising a plurality of mark-up language elements, wherein each element represents a variable of a high-level programming language data structure, at least one of the elements being nested with respect to at least one other element to represent a hierarchical relationship between the elements;
- and a plurality of tags comprising a tag for each element, wherein each tag includes the name of the variable represented by the element and the type of the variable.
- View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. A method of describing a high-level programming language data structure, the method comprising:
-
(a) creating a mark-up language element representing a variable of the data structure;
(b) inserting the name and type of the variable into the element;
(c) repeating steps (a) and (b) for each of a plurality of variables of the data structure to create a plurality of mark-up language elements; and
(d) creating a mark-up language document containing the elements, wherein at least one of the elements is nested to represent a hierarchical relationship with at least one other element. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A method for translating a mark-up language document into a highlevel language source code, the data structure having a plurality of variables, the document comprising a plurality of elements, each element representing a variable of the plurality of variables, the method comprising:
-
(a) parsing the document to determine the hierarchical relationship among the variables based on the nesting structure of the elements;
(b) parsing each element to determine the name and type of the variable represented by the element; and
(c) creating a block of source code in the high-level language, wherein the block includes the plurality of variables rendered into the high-level language with the names and types determined in step (b). - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40)
-
-
41. A method for translating an XML document into a web page scripting language, the method comprising:
-
(a) parsing the XML document in the order of its nesting structure;
(b) parsing each element of the XML document to determine whether the element represents a hash variable, an array variable, or an object variable;
(c) for each element parsed, creating a block of web page script in the web page scripting language, the block having defined therein a hash variable, an array variable, or an object variable as determined in step (b), wherein a plurality of blocks of web page script are created thereby; and
(d) arranging the plurality of blocks of web page scripting language in a hierarchy, the hierarchy corresponding to the nesting structure determined in step (a). - View Dependent Claims (42, 43, 44, 45, 46)
-
Specification