On Thu, Apr 11, 2013 at 10:12 AM, Dirk Pranke <dpra...@chromium.org> wrote:
> On Thu, Apr 11, 2013 at 9:51 AM, Darin Adler <da...@apple.com> wrote: > >> On Apr 11, 2013, at 5:02 AM, Thiago Marcos P. Santos <tmpsan...@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 generator. - R. Niwa
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev