Author: bernhard
Date: Fri Mar 30 12:17:42 2007
New Revision: 17858

Modified:
   trunk/languages/plumhead/src/partridge/Plumhead.pg

Log:
[Plumhead partridge]
Support for    $l = $h + $e;


Modified: trunk/languages/plumhead/src/partridge/Plumhead.pg
==============================================================================
--- trunk/languages/plumhead/src/partridge/Plumhead.pg  (original)
+++ trunk/languages/plumhead/src/partridge/Plumhead.pg  Fri Mar 30 12:17:42 2007
@@ -61,10 +61,8 @@
 rule  scalar_assign           { <var> <ASSIGN_OP> <expression> ( ; | <?before: 
\? > | $ ) }
 rule  array_assign            { <array_elem> <ASSIGN_OP> <expression> ( ; | 
<?before: \? > | $ ) }
 
-token expression              {   <concat_expression>
-                                | <bitwise_expression>
-                                | <array_elem>
-                                | <var>
+token expression              { <concat_expression>
+                              | <bitwise_expression>
                               }
 
 rule  array_elem              { <VAR_NAME> <'['> <array_key> <']'> }
@@ -91,5 +89,10 @@
 
 rule unary_expression         { <UNARY_MINUS>? <postfix_expression> }
 
-rule postfix_expression       { <NUMBER> | <INTEGER> | <?PAREN_OPEN> 
<expression> <?PAREN_CLOSE> }
+rule postfix_expression       { <NUMBER>
+                              | <INTEGER>
+                              | <?PAREN_OPEN> <expression> <?PAREN_CLOSE>
+                              | <array_elem>
+                              | <var>
+                              }
 

Reply via email to