Mercurial > projects > dang
diff ast/Decl.d @ 22:e331e4e816e4
now handling structs to some extend
author | johnsen@johnsen-laptop |
---|---|
date | Fri, 18 Apr 2008 23:45:45 +0200 |
parents | 2168f4cb73f1 |
children | 495188f9078e |
line wrap: on
line diff
--- a/ast/Decl.d Fri Apr 18 21:39:17 2008 +0200 +++ b/ast/Decl.d Fri Apr 18 23:45:45 2008 +0200 @@ -11,6 +11,7 @@ { VarDecl, FuncDecl, + StructDecl, } class Decl @@ -56,3 +57,17 @@ Stmt[] statements; } +class StructDecl : Decl +{ + this(Identifier identifier, + VarDecl[] vars) + { + super(DeclType.StructDecl); + this.identifier = identifier; + this.vars = vars; + } + + Identifier identifier; + VarDecl[] vars; +} +