diff trunk/src/dil/Symbol.d @ 560:709e223a8eb9

Added code related to symbols. Added class ScopeSymbol. Module inherits from ScopeSymbol now. Added methods classScope() and moduleScope(), and member symbol to class Scope. Added enum SYM. Added member sid to class Symbol. Aggregate and Function inherit from ScopeSymbol now. Added Error to struct Types.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Wed, 26 Dec 2007 14:17:01 +0100
parents 5431c0faf3b5
children 302e50e71ec2
line wrap: on
line diff
--- a/trunk/src/dil/Symbol.d	Mon Dec 24 20:39:14 2007 +0100
+++ b/trunk/src/dil/Symbol.d	Wed Dec 26 14:17:01 2007 +0100
@@ -3,9 +3,21 @@
   License: GPL3
 +/
 module dil.Symbol;
+
 import common;
 
+enum SYM
+{
+  Module,
+  Class,
+  Struct,
+  Union,
+  Variable,
+  Function,
+  Type,
+}
+
 class Symbol
 {
-
+  SYM sid;
 }