www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Use dmd as a frontend

reply MaxBlack_AUT <m m.m> writes:
Hello  all,

i am trying to get dmd as a frontend working, because i want to 
implement a new type of lsp.
No luck so far either via LLMs or web searches. I can use 
'libparse' but I saw the DConf video on the dmd as a lib video.

Does anybody have a very simple example 'dub.json' and 'main.d' 
with extracting symbols from a D file, to see how I could get 
something compiling at least?

Kind regards,
Max
Jun 17
parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 18/06/2026 6:14 PM, MaxBlack_AUT wrote:
 Hello  all,
 
 i am trying to get dmd as a frontend working, because i want to 
 implement a new type of lsp.
 No luck so far either via LLMs or web searches. I can use 'libparse' but 
 I saw the DConf video on the dmd as a lib video.
 
 Does anybody have a very simple example 'dub.json' and 'main.d' with 
 extracting symbols from a D file, to see how I could get something 
 compiling at least?
 
 Kind regards,
 Max
Something like this? https://github.com/dlang/dmd/blob/master/compiler/test/dub_package/retrieve_scope.d
Jun 17