so that was 4 months ago - how do things currently stand on that initiative?<div><br></div><div>-Mike<br><br><div class="gmail_quote">On Fri, Nov 19, 2010 at 6:37 PM, Bruno Medeiros <span dir="ltr"><brunodomedeiros+spam@com.gmail></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 19/11/2010 22:25, Michael Stover wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As for D lexers and tokenizers, what would be nice is to<br>
A) build an antlr grammar for D<br>
B) build D targets for antlr so that antlr can generate lexers and<br>
parsers in the D language.<br>
<br>
For B) I found <a href="http://www.mbutscher.de/antlrd/index.html" target="_blank">http://www.mbutscher.de/antlrd/index.html</a><br>
<br>
For A) A good list of antlr grammars is at<br>
<a href="http://www.antlr.org/grammar/list" target="_blank">http://www.antlr.org/grammar/list</a>, but there isn't a D grammar.<br>
<br>
These things wouldn't be an enormous amount of work to create and<br>
maintain, and, if done, anyone could parse D code in many languages,<br>
including Java and C which would make providing IDE features for D<br>
development easier in those languages (eclipse for instance), and you<br>
could build lexers and parsers in D using antlr grammars.<br>
<br>
-Mike<br>
</blockquote>
<br></div>
Yes, that would be much better. It would be directly and immediately useful for the DDT project:<br>
<br>
"But better yet would be to start coding our own custom parser (using a parser generator like ANTLR for example), that could really be tailored for IDE needs. In the medium/long term, that's probably what needs to be done. "<br>

in <a href="http://www.digitalmars.com/d/archives/digitalmars/D/ide/Future_of_Descent_and_D_Eclipse_IDE_635.html" target="_blank">http://www.digitalmars.com/d/archives/digitalmars/D/ide/Future_of_Descent_and_D_Eclipse_IDE_635.html</a><br>
<font color="#888888">
<br>
-- <br>
Bruno Medeiros - Software Engineer<br>
</font></blockquote></div><br></div>