[webkit-dev] Rewriting binding code generator, maybe?

Dirk Pranke dpranke at chromium.org
Thu Apr 11 10:12:09 PDT 2013


On Thu, Apr 11, 2013 at 9:51 AM, Darin Adler <darin at apple.com> wrote:

> On Apr 11, 2013, at 5:02 AM, Thiago Marcos P. Santos <tmpsantos at gmail.com>
> wrote:
>
> > Would be great if both projects could share the same generators.
>
> The part that would be OK to share would be the parsing.
>
> The actual code generation needs to change all the time as the internal
> architecture of WebKit and of the JavaScript engine and other things we’re
> binding change, so we should not try to change that.
>
>
I'm not sure how useful a suggestion this is, but ANTLR has a pretty strong
framework for separating parsing from code generation and seems like it
would be an ideal fit for this, except that the tool itself is written in
Java. Perhaps that is a show-stopper? I'm not actually aware of any similar
parser-generator tools that have similar architectures but are in more
WebKit/Blink-friendly languages, but maybe they exist? It certainly would
be nice not to have to roll your own framework here.

-- Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130411/ac842f8e/attachment.html>


More information about the webkit-dev mailing list