Re: Netbeans vs. Eclipse (was: Re: Complete D grammar)

2011-04-20 Thread Steven Schveighoffer
On Wed, 20 Apr 2011 10:40:22 -0400, Bruno Medeiros wrote: On 04/04/2011 20:19, Aleksandar Ružičić wrote: On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer wrote: > On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić >wrote: > >> On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros

Netbeans vs. Eclipse (was: Re: Complete D grammar)

2011-04-20 Thread Bruno Medeiros
On 04/04/2011 20:19, Aleksandar Ružičić wrote: On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer wrote: > On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić >wrote: > >> On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros >>wrote: >>> >>> BTW, I wanna thank for this work (curren

Re: Complete D grammar

2011-04-13 Thread Bruno Medeiros
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

Re: Complete D grammar

2011-04-06 Thread Luca Boasso
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 wrote: > On 03/29/2011 07:53 AM, Bruno Medeiros wrote: >> On 28/03/2011 18:19, Luca Boasso wrote: >>> You can find a

Re: Complete D grammar

2011-04-06 Thread Ellery Newcomer
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 o

Re: Complete D grammar

2011-04-04 Thread Aleksandar Ružičić
On Mon, Apr 4, 2011 at 8:58 PM, Andrei Alexandrescu 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 (23

Re: Complete D grammar

2011-04-04 Thread Aleksandar Ružičić
On Mon, Apr 4, 2011 at 9:05 PM, Steven Schveighoffer wrote: > On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić > wrote: > >> On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros >> wrote: >>> >>> BTW, I wanna thank for this work (current and upcoming), it is likely >>> useful >>> for other IDE p

Re: Complete D grammar

2011-04-04 Thread Steven Schveighoffer
On Mon, 04 Apr 2011 14:51:02 -0400, Aleksandar Ružičić wrote: On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros 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 Net

Re: Complete D grammar

2011-04-04 Thread Andrei Alexandrescu
On 4/4/11 1:51 PM, Aleksandar Ružičić wrote: On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros 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 b

Re: Complete D grammar

2011-04-04 Thread Aleksandar Ružičić
On Mon, Apr 4, 2011 at 8:11 PM, Bruno Medeiros 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 wr

Re: Complete D grammar

2011-04-04 Thread Bruno Medeiros
On 29/03/2011 07:46, Rainer Schuetze wrote: Having written a D2 parser a few month ago in the hope it will be helpful to Visual D (just finds it way into the plugin right now), I've noticed quite some inaccuracies in the "official" grammar on the website. Some of these are probably already in bu

Re: Complete D grammar

2011-04-03 Thread Jason
On Mon, 28 Mar 2011 09:02:45 -0700, Luca Boasso wrote: > A complete D grammar is one of the objectives of my GSOC 2011 ANTLR > proposal, if I got accepted you will have one :) Luca - You might want to be aware that it appears that the dmd2 front end uses Pratt parsing rather than being

Re: Complete D grammar

2011-03-30 Thread Rainer Schuetze
Walter Bright wrote: On 3/29/2011 2:48 PM, Rainer Schuetze wrote: Could you please add a bugzilla entry for your wiki notes? I hope you mean an entry with a link to the wiki. The comparison itself might a bit too large itself for bugzilla (html is larger than 800kB) ;-) A link is fine.

Re: Complete D grammar

2011-03-30 Thread Walter Bright
On 3/29/2011 2:48 PM, Rainer Schuetze wrote: Could you please add a bugzilla entry for your wiki notes? I hope you mean an entry with a link to the wiki. The comparison itself might a bit too large itself for bugzilla (html is larger than 800kB) ;-) A link is fine.

Re: Complete D grammar

2011-03-30 Thread spir
On 03/30/2011 08:40 AM, Rainer Schuetze wrote: What would be an appropriate way to discuss grammar changes? I think many things should be simplified/clarified. I'd welcome this. I see a few options, but none is currently perfect: - in a wiki. both dsource and wiki4d don't seem to have discussi

Re: Complete D grammar

2011-03-30 Thread Trass3r
I just forked the d-programming-language.org repo on github to fix some grammar errors as a start. I think results should directly go into such a fork so a pull request can be issued later and everything might be merged in at once. Will open a new thread for it.

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Trass3r wrote: Rainer Schuetze Wrote: I've set up a comparison with some notes here: http://www.dsource.org/projects/visuald/wiki/GrammarComparison Very nice comparison style. What would be an appropriate way to discuss grammar changes? I think many things should be simplified/clarified. I

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Trass3r wrote: Rainer Schuetze wrote: I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should have an extra official pag

Re: Complete D grammar

2011-03-29 Thread Rainer Schuetze
Walter Bright wrote: On 3/28/2011 11:46 PM, Rainer Schuetze wrote: I've set up a comparison with some notes here: http://www.dsource.org/projects/visuald/wiki/GrammarComparison I thought I fixed the grammar issues listed in Bugzilla. The comparison is from the time I wrote the parser, s

Re: Complete D grammar

