View mode: basic / threaded / horizontal-split · Log in · Help
April 04, 2011
Re: Complete D grammar
On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer
<schveiguy@yahoo.com> wrote:
> On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić
> <ruzicic.aleksandar@gmail.com> wrote:
>
>> On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros
>> <brunodomedeiros+spam@com.gmail> wrote:
>>>
>>> BTW, I wanna thank for this work (current and upcoming), it is likely
>>> useful
>>> for other IDE projects as well ;)
>>>
>>
>> Ditto.
>>
>> I have started work on D language support for NetBeans (IMHO it's MUCH
>> better editor than Eclipse) and started to write grammar for javaCC,
>> but since there is ongoing work on ANTLR parser I'll wait for that to
>> be done and integrate it into plugin I'm working on. :)
>
> I would absolutely love NetBeans support for D.
>
> -Steve
>

Me too, so when I realized that no such project exists I've decided to
write it my self (after all I write Java for few year now so I feel
comfortable with it) but I knew that writing parser will take me most
time and effort so it's great to see someone decided to write
parser/grammar for ANTLR which can be used by other projects (in that
way few IDEs could share same parser and focus on other parts of an
IDE).
April 04, 2011
Re: Complete D grammar
On Mon, Apr 4, 2011 at 8:58 PM, Andrei Alexandrescu
<SeeWebsiteForEmail@erdani.org> wrote:
> Aleksandar, would you be willing to work with the student working on ANTLR
> as a mentor? Please let me know and I'll send details about applying as a
> mentor.

Well, I'm also a student :)
So I'm not sure if I really can be a mentor (23yrs old), and I have
never worked with ANTLR before but language theory (grammars, parsers
and all that stuff) was always my favorite subject so I know a bit
about all that.

I'm willing to help in any way I can..
April 06, 2011
Re: Complete D grammar
On 03/29/2011 07:53 AM, Bruno Medeiros wrote:
> On 28/03/2011 18:19, Luca Boasso wrote:
>> You can find an ANTLR grammar for D v1 at
>> http://www.dsource.org/projects/antlrd/browser/toys/v3d/parsed.g (by
>> Ellery Newcomer)
>>

I never should have uploaded that file.

>
> Indeed, Ellery is (AFAIK) the only one who has worked on ANLTR-based D
> parser recently and possibly got any significant work done in that. It's
> definitely worth looking at his work and see if anything can be reused.
> However, according to his most recent message on the subject:
>
>
> ...it may not provide much of head-start.
>

Been working on them for 3 years now. I should hope it would.

As it is, I think I'm done with D and I probably won't be continuing 
that project, so if anyone wants to do anything further with it, they're 
welcome to it.

https://bitbucket.org/ariovistus/d-jvm-cc

I also have some netbeans plugin code somewhere. If memory serves, it 
can do syntax highlighting. If anyone wants it.
April 06, 2011
Re: Complete D grammar
Great! It can be a good start for my Google Summer of Code Proposal
[ANTLR and Java based D parser for IDE usage].
I was looking for this code

Thank you

