W3C home > Mailing lists > Public > www-style@w3.org > October 2009

[CSS21] why keep S in the core syntax grammar rather than treat it like COMMENT?

From: Dan Connolly <connolly@w3.org>
Date: Wed, 21 Oct 2009 11:54:06 -0500
To: www-style@w3.org
Message-Id: <1256144046.4607.54.camel@pav.lan>
In 4.1.1 Tokenization
  http://www.w3.org/TR/CSS2/syndata.html

I see:

  COMMENT tokens do not occur in the grammar (to keep it readable),
  but any number of these tokens may appear anywhere outside
  other tokens.

Why not do likewise for S? I'm pretty sure it doesn't change
the sequences of characters matched by the grammar.

In the implementation I'm writing, I moved S out of the
grammar and it seems to only help.

for the curious, see class CSSCore in
http://bitbucket.org/DanC/cssval/src/tip/src/main/scala/org/w3/cssval.scala

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Wednesday, 21 October 2009 16:54:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT