Re: C++ parser

2013-05-23 Thread Jacob Carlborg
On 2013-05-23 16:46, 1100110 wrote: That was fast. I'll check it out. Thank you. Note, if you're using DVM you need to change the build.sh file to use DMD 2.062. Also, I don't know if there are other hidden compiler errors in Tango using DMD 2.063. -- /Jacob Carlborg

Re: C++ parser

2013-05-23 Thread 1100110
On 05/23/2013 07:33 AM, Jacob Carlborg wrote: > On 2013-05-23 11:44, 1100110 wrote: > >> Hell yeah! >> I didn't realize dstep was yours. >> >> >> If I can do anything to help, let me know. > > It works with DMD 2.062. To get it to work with DMD 2.063 there are is > regression that needs to be fix

Re: C++ parser

2013-05-23 Thread Jacob Carlborg
On 2013-05-23 11:44, 1100110 wrote: Hell yeah! I didn't realize dstep was yours. If I can do anything to help, let me know. It works with DMD 2.062. To get it to work with DMD 2.063 there are is regression that needs to be fixed for find a workaround for. Tango fails to compile because of

Re: C++ parser

2013-05-23 Thread 1100110
On 05/23/2013 01:25 AM, Jacob Carlborg wrote: > On 2013-05-23 00:17, 1100110 wrote: > >> hmmm? I never said it was unsuitable, I think you mistaking me for >> someone else. >> (I also have no experience with libclang, and I'm tired of manually >> translating these things... So, am I looking for

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-23 00:17, 1100110 wrote: hmmm? I never said it was unsuitable, I think you mistaking me for someone else. (I also have no experience with libclang, and I'm tired of manually translating these things... So, am I looking for a way to not translate this? Yes.) Also I'm pretty sure I

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-22 22:17, nazriel wrote: I am afraid it doesn't build anymore with DMD git-head. It isn't dstep itself but one of its dependencies. I wanted to use it in order to create bindings for XCB but couldn't built it. Could you use the pre compiled binary in the mean time: https://github.

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-22 22:33, 1100110 wrote: Yeah, I was afraid of that... So, Now the next easiest thing is probably SWIG. Hey, at least give me a change to fix the problem. -- /Jacob Carlborg

Re: C++ parser

2013-05-22 Thread 1100110
On 05/22/2013 04:40 PM, Dicebot wrote: > On Wednesday, 22 May 2013 at 21:38:49 UTC, 1100110 wrote: >> ... > > I simply don't understand why do you find libclang unsuitable. > hmmm? I never said it was unsuitable, I think you mistaking me for someone else. (I also have no experience with libclan

Re: C++ parser

2013-05-22 Thread Dicebot
On Wednesday, 22 May 2013 at 21:38:49 UTC, 1100110 wrote: ... I simply don't understand why do you find libclang unsuitable.

Re: C++ parser

2013-05-22 Thread 1100110
On 05/22/2013 04:07 PM, Dicebot wrote: > On Wednesday, 22 May 2013 at 20:39:08 UTC, 1100110 wrote: >> Hmmm... Or you could try using pegged (or CTPG or goldie or dparser). >> >> I haven't played with it too much, but there's a C grammar, and it >> mentions the ability to specify semantic actions, s

Re: C++ parser

2013-05-22 Thread Dicebot
On Wednesday, 22 May 2013 at 20:39:08 UTC, 1100110 wrote: Hmmm... Or you could try using pegged (or CTPG or goldie or dparser). I haven't played with it too much, but there's a C grammar, and it mentions the ability to specify semantic actions, so That's like 1/3 of the way to something

Re: C++ parser

2013-05-22 Thread 1100110
Hmmm... Or you could try using pegged (or CTPG or goldie or dparser). I haven't played with it too much, but there's a C grammar, and it mentions the ability to specify semantic actions, so That's like 1/3 of the way to something usable. https://github.com/PhilippeSigaud/Pegged/wiki/Semantic-

Re: C++ parser

2013-05-22 Thread 1100110
On 05/22/2013 03:17 PM, nazriel wrote: > On Wednesday, 22 May 2013 at 08:10:31 UTC, Jacob Carlborg wrote: >> On 2013-05-22 10:05, IgorStepanov wrote: >>> Is there someone free C++ parser? I want to create simple util to >>> converting C++ headers to D like htod, but

Re: C++ parser

2013-05-22 Thread Igor Stepanov
I'm not sure on how to best bind C++ code to D. D can handle some parts of the C++ ABI, like classes and virtual functions. dlang.org contains some information: Now extern(C++) interface allow to access to virtual and non-virtual (with final annotation) methods, static methods. After my pull fo

Re: C++ parser

2013-05-22 Thread nazriel
On Wednesday, 22 May 2013 at 08:10:31 UTC, Jacob Carlborg wrote: On 2013-05-22 10:05, IgorStepanov wrote: Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas? There&#

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-22 20:31, Jacob Carlborg wrote: I accidentally sent the message too soon. On 2013-05-22 16:55, IgorStepanov wrote: Seems pretty. What I need to do first to start work over C++ to D handle? As I think, I'll need to generate to one C++ header one .cpp glue file (with some hacking ove

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-22 16:55, IgorStepanov wrote: Seems pretty. What I need to do first to start work over C++ to D handle? As I think, I'll need to generate to one C++ header one .cpp glue file (with some hacking over header) and one .di file. I'm not sure on how to best bind C++ code to D. D can hand

Re: C++ parser

2013-05-22 Thread IgorStepanov
On Wednesday, 22 May 2013 at 08:10:31 UTC, Jacob Carlborg wrote: On 2013-05-22 10:05, IgorStepanov wrote: Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas? There&#

Re: C++ parser

2013-05-22 Thread Dicebot
On Wednesday, 22 May 2013 at 08:05:06 UTC, IgorStepanov wrote: Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas? Using libclang is probably most convenient and robust

Re: C++ parser

2013-05-22 Thread Dejan Lekic
On Wednesday, 22 May 2013 at 08:05:06 UTC, IgorStepanov wrote: Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas? The easiest thing for you would be to use the GCCXML - http

Re: C++ parser

2013-05-22 Thread Jacob Carlborg
On 2013-05-22 10:05, IgorStepanov wrote: Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas? There's libclang. I already have a tool that handles C and Objective-C files.

C++ parser

2013-05-22 Thread IgorStepanov
Is there someone free C++ parser? I want to create simple util to converting C++ headers to D like htod, but I want, if it possible, to dont write C++ parser. Any ideas?