Mercurial > projects > dil
diff src/dil/semantic/Module.d @ 810:525ee3f848d9
Added modules cmd.Compile and dil.ModuleManager.
Added options -I, -release and -unittest to the compile command.
Tidied main.d up a bit.
Renamed start() methods of SemanticPass1 and 2 to run().
Moved function findModuleFilePath() to class ModuleManager.
Added msg CouldntLoadModule. Corrected two others.
Added member semanticPass to class Module.
Implemented visit(ImportDeclaration) in SemanticPass1.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 11 Mar 2008 02:48:01 +0100 |
parents | bcb74c9b895c |
children | 49e32b5bc161 |
line wrap: on
line diff
--- a/src/dil/semantic/Module.d Sun Mar 09 16:39:46 2008 +0100 +++ b/src/dil/semantic/Module.d Tue Mar 11 02:48:01 2008 +0100 @@ -32,7 +32,13 @@ ModuleDeclaration moduleDecl; /// The optional ModuleDeclaration in this file. Parser parser; /// The parser used to parse this file. - // Module[] modules; + /// Indicates which passes have been run on this module. + /// + /// 0 = no pass$(BR) + /// 1 = semantic pass 1$(BR) + /// 2 = semantic pass 2 + uint semanticPass; + Module[] modules; /// The imported modules. InfoManager infoMan; /// Collects error messages.