Looking for champion - std.lang.d.lex
Matthias Pleh
gonzo at web.at
Sat Nov 20 01:08:32 PST 2010
Am 20.11.2010 00:56, schrieb Michael Stover:
> so that was 4 months ago - how do things currently stand on that initiative?
>
> -Mike
>
> On Fri, Nov 19, 2010 at 6:37 PM, Bruno Medeiros
> <brunodomedeiros+spam at com.gmail> wrote:
>
> 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
>
>
There is a project with an antlr D-grammar in work.
http://code.google.com/p/vs-d-integration/
Maybe this can be finished?
matthias
More information about the Digitalmars-d
mailing list