changeset 503:fa63ef408790

Added module dil.Package and semantic() to class Module.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 11 Dec 2007 15:05:08 +0100
parents 4e14cd1b24da
children 9076c4cea2a4
files trunk/src/dil/Module.d trunk/src/dil/Package.d
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/dil/Module.d	Tue Dec 11 14:19:30 2007 +0100
+++ b/trunk/src/dil/Module.d	Tue Dec 11 15:05:08 2007 +0100
@@ -9,6 +9,7 @@
 import dil.ImportParser;
 import dil.Lexer;
 import dil.File;
+import dil.Scope;
 import tango.io.FilePath;
 import tango.io.FileConst;
 import common;
@@ -69,6 +70,12 @@
     }
   }
 
+  void semantic()
+  {
+    auto scop = new Scope();
+    this.root.semantic(scop);
+  }
+
   string[] getImports()
   {
     string[] result;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/src/dil/Package.d	Tue Dec 11 15:05:08 2007 +0100
@@ -0,0 +1,11 @@
+/++
+  Author: Aziz Köksal
+  License: GPL3
++/
+module dil.Package;
+import dil.Symbol;
+
+class Package : Symbol
+{
+
+}