Fast CSS parser
First Claim
Patent Images
1. A computer-implemented method of transforming a cascading style sheet (“
- CSS”
) codebase for a website, including;
using a processor, accessing in memory a CSS codebase that includes target tokens in customizable segments, which are customizable responsive to an input invoking a module that uses the CSS codebase;
scanning the CSS codebase and locating the customizable segments of the CSS codebase that include the target tokens, customization of the customizable segments of the CSS codebase being located based at least in part on an attribute of a user;
parsing only the located customizable segments of the CSS codebase to produce segment parse trees based on the parsed customizable segments;
transforming the target tokens from the segment parse trees according to a set of customization functions selected from among multiple alternative sets of customization functions that transform the target tokens within the customizable segments of the CSS codebase; and
outputting a customized codebase for use with the module invoked by the input.
1 Assignment
0 Petitions
Accused Products
Abstract
The technology disclosed relates to systems and methods for providing a CSS parser to improve the maintainability of code that displays data to users. The technology disclosed also improves the performance and consistency of the code that delivers a user'"'"'s experience.
159 Citations
19 Claims
-
1. A computer-implemented method of transforming a cascading style sheet (“
- CSS”
) codebase for a website, including;using a processor, accessing in memory a CSS codebase that includes target tokens in customizable segments, which are customizable responsive to an input invoking a module that uses the CSS codebase; scanning the CSS codebase and locating the customizable segments of the CSS codebase that include the target tokens, customization of the customizable segments of the CSS codebase being located based at least in part on an attribute of a user; parsing only the located customizable segments of the CSS codebase to produce segment parse trees based on the parsed customizable segments; transforming the target tokens from the segment parse trees according to a set of customization functions selected from among multiple alternative sets of customization functions that transform the target tokens within the customizable segments of the CSS codebase; and outputting a customized codebase for use with the module invoked by the input. - View Dependent Claims (2, 3, 4, 5, 6, 7)
- CSS”
-
8. A computer-implemented system that transforms a cascading style sheet (“
- CSS”
) codebase for a website, including;a processor and first memory, the first memory holding code that, when executed, causes the processor to; access in a second memory a CSS codebase that includes target tokens in customizable segments, which are customizable responsive to an input invoking a module that uses the CSS codebase; scan the CSS codebase and locate the customizable segments of the CSS codebase that include the target tokens, customization of the customizable segments of the CSS codebase being located based at least in part on an attribute of a user; parse only the located customizable segments of the CSS codebase to produce segment parse trees based on the parsed customizable segments; transform the target tokens from the segment parse trees according to a set of customization functions selected from among multiple alternative sets of customization functions that transform the target tokens within the customizable segments of the CSS codebase; and output a customized codebase for use with the module invoked by the input. - View Dependent Claims (9, 10, 11, 12, 13)
- CSS”
-
14. A non-transitory computer readable storage medium impressed with computer program instructions to transform a cascading style sheet (“
- CSS”
) codebase for a website, the instructions, when executed on a processor, implement a method comprising;accessing in a memory a CSS codebase that includes target tokens in customizable segments, which are customizable responsive to an input invoking a module that uses the CSS codebase; scanning the CSS codebase and locating the customizable segments of the CSS codebase that include the target tokens, customization of the customizable segments of the CSS codebase being located based at least in part on an attribute of a user; parsing only the located customizable segments of the CSS codebase to produce segment parse trees based on the parsed customizable segments; transforming the target tokens from the segment parse trees according to a set of customization functions selected from among multiple alternative sets of customization functions that transform the target tokens within the customizable segments of the CSS codebase; and outputting a customized codebase for use with the module invoked by the input. - View Dependent Claims (15, 16, 17, 18, 19)
- CSS”
Specification