Mercurial > projects > dil
annotate trunk/src/cmd/ImportGraph.d @ 364:1059295c2727
- Every command module has an execute method now.
- Added module cmd.ImportGraph.
- Renamed ModuleName to ModuleFQN.
- Added module dil.Module.
- Added member 'imports' to class Parser.
author | aziz |
---|---|
date | Fri, 31 Aug 2007 00:53:00 +0000 |
parents | |
children | ed67acc82268 |
rev | line source |
---|---|
364 | 1 /++ |
2 Author: Aziz Köksal | |
3 License: GPL3 | |
4 +/ | |
5 module cmd.ImportGraph; | |
6 import dil.SyntaxTree; | |
7 import dil.Declarations; | |
8 import dil.Token; | |
9 import dil.Parser, dil.Lexer; | |
10 import dil.File; | |
11 import dil.Module; | |
12 | |
13 void execute(string fileName) | |
14 { | |
15 auto mod = new Module(fileName); | |
16 auto root = mod.root; | |
17 | |
18 Module[] modules; | |
19 | |
20 foreach (decl; root.children) | |
21 { | |
22 | |
23 } | |
24 } |