On Tuesday, 30 June 2015 at 04:08:48 UTC, rsw0x wrote:
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.

Yes, it seems to be enough for me.

Module imports can be retrieved directly by `dscanner --imports`,
and string imports can be found in `dscanner --ast`.

Thank you!

Reply via email to