2011-03-29 Thread Trass3r
Rainer Schuetze Wrote: > I've set up a comparison with some notes here: > > http://www.dsource.org/projects/visuald/wiki/GrammarComparison Very nice comparison style. What would be an appropriate way to discuss grammar changes? I think many things should be simplified/clarified. For example, isn

Re: Complete D grammar

2011-03-29 Thread Trass3r
spir Wrote: > Sure, and this grammar should be the actual startpoint of actual parsers, so > that we know it's correct ;-) (else, it's just some more blowing in the wind) Exactly!

Re: Complete D grammar

2011-03-29 Thread Bruno Medeiros
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) The syntax is similar to EBNF, check the ANTLR documentation for details. I hope this might help you. Luca Boasso Indeed,

Re: Complete D grammar

2011-03-29 Thread Lutger Blijdestijn
Nick Sabalausky wrote: ... > > Yea, I remember that too. Someone took all the BNF sections from D's docs > on digitalmars.com, put them together, and filled in some > missing/erroneous parts. Maybe it's on wiki4d? Not sure if this is what you meant, but Jascha Wetzel had made a D grammar used by

Re: Complete D grammar

2011-03-29 Thread spir
On 03/29/2011 01:02 PM, Trass3r wrote: Rainer Schuetze wrote: I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should have

Re: Complete D grammar

2011-03-29 Thread Trass3r
Rainer Schuetze wrote: > I've extracted the website grammar using some combination of scripts > from the ddoc sources, so if there is interest, I can dig them up... Yep, please make them publicly available so they don't get lost. Though I think we should have an extra official page with the compl

Re: Complete D grammar

2011-03-29 Thread Walter Bright
On 3/28/2011 11:46 PM, Rainer Schuetze wrote: Having written a D2 parser a few month ago in the hope it will be helpful to Visual D (just finds it way into the plugin right now), I've noticed quite some inaccuracies in the "official" grammar on the website. Some of these are probably already in

Re: Complete D grammar

2011-03-28 Thread Rainer Schuetze
ntain errors. I've extracted the website grammar using some combination of scripts from the ddoc sources, so if there is interest, I can dig them up... Rainer Walter Bright wrote: On 3/28/2011 9:02 AM, Luca Boasso wrote: A complete D grammar is one of the objectives of my GSOC 2011 ANTLR pr

Re: Complete D grammar

2011-03-28 Thread Nick Sabalausky
"David Nadlinger" wrote in message news:imq92m$1ru0$1...@digitalmars.com... > On 3/28/11 5:17 PM, Kagamin wrote: >> Trass3r Wrote: >> >>> Didn't someone here have a complete D grammar? I vaguely remember that >>> there is at lea

Re: Complete D grammar

2011-03-28 Thread Luca Boasso
On 3/28/11, Walter Bright wrote: > On 3/28/2011 9:02 AM, Luca Boasso wrote: >> A complete D grammar is one of the objectives of my GSOC 2011 ANTLR >> proposal, if I got accepted you will have one :) > > The complete grammar should be part of the D spec. Please post any &g

Re: Complete D grammar

2011-03-28 Thread Walter Bright
On 3/28/2011 9:02 AM, Luca Boasso wrote: A complete D grammar is one of the objectives of my GSOC 2011 ANTLR proposal, if I got accepted you will have one :) The complete grammar should be part of the D spec. Please post any errors/fixes to the existing one to bugzilla!

Re: Complete D grammar

2011-03-28 Thread Luca Boasso
You can find an ANTLR grammar for D v1 at http://www.dsource.org/projects/antlrd/browser/toys/v3d/parsed.g (by Ellery Newcomer) The syntax is similar to EBNF, check the ANTLR documentation for details. I hope this might help you. Luca Boasso On 3/28/11, Trass3r wrote: > David Nadlinger Wrote:

Re: Complete D grammar

2011-03-28 Thread Trass3r
David Nadlinger Wrote: > Nope, Trass3r is talking about a grammar for the D language itself, Exactly, I'm pretty sure that some guy once stated on IRC or somewhere he had a complete D1 grammar.

Re: Complete D grammar

2011-03-28 Thread Trass3r
> huh? > http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=20299 The grammar offered there is lexing-only.

Re: Complete D grammar

2011-03-28 Thread Luca Boasso
A complete D grammar is one of the objectives of my GSOC 2011 ANTLR proposal, if I got accepted you will have one :) On 3/28/11, David Nadlinger wrote: > On 3/28/11 5:17 PM, Kagamin wrote: >> Trass3r Wrote: >> >>> Didn't someone here have a complete D grammar? I va

Re: Complete D grammar

2011-03-28 Thread David Nadlinger
On 3/28/11 5:17 PM, Kagamin wrote: Trass3r Wrote: Didn't someone here have a complete D grammar? I vaguely remember that there is at least a D1 one buried somewhere. huh? http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=20299 Nope, T

Re: Complete D grammar

2011-03-28 Thread Kagamin
Trass3r Wrote: > Didn't someone here have a complete D grammar? I vaguely remember that there > is at least a D1 one buried somewhere. huh? http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=20299

Complete D grammar

2011-03-28 Thread Trass3r
Didn't someone here have a complete D grammar? I vaguely remember that there is at least a D1 one buried somewhere.