changeset 160:c21192e8be2b

- Parsing PostDotListExpression in parsePostExpression().
author aziz
date Fri, 13 Jul 2007 15:23:02 +0000
parents 5aa877506db0
children 82c5cfc7d6d3
files trunk/src/Expressions.d trunk/src/Parser.d
diffstat 2 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/Expressions.d	Fri Jul 13 12:15:00 2007 +0000
+++ b/trunk/src/Expressions.d	Fri Jul 13 15:23:02 2007 +0000
@@ -312,6 +312,16 @@
   }
 }
 
+class PostDotListExpression : UnaryExpression
+{
+  DotListExpression dotList;
+  this(Expression e, DotListExpression dotList)
+  {
+    super(e);
+    this.dotList = dotList;
+  }
+}
+
 class CallExpression : UnaryExpression
 {
   Expression[] args;
@@ -416,10 +426,10 @@
 */
 class DotListExpression : Expression
 {
-  Expression[] identList;
-  this(Expression[] identList)
+  Expression[] items;
+  this(Expression[] items)
   {
-    this.identList = identList;
+    this.items = items;
   }
 }
 
--- a/trunk/src/Parser.d	Fri Jul 13 12:15:00 2007 +0000
+++ b/trunk/src/Parser.d	Fri Jul 13 15:23:02 2007 +0000
@@ -1429,6 +1429,9 @@
           expected(T.Identifier);
         continue;
 */
+      case T.Dot:
+        e = new PostDotListExpression(e, parseDotListExpression());
+        break;
       case T.PlusPlus:
         e = new PostIncrExpression(e);
         break;