- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 10 Jul 2013 10:20:04 -0700
- 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