On 4/6/11, Ellery Newcomer <ellery-newcomer@utulsa.edu> wrote:
> On 03/29/2011 07:53 AM, Bruno Medeiros wrote:
>> On 28/03/2011 18:19, Luca Boasso wrote:
>>> You can find an ANTLR grammar for D v1 at
>>> http://www.dsource.org/projects/antlrd/browser/toys/v3d/parsed.g (by
>>> Ellery Newcomer)
>>>
>
> I never should have uploaded that file.
>
>>
>> Indeed, Ellery is (AFAIK) the only one who has worked on ANLTR-based D
>> parser recently and possibly got any significant work done in that. It's
>> definitely worth looking at his work and see if anything can be reused.
>> However, according to his most recent message on the subject:
>>
>>
>> ...it may not provide much of head-start.
>>
>
> Been working on them for 3 years now. I should hope it would.
>
> As it is, I think I'm done with D and I probably won't be continuing
> that project, so if anyone wants to do anything further with it, they're
> welcome to it.
>
> https://bitbucket.org/ariovistus/d-jvm-cc
>
> I also have some netbeans plugin code somewhere. If memory serves, it
> can do syntax highlighting. If anyone wants it.
>
April 13, 2011
Re: Complete D grammar
On 06/04/2011 19:05, Ellery Newcomer wrote:
> On 03/29/2011 07:53 AM, Bruno Medeiros wrote:
>> On 28/03/2011 18:19, Luca Boasso wrote:
>>> You can find an ANTLR grammar for D v1 at
>>> http://www.dsource.org/projects/antlrd/browser/toys/v3d/parsed.g (by
>>> Ellery Newcomer)
>>>
>
> I never should have uploaded that file.
>
>>
>> Indeed, Ellery is (AFAIK) the only one who has worked on ANLTR-based D
>> parser recently and possibly got any significant work done in that. It's
>> definitely worth looking at his work and see if anything can be reused.
>> However, according to his most recent message on the subject:
>>
>>
>> ...it may not provide much of head-start.
>>
>
> Been working on them for 3 years now. I should hope it would.
>
> As it is, I think I'm done with D and I probably won't be continuing
> that project, so if anyone wants to do anything further with it, they're
> welcome to it.
>
> https://bitbucket.org/ariovistus/d-jvm-cc
>
> I also have some netbeans plugin code somewhere. If memory serves, it
> can do syntax highlighting. If anyone wants it.

Thanks, it's worth taking a look for sure.
BTW, what is that Netbeans fork of antlr2, why was it created? I tried 
googling but couldn't find any info quickly.


-- 
Bruno Medeiros - Software Engineer
April 20, 2011
Netbeans vs. Eclipse (was: Re: Complete D grammar)
On 04/04/2011 20:19, Aleksandar Ružičić wrote:
> On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer
> <schveiguy@yahoo.com>  wrote:
>> >  On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić
>> >  <ruzicic.aleksandar@gmail.com>  wrote:
>> >
>>> >>  On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros
>>> >>  <brunodomedeiros+spam@com.gmail>  wrote:
>>>> >>>
>>>> >>>  BTW, I wanna thank for this work (current and upcoming), it is likely
>>>> >>>  useful
>>>> >>>  for other IDE projects as well ;)
>>>> >>>
>>> >>
>>> >>  Ditto.
>>> >>
>>> >>  I have started work on D language support for NetBeans (IMHO it's MUCH
>>> >>  better editor than Eclipse) and started to write grammar for javaCC,
>>> >>  but since there is ongoing work on ANTLR parser I'll wait for that to
>>> >>  be done and integrate it into plugin I'm working on. :)
>> >
>> >  I would absolutely love NetBeans support for D.
>> >
>> >  -Steve
>> >

On my side I'm surprised NetBeans hasn't faded into obscurity, but I 
haven't tried it for a long, long time, so this isn't really an informed 
opinion.

So why is NetBeans much better editor than Eclipse? (I'm not just 
looking for a discussion, I'm curious about these issues as it might be 
something that can be taken into consideration for DDT development)


> Me too, so when I realized that no such project exists I've decided to
> write it my self (after all I write Java for few year now so I feel
> comfortable with it) but I knew that writing parser will take me most
> time and effort so it's great to see someone decided to write
> parser/grammar for ANTLR which can be used by other projects (in that
> way few IDEs could share same parser and focus on other parts of an
> IDE).

You can get started right away, no? The Descent parser has been isolated 
into its own bundle, which has no dependencies on Eclipse code or other 
third-party libraries (other than perhaps some assertion code, but all 
superficial dependencies that can be easily replaced).

