W3C home > Mailing lists > Public > www-style@w3.org > October 1995

Re: CSS draft 4.0 [Level 2 YACC Spec]

From: Glenn Adams <glenn@stonehand.com>
Date: Sun, 22 Oct 95 21:34:59 -0400
Message-Id: <9510230135.AA08465@trubetzkoy.stonehand.com>
To: Hakon Lie <howcome@w3.org>
Cc: www-style@w3.org

While I'm on the subject of LEX/YACC specs, I don't know if anyone has
tried it, but the level 2 YACC spec in the 4.0 draft is in serious need
of repair.  Besides a variety of typos, the following productions
produce a variety of problems:

1. imports: imports IMPORT url

This rule prevents any rule from applying.  Change to:

   imports: imports IMPORT url | /* empty */;

2. term: length | STRING | HEXCOLOR | NUMBER | IDENT | attref | propref |
         ENVVAR | '(' value ')';

Here propref conflicts with IDENT.  Change to:

   term: length | STRING | HEXCOLOR | NUMBER | IDENT | attref |
         ENVVAR | '(' value ')';

3. op: '+' | '-' | '*' | '/' | INTERPOLATEHI | INTERPOLATELO | /* empty */;

Produces 2 shift/reduce conflicts. Change to:

   op: '+' | '-' | '*' | '/' | INTERPOLATEHI | INTERPOLATELO;

Regards,
Glenn Adams
Received on Sunday, 22 October 1995 21:35:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:42 GMT