Removing libdparse dependency from DLS

Cristian Creteanu cristian.creteanu at pm.me
Thu Feb 20 18:58:12 UTC 2020


I am working on DLS (https://github.com/d-language-server/dls), 
trying to change the implementation to use the compiler as a 
library. The reason behind this is to make DLS be always up to 
date with the compiler so that it won't provide any obsolete 
information.

At the moment, libdparse 
(https://github.com/dlang-community/libdparse) is used instead 
and I want to get rid of this dependency. However, as DLS doesn't 
really do much by itself, since it relies on other tools, such as 
dcd (https://github.com/dlang-community/DCD), dscanner 
(https://github.com/dlang-community/D-Scanner), dfmt 
(https://github.com/dlang-community/dfmt), to do its work. 
Unfortunately, these dependencies also use libdparse, so removing 
it from DLS wouldn't be as easy as just adding the dmd logic to 
the DLS code where libdparse is used.

The cleanest way to solve this would be to replace libdparse with 
dmd in dcd and dscanner, as well. Would this be a good idea? 
Should I approach this differently?


More information about the Digitalmars-d mailing list