The DDT DTool bundle 
(http://code.google.com/a/eclipselabs.org/p/ddt/source/browse/#hg%2Forg.dsource.ddt.dtool), 
which adds its own AST and semantic functionality like find-ref, code 
completion, etc., is also designed to be independent of Eclipse code, so 
you could use that as well, integrate it to NetBeans. In practice there 
is a non-trivial dependency here, but I plan to remove it soon, hopefully.


-- 
Bruno Medeiros - Software Engineer
April 20, 2011
Re: Netbeans vs. Eclipse (was: Re: Complete D grammar)
On Wed, 20 Apr 2011 10:40:22 -0400, Bruno Medeiros  
<brunodomedeiros+spam@com.gmail> wrote:

> On 04/04/2011 20:19, Aleksandar Ružičić wrote:
>> On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer
>> <schveiguy@yahoo.com>  wrote:
>>> >  On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić
>>> >  <ruzicic.aleksandar@gmail.com>  wrote:
>>> >
>>>> >>  On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros
>>>> >>  <brunodomedeiros+spam@com.gmail>  wrote:
>>>>> >>>
>>>>> >>>  BTW, I wanna thank for this work (current and upcoming), it is  
>>>>> likely
>>>>> >>>  useful
>>>>> >>>  for other IDE projects as well ;)
>>>>> >>>
>>>> >>
>>>> >>  Ditto.
>>>> >>
>>>> >>  I have started work on D language support for NetBeans (IMHO it's  
>>>> MUCH
>>>> >>  better editor than Eclipse) and started to write grammar for  
>>>> javaCC,
>>>> >>  but since there is ongoing work on ANTLR parser I'll wait for  
>>>> that to
>>>> >>  be done and integrate it into plugin I'm working on. :)
>>> >
>>> >  I would absolutely love NetBeans support for D.
>>> >
>>> >  -Steve
>>> >
>
> On my side I'm surprised NetBeans hasn't faded into obscurity, but I  
> haven't tried it for a long, long time, so this isn't really an informed  
> opinion.
>
> So why is NetBeans much better editor than Eclipse? (I'm not just  
> looking for a discussion, I'm curious about these issues as it might be  
> something that can be taken into consideration for DDT development)
>

I don't use eclipse.  I use netbeans.  For me, it's installing a  
additional language support vs. installing another IDE.  Otherwise, I'd be  
neutral on the subject.

I'm not a huge IDE guy, I just have netbeans installed because they  
support PHP w/ server-side debugging. But I've gotten used to netbeans and  
their editor.  So I would probably feel more comfortable with a netbeans  
version of D than an eclipse version.

As for "why is it better"? I have no clue, I don't use eclipse.  (I  
realize this wasn't addressed at me, but I thought I'd just state my  
opinion or lack thereof)

Don't know if eclipse has this or not, but probably the coolest feature in  
netbeans' editor is the ability to highlight a block of text and "move" it  
around using the keyboard (shift-alt-arrow) and copy it using the keyboard  
(shift-ctrl-arrow).  I find myself trying to do this with other editors  
all the time now.

My biggest pet-peeve with netbeans is when I want to change a value to a  
string literal, I highlight what I want to change, then type a quote to  
start typing the literal, the freaking thing instead just puts quotes  
around the highlighted text (which means I now have to re-highlight the  
text and press delete first).  I've never once *used* this feature, but it  
gets in my way all the time (anyone know how to disable that?).

-Steve
April 20, 2011
Re: Netbeans vs. Eclipse
On 2011-04-20 17:32, Steven Schveighoffer wrote:
> My biggest pet-peeve with netbeans is when I want to change a value to a
> string literal, I highlight what I want to change, then type a quote to
> start typing the literal, the freaking thing instead just puts quotes
> around the highlighted text (which means I now have to re-highlight the
> text and press delete first). I've never once *used* this feature, but
> it gets in my way all the time (anyone know how to disable that?).
>
> -Steve

I use that feature all the time in other text editors.

-- 
/Jacob Carlborg
Next ›   Last »
1 2 3 4
Top | Discussion index | About this forum | D home