diff trunk/src/Expressions.d @ 130:0467f01ed524

- Fix: parameters can have optional identifier. - Added code for parsing delegates of type ( ArgumentList ) FunctionBody. - Added class FunctionType. - Added class FunctionLiteralExpression.
author aziz
date Tue, 10 Jul 2007 16:49:01 +0000
parents 469188935d56
children 3924b1ee1302
line wrap: on
line diff
--- a/trunk/src/Expressions.d	Mon Jul 09 22:08:05 2007 +0000
+++ b/trunk/src/Expressions.d	Tue Jul 10 16:49:01 2007 +0000
@@ -5,6 +5,7 @@
 module Expressions;
 import Token;
 import Types;
+import Declarations;
 
 class Expression
 {
@@ -537,3 +538,14 @@
     this.specType = specType;
   }
 }
+
+class FunctionLiteralExpression : Expression
+{
+  FunctionType func;
+  Declaration[] decls;
+  this(FunctionType func, Declaration[] decls)
+  {
+    this.func = func;
+    this.decls = decls;
+  }
+}