Package cssutils :: Module css2productions
[hide private]
[frames] | no frames]

Module css2productions

source code

productions for CSS 2.1

CSS2_1_MACROS and CSS2_1_PRODUCTIONS are from both http://www.w3.org/TR/CSS21/grammar.html and http://www.w3.org/TR/css3-syntax/#grammar0


Version: $Id: css2productions.py 1116 2008-03-05 13:52:23Z cthedot $

Classes [hide private]
    w}"," {return COMMA;}
  CSSProductions
Variables [hide private]
  MACROS = {'A': 'a|\\\\0{0,4}(41|61)(\\r\\n|[ \\t\\r\\n\\f])?',...
  i = 45
  t = ('CHAR', '[^"\\\']')
    w}"," {return COMMA;}
  PRODUCTIONS = [('URI', 'url\\({w}{string}{w}\\)'), ('URI', 'ur...
Variables Details [hide private]

MACROS

Value:
{'A': 'a|\\\\0{0,4}(41|61)(\\r\\n|[ \\t\\r\\n\\f])?',
 'C': 'c|\\\\0{0,4}(43|63)(\\r\\n|[ \\t\\r\\n\\f])?',
 'D': 'd|\\\\0{0,4}(44|64)(\\r\\n|[ \\t\\r\\n\\f])?',
 'E': 'e|\\\\0{0,4}(45|65)(\\r\\n|[ \\t\\r\\n\\f])?',
 'F': 'f|\\\\0{0,4}(46|66)(\\r\\n|[ \\t\\r\\n\\f])?',
 'G': 'g|\\\\0{0,4}(47|67)(\\r\\n|[ \\t\\r\\n\\f])?|\\\\g',
 'H': 'h|\\\\0{0,4}(48|68)(\\r\\n|[ \\t\\r\\n\\f])?|\\\\h',
 'I': 'i|\\\\0{0,4}(49|69)(\\r\\n|[ \\t\\r\\n\\f])?|\\\\i',
...

PRODUCTIONS

Value:
[('URI', 'url\\({w}{string}{w}\\)'),
 ('URI', 'url\\({w}{url}{w}\\)'),
 ('FUNCTION', '{ident}\\('),
 ('IMPORT_SYM', '@{I}{M}{P}{O}{R}{T}'),
 ('PAGE_SYM', '@{P}{A}{G}{E}'),
 ('MEDIA_SYM', '@{M}{E}{D}{I}{A}'),
 ('FONT_FACE_SYM', '@{F}{O}{N}{T}\\-{F}{A}{C}{E}'),
 ('CHARSET_SYM', '@charset '),
...