Re: Should binding section be rewritten more algorithmically?

On Fri, Mar 23, 2012 at 6:10 PM, Cameron McCormack <cam@mcc.id.au> wrote:

> Marcos Caceres:
>
>  The binding part… the syntax part is a different matter. The syntax
>> part is much more clear (though it would have been nice if it would
>> have been written for a parser), but the only proper parser I've seen
>> has issues in that it's machine generated:
>>
>> https://github.com/darobin/**webidl.js<https://github.com/darobin/webidl.js>
>>
>
> I'm not sure what you mean about being written for a parser.  A grammar
> is a perfect basis for a parser, no? :)  (And you can't get much simpler
> than an LL(1) grammar for a language like this, in terms of writing a
> parser.)
>

FWIW, I've found the grammar to be extremely useful for building the parser
we're using for Gecko.

- Kyle

Received on Saturday, 24 March 2012 19:05:47 UTC