diff dang/compiler.d @ 13:e5caf9971207

Checking for types and identifiers. TODO: Make each varDecl create a new scope
author johnsen@johnsen-desktop
date Fri, 18 Apr 2008 14:47:23 +0200
parents 2168f4cb73f1
children e331e4e816e4
line wrap: on
line diff
--- a/dang/compiler.d	Fri Apr 18 13:58:27 2008 +0200
+++ b/dang/compiler.d	Fri Apr 18 14:47:23 2008 +0200
@@ -17,7 +17,9 @@
 import gen.LuaGen,
        gen.LLVMGen;
 
-import sema.Visitor;
+import sema.Visitor,
+       sema.SymbolTableBuilder,
+       sema.Declarations;
 
 import dang.OptParse;
 
@@ -145,6 +147,9 @@
         auto parser = new Parser;
         auto decls = parser.parse(lexer);
 
+        (new SymbolTableBuilder).visit(decls);
+        (new Declarations).visit(decls);
+
         postParse(decls, src);
     }