diff parser/Action.d @ 53:da551f90e03f new_gen

Added struct decl and forward ref. A note on structs: they need to make a new scope when declared. Otherwise you could access struct members as globals
author Anders Johnsen <skabet@gmail.com>
date Sat, 26 Apr 2008 18:52:27 +0200
parents c96cdcbdb9d6
children 381975d76baf
line wrap: on
line diff
--- a/parser/Action.d	Sat Apr 26 16:12:36 2008 +0200
+++ b/parser/Action.d	Sat Apr 26 18:52:27 2008 +0200
@@ -68,6 +68,14 @@
     }
 
     /**
+      Add a struct member to a struct.
+     */
+    void actOnStructMember(DeclT decl, ref Id type, ref Id name, ExprT init)
+    {
+        return null;
+    }
+
+    /**
       Add an initialization expression to a previously created decl.
 
       Used for default values on function params and for values to local