Thread overview
std.dlang?
Apr 27, 2017
Jonathan Marler
Apr 27, 2017
rikki cattermole
Apr 27, 2017
Jacob Carlborg
Apr 27, 2017
Jack Stouffer
April 27, 2017
I was reading the ddmd code and 2 thoughts came to mind:

1. ddmd is much simpler than I imagined.
2. how has the front end not been integrated into the standard library?

Is someone working on this?  I had some ideas on how this could be done.

April 27, 2017
On 27/04/2017 3:29 PM, Jonathan Marler wrote:

snip

> 2. how has the front end not been integrated into the standard library?

- It can't be compiled alone on some targets
- You can't reuse it in the same process

Ignoring the obvious that it isn't structured right for as a library.

It has a long way to go before this is a good idea.
April 27, 2017
On 2017-04-27 16:29, Jonathan Marler wrote:

> Is someone working on this?  I had some ideas on how this could be done.

Yes [1] [2]. I think that there are more pull requests by the same author. The lexer is already available as a Dub package [3], although it's not regularly updated (or at all).

[1] https://github.com/dlang/dmd/pull/6603
[2] https://github.com/dlang/dmd/pull/6625
[3] http://code.dlang.org/packages/ddmd

-- 
/Jacob Carlborg
April 27, 2017
On Thursday, 27 April 2017 at 14:29:06 UTC, Jonathan Marler wrote:
> I was reading the ddmd code and 2 thoughts came to mind:
>
> 1. ddmd is much simpler than I imagined.
> 2. how has the front end not been integrated into the standard library?
>
> Is someone working on this?  I had some ideas on how this could be done.

A couple years ago hackerpilot proposed std.lexer to take libdparse into Phobos. I think it died because of maintenance/backwards compatibility concerns.