DStep

Jacob Carlborg doob at me.com
Thu Jan 26 11:35:48 PST 2012


On 2012-01-26 19:08, bls wrote:
> On 01/26/2012 09:51 AM, Jacob Carlborg wrote:
>> On 2012-01-26 17:08, bls wrote:
>>> On 01/26/2012 07:51 AM, Trass3r wrote:
>>>>>> Sorry for my ignorance but why should one use DStep instead of htod
>>>>>> in order to port plain vanilla C headers ? I have to admit that I
>>>>>> haven't tried DStep yet.
>>>>>
>>>>> htod is Windows-only.
>>>>
>>>> And it sucks.
>>>> For example it drops const, runs the preprocessor instead of turning
>>>> preprocessor directives into proper D equivalents, horribly messes up
>>>> the comments (esp. comments for enum members),...
>>>
>>> Ok,Thanks for clarification! Seems that DStep is a missing link in the D
>>> tool-chain and should be part of the DMD package
>>> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it
>>> works for me.
>>> Thanks, Bjoern
>>
>> DStep has nothing to do with XML. It uses the Clang C API to create D
>> bindings.
>>
>
> libxml2 is a plain c library
> http://xmlsoft.org/
>
> libxslt dito.
> http://xmlsoft.org/XSLT/
>
> ?? May you mix it up. In order to create *bindings* to C++ libs doxygens
> xml output seems to be perfect.
>
> To _port_ C headers DStep is probaly the right tool. But I just see that
> I have to build llvm and what the heck.. :(
>
> Now, in order to parse doxygens xml output std.xml is not good enough.
> In other words it would be nice to have libxml2 as D lib available.

Oh, you mean create bindings to libxml2?

I don't see how doxygen xml output could be better to create bindings 
than a compiler.

Tango has a pretty good and super fast XML module. Tango is now usable 
with D2: https://github.com/SiegeLord/Tango-D2

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list