W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css3-values] inaccurate statements about syntax/grammar

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 05 Apr 2012 20:58:47 +0200
Message-ID: <4F7DEB67.2080607@kozea.fr>
To: www-style@w3.org
Le 05/04/2012 20:28, Tab Atkins Jr. a écrit :
> Yes, that's a more useful definition of "token" for spec purposes,
> once you rise above raw grammar concerns.  (Honestly, I kinda want to
> just write an explicit parser a la HTML and have it emit tokens like
> that.)

That is exactly what I did, actually :)

https://github.com/SimonSapin/tinycss/blob/c8c649326a/tinycss/tokenizer.py#L140

(Discussion about the implementation should probably go to the new 
thread I just started about tinycss.)

Or by "write a parser", did you mean write a spec for a parser?

-- 
Simon Sapin
Received on Thursday, 5 April 2012 18:59:15 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:13 UTC