diff trunk/src/dil/Types.d @ 562:b0533550d64c

Added semantic() to VariableDeclaration. Renamed member type to typeNode in VariableDeclaration. Added insert() and error() to class Scope. Made class SymbolTable a struct. Added insert() and lookup() to ScopeSymbol. Added insert() to Aggregate. Added semantic() to TypeNode.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 28 Dec 2007 17:48:47 +0100
parents 772ffdb18fd4
children fa6d3c52757d
line wrap: on
line diff
--- a/trunk/src/dil/Types.d	Wed Dec 26 23:38:16 2007 +0100
+++ b/trunk/src/dil/Types.d	Fri Dec 28 17:48:47 2007 +0100
@@ -3,11 +3,14 @@
   License: GPL3
 +/
 module dil.Types;
+
 import dil.SyntaxTree;
 import dil.Token;
 import dil.Expressions;
 import dil.Enums;
 import dil.Identifier;
+import dil.Scope;
+import dil.TypeSystem;
 
 class Parameter : Node
 {
@@ -261,6 +264,11 @@
     this.tid = tid;
     this.next = next;
   }
+
+  Type semantic(Scope scop)
+  {
+    return Types.Error;
+  }
 }
 
 class IntegralType : TypeNode