Mercurial > projects > dil
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trunk/src/cmd/ImportGraph.d Fri Aug 31 00:53:00 2007 +0000 @@ -0,0 +1,24 @@ +/++ + Author: Aziz Köksal + License: GPL3 ++/ +module cmd.ImportGraph; +import dil.SyntaxTree; +import dil.Declarations; +import dil.Token; +import dil.Parser, dil.Lexer; +import dil.File; +import dil.Module; + +void execute(string fileName) +{ + auto mod = new Module(fileName); + auto root = mod.root; + + Module[] modules; + + foreach (decl; root.children) + { + + } +}