Markup-language document formatting in memory-constrained environment
Abstract
Methods ( 600, 700, 900 ), apparatuses and computer program products are disclosed for parsing and formatting a document encoded using a markup language in a memory-constrained environment. The structure ( 100 ) of the document is represented by a tree having one or more nodes (n 1 -n 10 ). One method ( 600 ) includes the steps of, for a current one of the nodes, freeing memory occupied by any previously formatted one of the nodes upon which formatting of the current node, according to a set of formatting rules, is independent; and building a partial document tree ( 500 ) using the current node and remaining previously formatted nodes upon which formatting of the current node, according to the set of formatting rules, is dependent. Another method includes the steps of obtaining information about one or more nodes of the document using a lookahead parser, and formatting the one or more nodes using the obtained information.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of parsing and formatting a document encoded using a markup language, the structure of said document being represented by a tree having one or more nodes, said method comprising the steps of: parsing the document to a current node in said tree using a main parser, freeing memory occupied by an previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent and the formatting of said current node being dependent on one or more further nodes that have not yet been formatted, wherein a partial document tree uses th
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (4)
- "Cascading Style Sheets, level 2 CSS2 Specification", W3C Recommendation, May 12, 1998. <http://www.w3.org/TR/1998/REC-CSS2-19980512>.
- "Introduction to Recursion", Jul. 2000, http://personal.vsnl.com/erwin/recintro.htm.
- "Introduction to Recursion", Tom Kelliher, Feb. 23, 1996, http://phoenix.goucher.edu/~kelliher/cs18/feb23.html.
- P. Breuer, et al. "A Concrete Z Grammar", Dec. 1994. <http://www.citeseer.ist.psu.edu/breuer94concrete.html>.