Differences From Artifact [2739b95337ae2aab]:
- File
polemy/parse.d
- 2010-11-10 12:38:54 - part of checkin [38fcc662be] on branch trunk - cleaned up documentation comments (user: kinaba) [annotate]
To Artifact [fbe471845b86f859]:
- File
polemy/parse.d
- 2010-11-11 02:40:08 - part of checkin [8e6fa743ee] on branch trunk - added layered parameter AST (only AST. no parser and no evaluator). (user: kinaba) [annotate]
219 219 }
220 220 scope(exit) lex.popFront;
221 221 return new VarExpression(pos, lex.front.str);
222 222 }
223 223
224 224 AST parseLambdaAfterOpenParen(immutable LexPosition pos)
225 225 {
226 - string[] params;
226 + Parameter[] params;
227 227 while( !tryEat(")") )
228 228 {
229 - params ~= eatId("for function parameter");
229 + params ~= new Parameter(eatId("for function parameter"), []);
230 230 if( !tryEat(",") ) {
231 231 eat(")", "after function parameters");
232 232 break;
233 233 }
234 234 }
235 235 eat("{", "after function parameters");
236 236 auto funbody = Body();