www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.dlang?

reply Jonathan Marler <johnnymarler gmail.com> writes:
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.
Apr 27
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
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.
Apr 27
prev sibling next sibling parent Jacob Carlborg <doob me.com> writes:
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
Apr 27
prev sibling parent Jack Stouffer <jack jackstouffer.com> writes:
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.
Apr 27