diff dang/compiler.d @ 176:dc9bf56b7ace

Can now use & as a unary operator and take an AddressOf
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 23:03:18 +0200
parents 7982eb63c0eb
children 08f68d684047
line wrap: on
line diff
--- a/dang/compiler.d	Thu Jul 24 21:12:12 2008 +0200
+++ b/dang/compiler.d	Thu Jul 24 23:03:18 2008 +0200
@@ -43,7 +43,7 @@
 
 void checkFiles(char[][] *files)
 {
-    GC.disable();
+//    GC.disable();
     bool non_existant_files = false;
     bool duplicate_files = false;
 
@@ -116,6 +116,9 @@
     argParse.addOption(["--ast-dump-code"],
             "what-to-do", Opt.Action.StoreConst, "code")
         .help("Output the AST as code");
+    argParse.addOption(["--semantic-only"],
+            "what-to-do", Opt.Action.StoreConst, "exit")
+        .help("Exit after semantics and before codegen");
     argParse.addOption(["--gen-llvm"],
             "what-to-do", Opt.Action.StoreConst, "gen-llvm")
         .help("Compile to LLVM code (default)");
@@ -218,6 +221,10 @@
                         print.print(m);
                 timings ~= Measurement("Converting AST to text", w.stop);
             });
+    else if (what == "exit")
+        postSema.attach(
+            (Module[] modules, SourceManager sm) {
+            });
     StopWatch total;
     total.start;