The CSS Processor is a C++ program that processes CSS code and executes specific commands to retrieve information about the CSS blocks, selectors, and attributes.
Additionally in this project I used a custom version of String built from the ground up to improve my C++ skills.
????
: start command section****
: end command section?
: get number of css blocksi,S,?
: get number of selectors in i blocki,A,?
: get number of attributes in i blocki,S,j
: get j selector from i blocki,A,n
: get from i block value for attribute nn,A,?
: get number of blocks that contain n attributez,S,?
: get number of z selector occurrencesz,E,n
: get value of attribute n for selector zi,D,*
: delete i blocki,D,n
: delete from i block attribute n
The CSS Processor takes these commands as input and provides corresponding output values for each command.
#breadcrumb { width: 80%; font-size: 9pt; } h1, body { min-width: 780px; margin: 0; padding: 0; font-family: "Trebuchet MS", "Lucida Grande", Arial; font-size: 85%; color: #666666; } h1, h2, h3, h4, h5, h6 {color: #0066CB;} ???? ? 1,S,? 1,S,1 1,A,? 2,A,font-family h1,S,? color,A,? h1,E,color 1,A,padding 1,D,* ? 2,D,color ? **** h1, h2, h3, h4, h5, h6 {color: #0066FF;} ???? ?
? == 3
1,S,? == 1
1,S,1 == #breadcrumb
1,A,? == 2
2,A,font-family == "Trebuchet MS", "Lucida Grande", Arial
h1,S,? == 2
color,A,? == 2
h1,E,color == #0066CB
1,D,* == deleted
? == 2
2,D, color == deleted
? == 1
? == 2