D Compiler as a Library

Jacob Carlborg doob at me.com
Fri Apr 13 12:34:02 PDT 2012


On 2012-04-13 17:25, Jakob Ovrum wrote:

> I think we've got the lexer and parser completely separate from
> most of the rest of the codebase (like the codegen), due to
> repeated requests from people who wanted to use these parts for
> IDEs and other tools.

Cool.

> I've yet to see anyone actually go through with using it though,
> possibly because there is no documentation for a lot of it.
> Documenting these parts fully into something of a public API and
> then putting it online is definitely on the todo list. Perhaps
> there would be more motivation to do this rather than work on
> something else if someone actually tried using SDC in their
> project instead of just talking about it, so it's kind of a
> catch-22.

That's always a problem.

> That said, the parser is currently evolving alongside the
> codegen. When we want to start implementing new parts of the
> language, we iteratively add it to the parser, hence it's not
> complete. It's very easy to work with though and it's mostly a
> menial task (although it's kind of fun to produce beautiful
> parser errors :P).
>
> Anyway, for anyone interested, you can find us on Github and
> #d.sdc on FreeNode.

How does it compare to DMD, does it implement the whole language yet?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list