Re: How to get 'import' clauses from d file?

2011-01-15 Thread Trass3r
I'm trying to make some home-grown d build system, but and one of my tasks is to get module dependencies. Yes, I know about -deps DMD switch, but it works when all needed modules are given to compiler. But if some dependencies absent compiler just aborts with error "module foo is in file "foo

How to get 'import' clauses from d file?

2011-01-14 Thread Alex Khmara
Hello! I'm trying to make some home-grown d build system, but and one of my tasks is to get module dependencies. Yes, I know about -deps DMD switch, but it works when all needed modules are given to compiler. But if some dependencies absent compiler just aborts with error "module foo is in fi