November 01, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Chad J | Chad J wrote: > Frank Benoit (keinfarbton) wrote: >>>shinichiro!). Here is a link to that post: >>> >>>http://www.digitalmars.com/d/archives/digitalmars/D/32313.html >> >> >> I think it only works on win32? I didn't say that, but I use linux, so I cannot use or test this solution :( > > Bummer :( > > Even so, I still think phobos should have backtrace on windows since it has been done already and is also very helpful. Hopefully someone will do a linux version at some point. Well, actually, generally gdb is able to provide the backtrace without any particular help from DMD. For some reason, it works better without debug info turned on in later versions (but without line numbers). -- Lars Ivar Igesund blog at http://larsivi.net DSource & #D: larsivi |
November 01, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | Ary Manzana wrote:
> I was thinking of sending a feature request to Java just for this tiny function :-P
Sorry about that <g>. It is pretty awful. But goto roolz.
Lack of goto is one reason why I don't program in Java, I don't like languages trying to be my mom. There's no technical reason why Java can't have one, I know, I wrote a Java compiler.
|
November 01, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Ary Manzana wrote:
>> I was thinking of sending a feature request to Java just for this tiny function :-P
>
> Sorry about that <g>. It is pretty awful. But goto roolz.
>
> Lack of goto is one reason why I don't program in Java, I don't like languages trying to be my mom. There's no technical reason why Java can't have one, I know, I wrote a Java compiler.
It does in a limited form via labels and break/continue, but this obviously has far less utility than goto.
Sean
|
November 01, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote:
> It does in a limited form via labels and break/continue, but this obviously has far less utility than goto.
Some people even eschew break and continue as impure thoughts that must be cast out.
|
November 02, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | I ran across this. Hope it might help. http://www-128.ibm.com/developerworks/opensource/edu/os-dw-os-ecl-commplgin3.html?S_TACT=105AGX44&S_CMP=HP |
November 05, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > I ran across this. Hope it might help. > > http://www-128.ibm.com/developerworks/opensource/edu/os-dw-os-ecl-commplgin3.html?S_TACT=105AGX44&S_CMP=HP > > Already knew, but yes, it's a good article. -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D |
November 05, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | Ary Manzana wrote: > Bruno Medeiros escribió: >> Ary Manzana wrote: >> Hi, yes, I'm working on an Eclipse plugin too. I've started very recently (about two weeks ago), so I don't have anything significant to show yet, but I'm doing this as my degree final project, so I will be working on it during all school year. >> >> We definitely should talk and see if we can combine efforts, but the approach I was thinking was to build a parser using ANTLR, similar to what the previous eclipse plugins did (Blackbird, DDT). However, you seem to be far ahead of I've done. You say you've converted the whole D frontend to Java? (to descent\internal\core\dom\Parser.java I presume) That must have been a lot of work. I'd actually like to know how long it took for you to do that > > About a month and a half? (in my precious little spare time, of course :-P). I don't remember... > > , and if it's working correctly. I'm gonna take a >> better look at your code. >> >> > > Great! I would be very happy to combine efforts. The project now has a webpage in dsource.org: > > http://www.dsource.org/projects/descent/ > > There I wrote an explanation about why not to use ANTLR (I started doing that, then I changed to using DMD source code and it was *way* faster and better). > > I only converted parser.h, parser.c (yes, descent\internal\core\dom\Parser.java) , lexer.h, lexer.c (descent\internal\core\dom\Lexer.java) and the classes/functions referenced there: just the clean model with no semmantic stuff. Porting c++ to Java was not an easy task, especially since Java has no powerful "goto" (oh my, 732 in the whole code), so I had to change some of the code, or duplicate it (I don't want to break anything at first). > > Is it working ok? Check descent.test.jar. You can find cases to test both the parser and the lexer. I just downloaded the excelent Coverclipse ( http://coverlipse.sourceforge.net/ ): the parser is %65 tested; the lexer %68. That's more than half of it! :-) > > And it's not just copy-paste and test. The Token class now has two properties to tell its start position and length, as well as every class in the model, since a regular compiler dosen't need it, but a visual does. And I've written nice interfaces to the model (check descent.core.dom). > > The first step would be to get (close to) %100 test coverage on parser and lexer, then move on to the big (juicy) stuff. > > Read the last sentence I wrote on the dsource page: wait for me until then :-) > > (I will write all of these explanations in the webpage, and more, when I'll come back, I promise) Let me know when you get back. I have a lot of questions, it would be nice if we could exchange IM contacts (MSN, YM?), for now, I'm usually at the D IRC channel (bruno_m). For starters: "Ported most of DMD lexer and parser code. " - What do you mean "most" ? And what task are you planning to do next? My original planning was for me to do first an IDE-decoupled command-line tool that would perform some operations useful-even-outside-of-an-IDE, like code beautification or refactoring. This isn't just for project phased planning or code abstraction, I think it's a worthy goal of itself. Such IDE-decoupled tool could then be used by developers who use another IDE,editor (or none at all). Perhaps it could also be useful (by porting or direct use) to other IDEs in the future. (like Poseidon maybe?) Anyways, I'm gonna keep looking at you code and what it can do, I still have only taken a quick look at it. -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D |
November 07, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bruno Medeiros | Bruno Medeiros escribió: > Let me know when you get back. I'm back. > I have a lot of questions, it would be > nice if we could exchange IM contacts (MSN, YM?), for now, I'm usually at the D IRC channel (bruno_m). Which server? I didn't find it. My MSN is asterite ĉe hotmail punkto com. > For starters: "Ported most of DMD lexer and parser code. " - What do you mean "most" ? And what task are you planning to do next? In http://www.dsource.org/projects/descent/wiki/WikiStart I added a section below, "How to help?". There you'll find the explantation for "most". Actually, the lexer and parser code are ported, but the source ranges for elements are still missing for a lot of elements, as well as the nice AST interfaces. > My original planning was for me to do first an IDE-decoupled command-line tool that would perform some operations useful-even-outside-of-an-IDE, like code beautification or refactoring. This isn't just for project phased planning or code abstraction, I think it's a worthy goal of itself. Such IDE-decoupled tool could then be used by developers who use another IDE,editor (or none at all). Perhaps it could also be useful (by porting or direct use) to other IDEs in the future. (like Poseidon maybe?) Sounds like an interesting project, but I don't like the idea of a plugin using command lines. But that's just me. > Anyways, I'm gonna keep looking at you code and what it can do, I still have only taken a quick look at it. If you have any questions, don't hesitate. I suppose the little explanation on the dsource page won't suffice, but taking a look at which lines don't get covered by the tests gives a big hint on what to program next. Ary P.D.: What is the <g> everyone use in their messages? |
November 07, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ary Manzana | Ary Manzana wrote: > Bruno Medeiros escribió: >> Let me know when you get back. > > I'm back. > >> I have a lot of questions, it would be >> nice if we could exchange IM contacts (MSN, YM?), for now, I'm usually >> at the D IRC channel (bruno_m). > > Which server? I didn't find it. My MSN is asterite ĉe hotmail punkto com. > #D is on FreeNode. > > P.D.: What is the <g> everyone use in their messages? <g> <grin> if I remember correctly. |
November 07, 2006 Re: Eclipse plugin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | Jesse Phillips wrote:
> Ary Manzana wrote:
>> Bruno Medeiros escribió:
>>> Let me know when you get back.
>> I'm back.
>>
>>> I have a lot of questions, it would be
>>> nice if we could exchange IM contacts (MSN, YM?), for now, I'm usually
>>> at the D IRC channel (bruno_m).
>> Which server? I didn't find it. My MSN is asterite ĉe hotmail punkto com.
>>
>
> #D is on FreeNode.
>
>> P.D.: What is the <g> everyone use in their messages?
>
> <g> <grin> if I remember correctly.
Party over at #D WOO WOO! Actually, there isnt one right now, but THERE COULD BE!
|
Copyright © 1999-2021 by the D Language Foundation