W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Should binding section be rewritten more algorithmically?

From: Kyle Huey <me@kylehuey.com>
Date: Sun, 1 Apr 2012 14:19:50 -0700
Message-ID: <CAP045AoS-nEub_ANPd=QZqy7pyS+En6EedeoCBR4jxpA7saxhA@mail.gmail.com>
To: Marcos Caceres <marcosscaceres@gmail.com>
Cc: Cameron McCormack <cam@mcc.id.au>, Marcos Caceres <w3c@marcosc.com>, Travis Leithead <travis.leithead@microsoft.com>, public-script-coord <public-script-coord@w3.org>
On Sun, Apr 1, 2012 at 2:12 PM, Kyle Huey <me@kylehuey.com> wrote:

> Hi Marcos,
>
>
> On Sun, Mar 25, 2012 at 5:27 AM, Marcos Caceres <marcosscaceres@gmail.com>wrote:
>
>> Hi Kyle,
>>
>> On Saturday, 24 March 2012 at 19:05, Kyle Huey wrote:
>>
>> > On Fri, Mar 23, 2012 at 6:10 PM, Cameron McCormack <cam@mcc.id.au(mailto:
>> cam@mcc.id.au)> wrote:
>> > > Marcos Caceres:
>> >
>> >
>> > FWIW, I've found the grammar to be extremely useful for building the
>> parser we're using for Gecko.
>> Do you have a description of the parser (or a link to)? What is it used
>> for?
>>
>
> The parser is located at
> https://hg.mozilla.org/users/khuey_mozilla.com/webidl-parser/.  We're
> using it in Gecko with a code generator that we've written to generate C++
> glue code for our new DOM bindings.  This is all very much a work in
> progress, and the parser needs a fair amount of cleanup (the spec changed
> under me multiple times as I was working on it, so I have some support for
> things that are gone e.g. modules).
>
> - Kyle
>

And to be clear the actual syntax parsing is accomplished by just feeding
Cameron's grammar to ply.  The interesting part is the data model we're
generating for consumption by our code generator.

- Kyle
Received on Sunday, 1 April 2012 21:20:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC