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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 5 Apr 2012 12:21:31 -0700
Message-ID: <CAAWBYDAK43K+p-KUbX0Z7fw6J4WBV54hkL7GfacJZzrA__a4FQ@mail.gmail.com>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: www-style@w3.org
On Thu, Apr 5, 2012 at 11:58 AM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> 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?

Write a spec for it, yes.  I don't have any good reason to write a
parser in actual code.  ^_^
Received on Thursday, 5 April 2012 19:22:20 UTC

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