Abstract syntax tree interpreter for generating a valid HTML document
First Claim
Patent Images
1. A computer-implemented method for generating a valid HTML document, comprising:
- providing an abstract syntax tree, the abstract syntax tree including a plurality of nodes, each node in the plurality of nodes representing an element in a template file, in response to receiving a request on a web server for a webpage;
traversing the abstract syntax tree;
for each node in the abstract syntax tree;
determining a type of the node; and
performing an action based on the determined node type using one or more compiled template objects generated from one or more templates in the template file;
generating the valid HTML document based on the plurality of actions determined by traversing the abstract syntax tree on the web server, to send to display the webpage on a browser, wherein the valid HTML document is type-defined; and
sending the valid HTML document for display on the browser.
2 Assignments
0 Petitions
Accused Products
Abstract
A system, method, and a computer-readable medium for generating a valid HTML document. The method includes receiving a request from a browser and, in response, providing an abstract syntax tree, the abstract syntax tree including a plurality of nodes, where each node represents an element in a template file. The method also includes, traversing the abstract syntax tree, and for each node in the tree determining a type of the node and performing an action based on the node type. The method further includes generating the valid HTML document based on the plurality of actions and sending the valid HTML document for display to a browser.
81 Citations
20 Claims
-
1. A computer-implemented method for generating a valid HTML document, comprising:
-
providing an abstract syntax tree, the abstract syntax tree including a plurality of nodes, each node in the plurality of nodes representing an element in a template file, in response to receiving a request on a web server for a webpage; traversing the abstract syntax tree; for each node in the abstract syntax tree; determining a type of the node; and performing an action based on the determined node type using one or more compiled template objects generated from one or more templates in the template file; generating the valid HTML document based on the plurality of actions determined by traversing the abstract syntax tree on the web server, to send to display the webpage on a browser, wherein the valid HTML document is type-defined; and sending the valid HTML document for display on the browser. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for generating a valid HTML document, comprising:
-
a memory configured to store an abstract syntax tree, the abstract syntax tree including a plurality of nodes, each node in the plurality of nodes representing an element in a template file; an interpreter configured to; traverse the abstract syntax tree in response to receiving a request on a web server for a webpage; for each node in the abstract syntax tree; determining a type of the node; and perform an action based on the determined node type using one or more compiled template objects generated from one or more templates in the template file; generate the valid HTML document based on the plurality of actions determined by traversing the abstract syntax tree on the web server, to send to display the webpage on a browser, wherein the valid HTML document is type-defined. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. An article of manufacture including a computer-readable medium having instructions stored thereon that, when executed by a computing device, cause the computing device to perform operations for generating a valid HTML document, comprising:
-
providing an abstract syntax tree, the abstract syntax tree including a plurality of nodes, and each node in the plurality of nodes representing an element in a template file, in response to receiving a request on a web server for a webpage; traversing the abstract syntax tree; for each node in the abstract syntax tree; determining a type of the node; and performing an action based on the determined node type using one or more compiled template objects generated from one or more templates in the template file; generating the valid HTML document based on the plurality of actions determined by traversing the abstract syntax tree on the web server, to send to display the webpage on a browser, wherein the valid HTML document is type-defined; and sending the HTML output stream for display on the browser. - View Dependent Claims (17, 18, 19, 20)
-
Specification