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 344 new FuncallExpression(null,
345 345 new FunLiteralExpression(null, ["abc"], [
346 346 ]),
347 347 new IntLiteralExpression(null, BigInt(4))
348 348 ))));
349 349 }
350 350
351 -/*
352 351 unittest
353 352 {
354 353 auto p = parserFromString(`var x = 1; var f = fun(){x=x+1;}; f(); f(); x;`);
355 354 Program prog = p.parseProgram();
356 355 }
357 356
358 357 unittest
................................................................................
363 362 new VarExpression(null, "if"),
364 363 new FuncallExpression(null, new VarExpression(null,"<"), new VarExpression(null,"x"),
365 364 new IntLiteralExpression(null, BigInt(2))),
366 365 new FunLiteralExpression(null, [], [new ExprStatement(null, new IntLiteralExpression(null, BigInt(1)))]),
367 366 new FunLiteralExpression(null, [], [new ExprStatement(null, new VarExpression(null, "x"))])
368 367 )));
369 368 }
370 -*/