- From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
- Date: Thu, 31 May 2012 09:44:27 +0800
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: WWW Style <www-style@w3.org>
(12/05/31 9:16), Tab Atkins Jr. wrote: > On Wed, May 30, 2012 at 6:03 PM, Kang-Hao (Kenny) Lu > <kennyluck@csail.mit.edu> wrote: >> While I was trying to understand if using <value> for CSS Varaibles >> makes sense or not, I realized that the CSS2.1 core grammar can be >> extended to an universal one, where universality of a grammar[1] means >> that the grammar is capable of generating all possible sequences of tokens. > > Much less confusingly, the Syntax draft defines a universal grammar > via its tokenizer already. (This can be easily seen by the fact that > every single state has an "anything else" transition rule.) This isn't finished yet, no? Note that I still think a state machine would be more readable, it's just that it is not hard to write down the grammar this way (and well, I want to play with it via Bison :p). This pretty much just what we should have done to resolve ISSUE 140 (what David said in [1]). By the way, it's probability a lot time consuming to write the HTML grammar in this way and also it isn't useful as the state machine is much clearer. [1] http://lists.w3.org/Archives/Public/www-style/2011Mar/0258 Cheers, Kenny
Received on Thursday, 31 May 2012 01:44:58 UTC