- 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>
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: http://jigsaw.w3.org/css-validator/DOWNLOAD.html It is input for Sun's Java parser generator "JavaCC" (http://suntest.com/JavaCC/) Bert -- 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