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

Ryosuke Niwa rniwa at webkit.org
Thu Apr 11 10:23:37 PDT 2013

On Thu, Apr 11, 2013 at 10:12 AM, Dirk Pranke <dpranke at chromium.org> wrote:

> 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.

We used to use Bison for CSS parsing and we might still use it somewhere.
 Having said that, C/C++ might be an overkill for writing a binding code

- R. Niwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130411/6041848b/attachment.html>

More information about the webkit-dev mailing list