[webkit-dev] Rewriting binding code generator, maybe?
Dirk Pranke
dpranke at chromium.org
Thu Apr 11 12:54:03 PDT 2013
On Thu, Apr 11, 2013 at 10:29 AM, Leandro Pereira <leandro at profusion.mobi>wrote:
> dpranke,
>
>
> On 04/11/2013 02:12 PM, Dirk Pranke wrote:
>
>
>> 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?
>>
>
> Pyparsing is a nice little library that requires no code generation
> (grammar is written in pure Python) and is very simple to use.
>
> Their website lives at http://pyparsing.wikispaces.**com/<http://pyparsing.wikispaces.com/>
> .
>
>
That's pretty much the opposite of what I was getting at (I was talking
about ANTLR's use of StringTemplate to separate code generation from the
building of the AST).
-- Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130411/b481cd51/attachment.html>
More information about the webkit-dev
mailing list