W3C home > Mailing lists > Public > www-style@w3.org > July 1998

Re: Is there a css2 yacc/bison grammar out there?

From: Bert Bos <Bert.Bos@sophia.inria.fr>
Date: Wed, 29 Jul 1998 17:52:53 +0200 (MET DST)
To: David Nagy-Farkas <DavidNF@becomm.com>
Cc: "'www-style@w3.org'" <www-style@w3.org>
Message-ID: <13759.17311.760275.138726@www43.inria.fr>
David Nagy-Farkas writes:
 > Hello,
 > I'm trying to implement a CSS2 parser.  Appendix D of the CSS2
 > specification specifies a grammar, but I'm having some difficulty
 > converting it to an acceptable YACC/Bison form without conflicts.  Has
 > anyone out there already done this conversion, and is it public?  The
 > nearest thing I could find was an out-of-date grammar in the first CSS
 > working draft at http://www.w3.org/TR/WD-css1-951123.html.
 > Any help would be much appreciated.  Thanks!

The grammar used by the CSS validator is not a yacc grammar either,
but maybe it is easier to adapt:


It is input for Sun's Java parser generator "JavaCC"

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 29 July 1998 11:53:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:47 UTC