diff tools/AstPrinter.d @ 172:01c2c49775ef

- Changed Parser to be more clean on type parsing. - Parsing int function(int), and the like, types.(Function pointers) - Fixed a design fault that made Symbol be wrong. Now Symbols are created with a factory with the help of types.
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 20:31:24 +0200
parents 362265427838
children dc9bf56b7ace
line wrap: on
line diff
--- a/tools/AstPrinter.d	Thu Jul 24 12:27:34 2008 +0200
+++ b/tools/AstPrinter.d	Thu Jul 24 20:31:24 2008 +0200
@@ -197,8 +197,8 @@
                 auto iden = cast(Identifier)exp;
                 printIdentifier(iden);
                 break;
-            case ExpType.PointerIdentifier:
-                auto iden = cast(PointerIdentifier)exp;
+            case ExpType.PointerTypeExp:
+                auto iden = cast(PointerTypeExp)exp;
                 printExp(iden.pointerOf);
                 print("*");
                 break;