On 28 Apr 2013, at 22:13, koral <ko...@mailoo.org> wrote:

>> The tool you need is here...
>> https://github.com/ghcjs/domconv-webkit
>> 
>> Cabal install this and then...
> 
> Well, it won't build as is. The code seems rather old: apart from the 
> bad-encoding and tabs-instead-of-spaces annoyances, it still relies on the 
> 'catch' function that was in System.IO.Error (if I remember well), while this 
> was moved to Control.Exception in recent versions of base package.
> The problem exists in hdirect-0.21/Utils.lhs and in hdirect-0.21/PreProc.lhs. 
> Nothing that I can't fix :), so I eventually managed to build/install it :) . 
> I can send a pull request if you wish.

Yes this code has a very long history.  I think it was for COM IDL and then 
someone added support for W3C IDL for the YHC javascript compiler.  I further 
hacked it around to get it working with the WebKit ones.

A pull request would be cool.

> So I did what you described:
> * I downloaded/extracted http://webkitgtk.org/releases/webkitgtk-2.0.1.tar.xz
> * in my Haskell webkit source directory, I ran "domconv-webkit webkit.idl 
> -I../webkitgtk-2.0.1/Source/WebCore", but I'm getting a parse error:
> 
>> Processing IDL: webkit.idl args ["-I../webkitgtk-2.0.1/Source/WebCore/"]
>> domconv-webkit: user error 
>> (../webkitgtk-2.0.1/Source/WebCore/dom/Attr.idl:22: Parse error: )
> 
> I understand domconv-webkit is "only" a helper, and that I could manually 
> change the hierarchy*.list files instead. Maybe I'll resort to that as I'm 
> unable to have domconv-webkit working.

I imagine there is probably some new syntax in the WebKit 2 IDL files that it 
does not understand.  If you look on Attr.idl line 22 there is probably some 
attribute or something that was not in the older IDL files.

Hamish
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to