Analyze a D file for imports

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 29 21:08:46 PDT 2015


On Tuesday, 30 June 2015 at 04:02:00 UTC, Maaaks wrote:
> I want to make a simple build utility that will rebuild only 
> those files which changed since last build and those files that 
> depend on them.
>
> Which is the easiest and yet reliable way to parse a D source 
> and find all imports in it (and file import()s as well)?

dscanner has import analysis, it's likely tied to libdparse. That 
might be something worth investigating.


More information about the Digitalmars-d mailing list