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

Module cssproductions

source code

productions for cssutils based on a mix of CSS 2.1 and CSS 3 Syntax productions

open issues

Version: $Id: cssproductions.py 1378 2008-07-15 20:02:19Z cthedot $

Classes [hide private]
  CSSProductions
most attributes are set later
Variables [hide private]
  MACROS = {'A': 'A|a|\\\\0{0,4}(?:41|61)(?:\\r\\n|[ \\t\\r\\n\\...
  PRODUCTIONS = [('BOM', '\\xFEFF'), ('S', '{wc}+'), ('URI', '{U...
  i = 20
  t = ('CHAR', '[^"\\\']')
Variables Details [hide private]

MACROS

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

PRODUCTIONS

Value:
[('BOM', '\\xFEFF'),
 ('S', '{wc}+'),
 ('URI', '{U}{R}{L}\\({w}({string}|{urlchar}*){w}\\)'),
 ('FUNCTION', '{ident}\\('),
 ('IDENT', '{ident}'),
 ('STRING', '{string}'),
 ('INVALID', '{invalid}'),
 ('HASH', '\\#{name}'),
...