W3C home > Mailing lists > Public > www-style@w3.org > December 2008

info about CSS YACC parser

From: Manlio Perillo <manlio.perillo@gmail.com>
Date: Mon, 29 Dec 2008 17:56:58 +0100
Message-ID: <4959015A.4080806@gmail.com>
To: www-style@w3.org

Hi.

I have implemented a CSS parser, using PLY (a pure Python version of YACC).

The parser (and the lexer), for people interested, is available here:
http://hg.mperillo.ath.cx/pdfimg/file/tip/pdfimg/style/css/

I have tried to follow the "official" grammar as much as possible.

Just to have an additional check for my grammar implementation 
correctness, I get
* 94 shift/reduce conflicts
* 2 reduce/reduce conflicts

Is this ok?



Thanks   Manlio Perillo
Received on Monday, 29 December 2008 16:58:35 GMT

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