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

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