Permalink
Browse files

lang11d: Fix parse tree generation of expr.(key:value, ...)

  • Loading branch information...
1 parent de08813 commit ccfc53ac1026b4e915f6d2ae75d0283379c7634c @lijon lijon committed Mar 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lang/LangSource/Bison/lang11d
  2. +1 −1 lang/LangSource/Bison/lang11d_tab.cpp
@@ -316,7 +316,7 @@ msgsend : name blocklist1
SetSymbol(&slot, s_value);
selectornode = newPyrSlotNode(&slot);
- $$ = (long)newPyrCallNode(selectornode, (PyrParseNode*)$1, (PyrParseNode*)$5, (PyrParseNode*)$6);
+ $$ = (long)newPyrCallNode(selectornode, (PyrParseNode*)$1, (PyrParseNode*)$4, (PyrParseNode*)$7);
}
| expr '.' name '(' keyarglist1 optcomma ')' blocklist
{
@@ -2643,7 +2643,7 @@ yyparse ()
SetSymbol(&slot, s_value);
selectornode = newPyrSlotNode(&slot);
- (yyval) = (long)newPyrCallNode(selectornode, (PyrParseNode*)(yyvsp[(1) - (7)]), (PyrParseNode*)(yyvsp[(5) - (7)]), (PyrParseNode*)(yyvsp[(6) - (7)]));
+ (yyval) = (long)newPyrCallNode(selectornode, (PyrParseNode*)(yyvsp[(1) - (7)]), (PyrParseNode*)(yyvsp[(4) - (7)]), (PyrParseNode*)(yyvsp[(7) - (7)]));
;}
break;

0 comments on commit ccfc53a

Please sign in to comment.