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

# Module css3productions

source code

productions for CSS 3

CSS3_MACROS and CSS3_PRODUCTIONS are from http://www.w3.org/TR/css3-syntax

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

Classes | [hide private]
| CSSProductions has attributes for all PRODUCTIONS

Variables | [hide private]
| MACROS = ``{``'``escape``'``:` `'``{unicode}|\\\\[ -~\\200-\\777]``'``,` `'``ident``'``:``...``
| PRODUCTIONS = ``[``(``'``BOM``'``,` `'``\\xFEFF``'``)``,` `(``'``URI``'``,` `'``url\\({w}({string}``...``
| i = `20`
| t = ``(``'``CHAR``'``,` `'``[^"\\\']``'``)``

Variables Details | [hide private]

  ### MACROS Value:
      {'escape': '{unicode}|\\\\[ -~\\200-\\777]',
       'ident': '[-]?{nmstart}{nmchar}*',
       'name': '{nmchar}+',
       'nl': '\\n|\\r\\n|\\r|\\f',
       'nmchar': '[-_a-zA-Z0-9]|{nonascii}|{escape}',
       'nmstart': '[_a-zA-Z]|{nonascii}|{escape}',
       'nonascii': '[^\\0-\\177]',
       'num': '-?[0-9]*\\.[0-9]+|[0-9]+',
      ...

  ### PRODUCTIONS Value:
      [('BOM', '\\xFEFF'),
       ('URI', 'url\\({w}({string}|{urlchar}*){w}\\)'),
       ('FUNCTION', '{ident}\\('),
       ('ATKEYWORD', '\\@{ident}'),
       ('IDENT', '{ident}'),
       ('STRING', '{string}'),
       ('HASH', '\\#{name}'),
       ('PERCENTAGE', '{num}\\%'),
      ...