Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-29 Thread Bruno Medeiros
On 25/01/2013 13:43, Jacob Carlborg wrote: On 2013-01-25 13:01, Bruno Medeiros wrote: If I was going with that approach I likely would rather port the MonoD parser since it looks just as good, if not better, and C# would be easier to port to Java than D. But the descent.compiler experience

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-29 Thread Jacob Carlborg
On 2013-01-29 13:34, Bruno Medeiros wrote: Ah, fair enough. Yes, that could be an approach, although I dread a bit the thought of having to interface D data to Java through a C API... it might work though if one is carefull and manages to keep the interfacing data simple enough (and leave the

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread Rainer Schuetze
On 25.01.2013 21:34, Jacob Carlborg wrote: On 2013-01-25 20:00, alex wrote: I already suggested Rainer to make a native/non-native interface between VisualD and D_Parser - this will probably happen via COM or so.. and I dunno anything about that technique. I just can make sure that the

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread Jacob Carlborg
On 2013-01-26 01:23, alex wrote: Why not wrap dmd's front-end? The problem with the DMD frontend is that it's not made to be used in on its own, like in an IDE. -- /Jacob Carlborg

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread alex
On Saturday, 26 January 2013 at 08:22:39 UTC, Rainer Schuetze wrote: On 25.01.2013 21:34, Jacob Carlborg wrote: On 2013-01-25 20:00, alex wrote: I already suggested Rainer to make a native/non-native interface between VisualD and D_Parser - this will probably happen via COM or so.. and I

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread alex
On Saturday, 26 January 2013 at 11:46:27 UTC, alex wrote: Concerning completion server...why not a completion server? :D - I mean, it'll be launched as soon as VisualD launches..and then you can pipe-through commands etc. to interact like it's done the mspdbsrv already. That's imho even easier

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread Rainer Schuetze
On 26.01.2013 13:09, alex wrote: On Saturday, 26 January 2013 at 11:46:27 UTC, alex wrote: Concerning completion server...why not a completion server? :D - I mean, it'll be launched as soon as VisualD launches..and then you can pipe-through commands etc. to interact like it's done the

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-26 Thread alex
On Saturday, 26 January 2013 at 12:28:11 UTC, Rainer Schuetze wrote: On 26.01.2013 13:09, alex wrote: On Saturday, 26 January 2013 at 11:46:27 UTC, alex wrote: Concerning completion server...why not a completion server? :D - I mean, it'll be launched as soon as VisualD launches..and then

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread Bruno Medeiros
On 24/01/2013 13:25, Jacob Carlborg wrote: On 2013-01-24 14:12, Bruno Medeiros wrote: That's a lot of continuing nice work coming out from there, impressive! BTW, something I've been meaning to ask. I see that in Mono-D you've developed a hand-written D parser. How long did it take you to

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread Bruno Medeiros
On 24/01/2013 15:11, Paulo Pinto wrote: On Thursday, 24 January 2013 at 13:12:31 UTC, Bruno Medeiros wrote: On 21/01/2013 21:14, alex wrote: Hi everyone, No, the entire formatting engine is NOT finished yet. :P Anyway I've created a good compromise solution between releasing stuff early and

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread Jacob Carlborg
On 2013-01-25 13:01, Bruno Medeiros wrote: If I was going with that approach I likely would rather port the MonoD parser since it looks just as good, if not better, and C# would be easier to port to Java than D. But the descent.compiler experience (parser ported from DMD's parser) put me off

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread Paulo Pinto
On Friday, 25 January 2013 at 12:31:12 UTC, Bruno Medeiros wrote: On 24/01/2013 15:11, Paulo Pinto wrote: On Thursday, 24 January 2013 at 13:12:31 UTC, Bruno Medeiros wrote: On 21/01/2013 21:14, alex wrote: Hi everyone, No, the entire formatting engine is NOT finished yet. :P Anyway I've

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread alex
On Friday, 25 January 2013 at 13:43:46 UTC, Jacob Carlborg wrote: I didn't say anything about porting :) I was suggesting you integrate the VisualD parser without porting it. That's why I suggested the one in VisualD and not the one in Mono-D. I already suggested Rainer to make a

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread Jacob Carlborg
On 2013-01-25 20:00, alex wrote: I already suggested Rainer to make a native/non-native interface between VisualD and D_Parser - this will probably happen via COM or so.. and I dunno anything about that technique. I just can make sure that the parser library is fully stand-alone, only depending

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-25 Thread alex
On Friday, 25 January 2013 at 20:34:28 UTC, Jacob Carlborg wrote: On 2013-01-25 20:00, alex wrote: I already suggested Rainer to make a native/non-native interface between VisualD and D_Parser - this will probably happen via COM or so.. and I dunno anything about that technique. I just can

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-24 Thread Bruno Medeiros
On 21/01/2013 21:14, alex wrote: Hi everyone, No, the entire formatting engine is NOT finished yet. :P Anyway I've created a good compromise solution between releasing stuff early and having a fairly nice formatting result: I just let the indenting engine calculate the indents of all lines of

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-24 Thread Jacob Carlborg
On 2013-01-24 14:12, Bruno Medeiros wrote: That's a lot of continuing nice work coming out from there, impressive! BTW, something I've been meaning to ask. I see that in Mono-D you've developed a hand-written D parser. How long did it take you to write that? Did you test it extensively or not

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-24 Thread Paulo Pinto
On Thursday, 24 January 2013 at 13:12:31 UTC, Bruno Medeiros wrote: On 21/01/2013 21:14, alex wrote: Hi everyone, No, the entire formatting engine is NOT finished yet. :P Anyway I've created a good compromise solution between releasing stuff early and having a fairly nice formatting result:

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-22 Thread mist
On Monday, 21 January 2013 at 21:35:11 UTC, alex wrote: On Monday, 21 January 2013 at 21:32:38 UTC, F i L wrote: Thanks Alex, even though I don't use auto-formatting (I never did like that). I use it rarely either - but some others asked whether I could do this - and now there it is :)

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-22 Thread alex
On Tuesday, 22 January 2013 at 10:26:21 UTC, mist wrote: On Monday, 21 January 2013 at 21:35:11 UTC, alex wrote: On Monday, 21 January 2013 at 21:32:38 UTC, F i L wrote: Thanks Alex, even though I don't use auto-formatting (I never did like that). I use it rarely either - but some others

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-22 Thread mist
I always define project code style policies in Eclipse code style settings and run auto-format (Ctrl+Shift+F) on new code always before commiting to ensure my nasty personal preferences have not slipped out of subconscious. It also converts all whitespaces consistently to match project

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-22 Thread alex
On Tuesday, 22 January 2013 at 15:54:46 UTC, mist wrote: I always define project code style policies in Eclipse code style settings and run auto-format (Ctrl+Shift+F) on new code always before commiting to ensure my nasty personal preferences have not slipped out of subconscious. It also

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-21 Thread F i L
Thanks Alex, even though I don't use auto-formatting (I never did like that).

Re: Mono-D v0.4.9 - Rough formatting capability

2013-01-21 Thread alex
On Monday, 21 January 2013 at 21:32:38 UTC, F i L wrote: Thanks Alex, even though I don't use auto-formatting (I never did like that). I use it rarely either - but some others asked whether I could do this - and now there it is :)