Property | Type | Description | |
---|---|---|---|
Copy | string | ||
ParseAtRule | |||
ParseDeclaration | |||
ParseRuleSet | |||
ParseSelector | CssSelector | ||
ParseStatement | CssStatement | ||
ParseStyleSheet | |||
ParseValue | |||
PutBack | void | ||
Read | bool |
Method | Description | |
---|---|---|
CssParser ( string filePath ) : System |
Ctor.
|
|
CssParser ( string filePath, string source ) : System |
Ctor.
|
|
Write ( |
Method | Description | |
---|---|---|
Copy ( int start ) : string |
Copies chars from start until the position before the current position
|
|
ParseAtRule ( ) : |
(BNF) at-rule : ATKEYWORD S* any* [ block | ';' S* ]; NOTE: each at-rule might parse differently according to CSS3 The @media block for example contains a block of statements while other at-rules with a block contain a block of declarations |
|
ParseDeclaration ( ) : |
(BNF) declaration : property ':' S* value; (BNF) property : IDENT S*;
|
|
ParseRuleSet ( ) : |
(BNF) ruleset : selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;
|
|
ParseSelector ( ) : CssSelector |
(BNF) selector: any+;
|
|
ParseStatement ( ) : CssStatement |
(BNF) statement : ruleset | at-rule;
|
|
ParseStyleSheet ( ) : |
(BNF) stylesheet : [ CDO | CDC | S | statement ]*;
|
|
ParseValue ( ) : |
(BNF) value : [ any | block | ATKEYWORD S* ]+; (BNF) any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES | FUNCTION S* any* ')' | DASHMATCH | '(' S* any* ')' | '[' S* any* ']' ] S*;
|
|
PutBack ( ) : void |
Put one character back
|
|
Read ( char &ch ) : bool |
|
public CssParser ( string filePath ) : System | ||
filePath | string | path to source |
return | System |
public CssParser ( string filePath, string source ) : System | ||
filePath | string | path to source |
source | string | actual source |
return | System |
public Write ( |
||
writer | ||
options | ||
return | void |