Re: HTOD: Low hanging fruit

2013-12-08 Thread Jacob Carlborg
On 2013-12-07 18:53, Andre wrote: If DStep is the prefered solution would it be possible to also provide a pre compiled binary for windows? This would make DStep more user friendly. => Just trying to find out what is needed to compile DStep on a windows machine, whether I need mambo/tango/s.th.

Re: HTOD: Low hanging fruit

2013-12-07 Thread Andre
If DStep is the prefered solution would it be possible to also provide a pre compiled binary for windows? This would make DStep more user friendly. => Just trying to find out what is needed to compile DStep on a windows machine, whether I need mambo/tango/s.th. else and praying libclang is availa

Re: HTOD: Low hanging fruit

2013-12-06 Thread Jacob Carlborg
On 2013-12-06 19:35, Andrej Mitrovic wrote: I guess libtooling (http://clang.llvm.org/docs/LibTooling.html) would be a better fit for a codegenerator, but it's a C++ library. What would be better is to use the Clang C++ libraries since they already provide all the functionality needed. Althou

Re: HTOD: Low hanging fruit

2013-12-06 Thread Jacob Carlborg
On 2013-12-06 19:35, Andrej Mitrovic wrote: I guess libtooling (http://clang.llvm.org/docs/LibTooling.html) would be a better fit for a codegenerator, but it's a C++ library. I don't see what this would give me. libclang already handles command line parsing. DStep handles, in addition to thos

Re: HTOD: Low hanging fruit

2013-12-06 Thread Andrei Alexandrescu
On 12/6/13 7:15 AM, Dicebot wrote: To be honest I'd love htod to be completely removed from dlang.org (and possibly replaced with dstep) as it does more harm than good. I agree. Please send a pull request. Thanks, Andrei

Re: HTOD: Low hanging fruit

2013-12-06 Thread Andrej Mitrovic
On 12/6/13, Jacob Carlborg wrote: > On 2013-12-06 18:13, Jacob Carlborg wrote: > >> It does substitutions. I guess using libclang would be just like >> compiling with Clang but stop the process somewhere after the AST is >> created and before the code generating phase has started. > > This also ha

Re: HTOD: Low hanging fruit

2013-12-06 Thread Jacob Carlborg
On 2013-12-06 18:13, Jacob Carlborg wrote: It does substitutions. I guess using libclang would be just like compiling with Clang but stop the process somewhere after the AST is created and before the code generating phase has started. This also has the unfortunate consequences that you can onl

Re: HTOD: Low hanging fruit

2013-12-06 Thread Jacob Carlborg
On 2013-12-06 18:10, Dicebot wrote: Does it simply ignores preprocessor tokens or actually makes substitutions (but there is no D-ification)? I thought it is the latter. It does substitutions. I guess using libclang would be just like compiling with Clang but stop the process somewhere after

Re: HTOD: Low hanging fruit

2013-12-06 Thread Dicebot
On Friday, 6 December 2013 at 17:02:18 UTC, Jacob Carlborg wrote: On 2013-12-06 16:14, Dicebot wrote: htod is old and unsupported. I recommend dstep (https://github.com/jacob-carlborg/dstep) which is based on libclang and thus naturally up to date with current C state. DStep doesn't current

Re: HTOD: Low hanging fruit

2013-12-06 Thread Jacob Carlborg
On 2013-12-06 16:14, Dicebot wrote: htod is old and unsupported. I recommend dstep (https://github.com/jacob-carlborg/dstep) which is based on libclang and thus naturally up to date with current C state. DStep doesn't currently support any preprocessor handling, except for some simple include

Re: HTOD: Low hanging fruit

2013-12-06 Thread Dicebot
To be honest I'd love htod to be completely removed from dlang.org (and possibly replaced with dstep) as it does more harm than good.

Re: HTOD: Low hanging fruit

2013-12-06 Thread Dicebot
On Friday, 6 December 2013 at 15:04:18 UTC, Andre wrote: Hi, HTOD is not able to translate a #define if the value is in brackets like here: #define SQL_STILL_EXECUTING 2 #define SQL_ERROR (-1) #define SQL_INVALID_HANDLE (-2)

Re: HTOD: Low hanging fruit

2013-12-06 Thread Andre
strange, sent once but posted 2 times on server On Friday, 6 December 2013 at 15:04:58 UTC, Andre wrote: Hi, HTOD is not able to translate a #define if the value is in brackets like here: #define SQL_STILL_EXECUTING 2 #define SQL_ERROR (-1) #de

HTOD: Low hanging fruit

2013-12-06 Thread Andre
Hi, HTOD is not able to translate a #define if the value is in brackets like here: #define SQL_STILL_EXECUTING 2 #define SQL_ERROR (-1) #define SQL_INVALID_HANDLE (-2) #define SQL_NEED_DATA 99 (Examp

HTOD: Low hanging fruit

2013-12-06 Thread Andre
Hi, HTOD is not able to translate a #define if the value is in brackets like here: #define SQL_STILL_EXECUTING 2 #define SQL_ERROR (-1) #define SQL_INVALID_HANDLE (-2) #define SQL_NEED_DATA 99 (Examp