Looking for champion - std.lang.d.lex
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Fri Nov 19 15:37:06 PST 2010
On 19/11/2010 22:25, Michael Stover wrote:
> As for D lexers and tokenizers, what would be nice is to
> A) build an antlr grammar for D
> B) build D targets for antlr so that antlr can generate lexers and
> parsers in the D language.
>
> For B) I found http://www.mbutscher.de/antlrd/index.html
>
> For A) A good list of antlr grammars is at
> http://www.antlr.org/grammar/list, but there isn't a D grammar.
>
> These things wouldn't be an enormous amount of work to create and
> maintain, and, if done, anyone could parse D code in many languages,
> including Java and C which would make providing IDE features for D
> development easier in those languages (eclipse for instance), and you
> could build lexers and parsers in D using antlr grammars.
>
> -Mike
Yes, that would be much better. It would be directly and immediately
useful for the DDT project:
"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. "
in
http://www.digitalmars.com/d/archives/digitalmars/D/ide/Future_of_Descent_and_D_Eclipse_IDE_635.html
--
Bruno Medeiros - Software Engineer
More information about the Digitalmars-d
mailing list