Diff
Not logged in

Differences From Artifact [2739b95337ae2aab]:

To Artifact [fbe471845b86f859]:


219 } 219 } 220 scope(exit) lex.popFront; 220 scope(exit) lex.popFront; 221 return new VarExpression(pos, lex.front.str); 221 return new VarExpression(pos, lex.front.str); 222 } 222 } 223 223 224 AST parseLambdaAfterOpenParen(immutable LexPosition pos) 224 AST parseLambdaAfterOpenParen(immutable LexPosition pos) 225 { 225 { 226 string[] params; | 226 Parameter[] params; 227 while( !tryEat(")") ) 227 while( !tryEat(")") ) 228 { 228 { 229 params ~= eatId("for function parameter"); | 229 params ~= new Parameter(eatId("for function parameter"), 230 if( !tryEat(",") ) { 230 if( !tryEat(",") ) { 231 eat(")", "after function parameters"); 231 eat(")", "after function parameters"); 232 break; 232 break; 233 } 233 } 234 } 234 } 235 eat("{", "after function parameters"); 235 eat("{", "after function parameters"); 236 auto funbody = Body(); 236 auto funbody = Body();