| Thread overview | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 08, 2005 blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Syntax highlight and outline, nothing more for now. It uses ANTLR for parsing. Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip Icons are from JDT/CDT <g> Main plugin ideas I take from dsource's eclipseD. Actually, it is my first Java, Eclipse, ANTLR project. <g> | ||||
July 08, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ilya Zaitseff | Ilya Zaitseff wrote: > Syntax highlight and outline, nothing more for now. > It uses ANTLR for parsing. > > Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg > Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip > > Icons are from JDT/CDT <g> > Main plugin ideas I take from dsource's eclipseD. > Actually, it is my first Java, Eclipse, ANTLR project. <g> Yes! The first editor with correct /+ +/ comments highlighting :) 2Sark7: Ты в аське то бываешь? А то она уже сто лет у меня в контакт листе висит, а в онлайне я тебя никогда не видел. -- Victor (aka nail) Nakoryakov nail-mail<at>mail<dot>ru Krasnoznamensk, Moscow, Russia | |||
July 08, 2005 Re: blackbird - yet another eclipse D editor: out contract bug | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ilya Zaitseff | Outliner ignores all that is followed first out{} contract in the source file. E.g.
> private import std.stdio;
>
> class A
> {
> int x, y;
> }
>
> struct S
> {
> float a, b, c;
>
> void foo(out int x)
> out
> {
> assert( x > 0 );
> }
> body
> {
>
> }
>
> void baz()
> {
>
> }
> }
>
> int main()
> {
> /+ comment /+ nested +/ comment +/
> writefln("Hello world");
> return 0;
> }
Gives outline S.foo and ignores all source below it.
--
Victor (aka nail) Nakoryakov
nail-mail<at>mail<dot>ru
Krasnoznamensk, Moscow, Russia
| |||
July 08, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Ilya Zaitseff | Cool! Installation instructions will be greatly appreciated. Particular question: how to create "D project" in Eclipse. Is there such entity at all? I've copied content into Eclipse plugin folder and trying to open D file but Eclipse says "Outline is not available". Some black russian magik needs to be done first, ah? :) Andrew. "Ilya Zaitseff" <sark7@mail333.com> wrote in message news:op.stkuexbsaaezs2@ilya.tec.amursk.ru... > Syntax highlight and outline, nothing more for now. > It uses ANTLR for parsing. > > Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip > > Icons are from JDT/CDT <g> > Main plugin ideas I take from dsource's eclipseD. > Actually, it is my first Java, Eclipse, ANTLR project. <g> | |||
July 08, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrew Fedoniouk | On Sat, 09 Jul 2005 06:27:37 +1100, Andrew Fedoniouk <news@terrainformatica.com> wrote: > Cool! > > Installation instructions will be greatly appreciated. > Particular question: how to create "D project" in Eclipse. > Is there such entity at all? Still no. <g> You can create a Simple Project, or CDT C/C++ Project. > > I've copied content into Eclipse plugin folder > and trying to open D file but Eclipse says "Outline is not available". > > Some black russian magik needs to be done first, ah? > > :) > > Andrew. > Strange. What version of Eclipse do you have? I've tested it only on Eclipse 3.0.1 SDK/Platform, and it works <g>. btw, such error should be logged in workspace/.metadata/.log > > > > "Ilya Zaitseff" <sark7@mail333.com> wrote in message > news:op.stkuexbsaaezs2@ilya.tec.amursk.ru... >> Syntax highlight and outline, nothing more for now. >> It uses ANTLR for parsing. >> >> Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg >> Plugin with sources (including ANTLR grammar): >> http://sark7.nm.ru/stuff/blackbird.zip >> >> Icons are from JDT/CDT <g> >> Main plugin ideas I take from dsource's eclipseD. >> Actually, it is my first Java, Eclipse, ANTLR project. <g> > > | |||
July 08, 2005 Re: blackbird - yet another eclipse D editor: out contract bug | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Victor Nakoryakov | On Fri, 08 Jul 2005 23:44:45 +1100, Victor Nakoryakov <nail-mail@mail.ru> wrote: > Outliner ignores all that is followed first out{} contract in the source file. E.g. > >> private import std.stdio; >> class A >> { >> int x, y; >> } >> struct S >> { >> float a, b, c; >> >> void foo(out int x) >> out >> { >> assert( x > 0 ); >> } >> body >> { >> >> } >> >> void baz() >> { >> >> } >> } >> int main() >> { >> /+ comment /+ nested +/ comment +/ >> writefln("Hello world"); >> return 0; >> } > > > Gives outline S.foo and ignores all source below it. > > Fixed. Binary update (just copy it over): http://sark7.nm.ru/stuff/blackbird_update1.zip | |||
July 08, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Victor Nakoryakov | On Fri, 08 Jul 2005 22:44:56 +1100, Victor Nakoryakov <nail-mail@mail.ru> wrote: > Ilya Zaitseff wrote: >> Syntax highlight and outline, nothing more for now. >> It uses ANTLR for parsing. >> Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg >> Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip >> Icons are from JDT/CDT <g> >> Main plugin ideas I take from dsource's eclipseD. >> Actually, it is my first Java, Eclipse, ANTLR project. <g> > > Yes! The first editor with correct /+ +/ comments highlighting :) > Yeah! It was a hard work for me :) > 2Sark7: Ты в аське то бываешь? А то она уже сто лет у меня в контакт листе висит, а в онлайне я тебя никогда не видел. > Бываю, но наверное мы по времени не пересекаемся :) | |||
July 09, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrew Fedoniouk | You may need remove the original eclipseD first. I found that Eclipse can remember the asocited program to open D file. If the the eclipseD is used to open D file before. Eclipse use eclipseD to open it. So remove eclipseD first and restart Eclipse. Eclipse will find blackbird to open D files. Then you can copy the removed eclipseD back again. But eclipse open D file using blackbird this time since it remembers blackbird as the associted program to open D file. "Andrew Fedoniouk" <news@terrainformatica.com> дÈëÏûÏ¢ÐÂÎÅ:damk39$n6n$1@digitaldaemon.com... > Cool! > > Installation instructions will be greatly appreciated. Particular question: how to create "D project" in Eclipse. Is there such entity at all? > > I've copied content into Eclipse plugin folder > and trying to open D file but Eclipse says "Outline is not available". > > Some black russian magik needs to be done first, ah? > > :) > > Andrew. > > > > > "Ilya Zaitseff" <sark7@mail333.com> wrote in message news:op.stkuexbsaaezs2@ilya.tec.amursk.ru... >> Syntax highlight and outline, nothing more for now. >> It uses ANTLR for parsing. >> >> Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip >> >> Icons are from JDT/CDT <g> >> Main plugin ideas I take from dsource's eclipseD. >> Actually, it is my first Java, Eclipse, ANTLR project. <g> > > | |||
July 10, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Shawn Liu wrote:
> You may need remove the original eclipseD first.
>
> I found that Eclipse can remember the asocited program to open D file. If the the eclipseD is used to open D file before. Eclipse use eclipseD to open it. So remove eclipseD first and restart Eclipse. Eclipse will find blackbird to open D files. Then you can copy the removed eclipseD back again. But eclipse open D file using blackbird this time since it remembers blackbird as the associted program to open D file.
>
>
Yeah... I had to remove eclipseD to get blackbird working too. I didn't mind doing so because the eclipseD parser was buggy for me and tended to crash eclipse on certain files (very annoying... so much so that I gave up on using eclipse for D development). I will play with blackbird for awhile and see if its parser is an improvement. So far it looks like it is.
Nice work.
-JJR
| |||
July 11, 2005 Re: blackbird - yet another eclipse D editor | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Victor Nakoryakov | My TextPad syntax file has alternate comment support since I wrote it a couple of years ago. I'll post it if there's anyone interested.
Victor Nakoryakov wrote:
> Ilya Zaitseff wrote:
>
>> Syntax highlight and outline, nothing more for now.
>> It uses ANTLR for parsing.
>>
>> Screenshot: http://sark7.nm.ru/stuff/blackbird_100.jpg
>> Plugin with sources (including ANTLR grammar): http://sark7.nm.ru/stuff/blackbird.zip
>>
>> Icons are from JDT/CDT <g>
>> Main plugin ideas I take from dsource's eclipseD.
>> Actually, it is my first Java, Eclipse, ANTLR project. <g>
>
>
> Yes! The first editor with correct /+ +/ comments highlighting :)
>
> 2Sark7: Ты в аське то бываешь? А то она уже сто лет у меня в контакт листе висит, а в онлайне я тебя никогда не видел.
>
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply