Differences From Artifact [752d9af2ecdd593b]:
- File
polemy/parse.d
- 2010-11-08 08:45:51 - part of checkin [8d297342aa] on branch trunk - Replaced Token.Kind with bool quoted (user: kinaba) [annotate]
To Artifact [de91c770214a43a1]:
- File
polemy/parse.d
- 2010-11-08 11:42:14 - part of checkin [5e407d7cf8] on branch trunk - Lexer Refactored so that it can accpet multi-symbol token (user: kinaba) [annotate]
344 new FuncallExpression(null, 344 new FuncallExpression(null,
345 new FunLiteralExpression(null, ["abc"], [ 345 new FunLiteralExpression(null, ["abc"], [
346 ]), 346 ]),
347 new IntLiteralExpression(null, BigInt(4)) 347 new IntLiteralExpression(null, BigInt(4))
348 )))); 348 ))));
349 } 349 }
350 350
351 /* <
352 unittest 351 unittest
353 { 352 {
354 auto p = parserFromString(`var x = 1; var f = fun(){x=x+1;}; f(); f(); x 353 auto p = parserFromString(`var x = 1; var f = fun(){x=x+1;}; f(); f(); x
355 Program prog = p.parseProgram(); 354 Program prog = p.parseProgram();
356 } 355 }
357 356
358 unittest 357 unittest
................................................................................................................................................................................
363 new VarExpression(null, "if"), 362 new VarExpression(null, "if"),
364 new FuncallExpression(null, new VarExpression(null,"<"), new Var 363 new FuncallExpression(null, new VarExpression(null,"<"), new Var
365 new IntLiteralExpression(null, BigInt(2))), 364 new IntLiteralExpression(null, BigInt(2))),
366 new FunLiteralExpression(null, [], [new ExprStatement(null, new 365 new FunLiteralExpression(null, [], [new ExprStatement(null, new
367 new FunLiteralExpression(null, [], [new ExprStatement(null, new 366 new FunLiteralExpression(null, [], [new ExprStatement(null, new
368 ))); 367 )));
369 } 368 }
370 */ <