- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 5 Apr 2012 12:21:31 -0700
- 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