W3C home > Mailing lists > Public > www-style@w3.org > July 2013

Re: [css-syntax] string to number feedback

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 10 Jul 2013 10:20:04 -0700
Message-ID: <CAAWBYDDk_rw9fKbC5=f92x1KZbksxetHwzpZVpn7Mh9gi0pf-w@mail.gmail.com>
To: marc@marcomorain.com
Cc: Simon Sapin <simon.sapin@exyr.org>, www-style list <www-style@w3.org>
On Wed, Jul 10, 2013 at 9:21 AM, Marc O'Morain <marc@marcomorain.com> wrote:
> Hi Simon,
>
> My tokenizer is complete and I have started work on my parser. I think
> I have found another issue:
>
>> 5.4.3 Consume a qualified rule
>>
>>〈{〉
>> Consume a simple block and assign it to the qualified rule's block. Return the qualified rule.
>>
>> simple block with an associated token of 〈{〉
>> Assign the block to the qualified rule's block. Return the qualified rule.
>
> The second of the statements above does not seem to make sense – I
> don't think that a token can be of type 'simple block' – I think you
> can just remove that second section and leave the first. (consume a
> simple block...).
>
> Or am I wrong?

The parser algorithms are explicitly designed to be agnostic as to
whether you call them with a stream of tokens or of component values.
This mostly doesn't matter, but it does mean that I have to have a few
lines like that, where you can see either a brace or a block,
depending on which type of stream you're using.

~TJ
Received on Wednesday, 10 July 2013 17:20:50 UTC

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