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: $LastChangedRevision: 300 $

Date: $LastChangedDate: 2007-09-01 15:55:42 +0200 (Sa, 01 Sep 2007) $

Author: $LastChangedBy: 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}\\%'),
...