diff trunk/src/Declarations.d @ 113:20d8ae8a3fd9

- Implemented parseAggregateDeclaration for Struct- and UnionDeclarations.
author aziz
date Sun, 08 Jul 2007 21:24:03 +0000
parents 004d98df65af
children 83bb5190c0fc
line wrap: on
line diff
--- a/trunk/src/Declarations.d	Sun Jul 08 20:34:05 2007 +0000
+++ b/trunk/src/Declarations.d	Sun Jul 08 21:24:03 2007 +0000
@@ -80,3 +80,25 @@
     this.decls = decls;
   }
 }
+
+class StructDeclaration : Declaration
+{
+  string name;
+  Declaration[] decls;
+  this(string name, Declaration[] decls)
+  {
+    this.name = name;
+    this.decls = decls;
+  }
+}
+
+class UnionDeclaration : Declaration
+{
+  string name;
+  Declaration[] decls;
+  this(string name, Declaration[] decls)
+  {
+    this.name = name;
+    this.decls = decls;
+  }
+}