diff src/dil/semantic/Pass2.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 1d06b4aed7cf 09a64d96967a
line wrap: on
line diff
--- a/src/dil/semantic/Pass2.d	Sun Mar 09 16:39:46 2008 +0100
+++ b/src/dil/semantic/Pass2.d	Tue Mar 11 02:48:01 2008 +0100
@@ -44,11 +44,12 @@
   }
 
   /// Start semantic analysis.
-  void start()
+  void run()
   {
     assert(modul.root !is null);
     // Create module scope.
     scop = new Scope(null, modul);
+    modul.semanticPass = 2;
     visit(modul.root);
   }