Differences From Artifact [45c4aa9e0628516e]:
- File
polemy/parse.d
- 2010-11-26 07:42:38 - part of checkin [f7e9e77316] on branch trunk - introduced "..." expression, and replaced the pattern match failure with this. (user: kinaba) [annotate]
To Artifact [454c7b7367a1305b]:
- File
polemy/parse.d
- 2010-11-26 12:22:18 - part of checkin [23fb1b4a0e] on branch trunk - jikken before non-memo macro (user: kinaba) [annotate]
630 630 assert_throw!UnexpectedEOF(parseString(`1+`));
631 631 assert_throw!ParseException(parseString(`1+2}`));
632 632 assert_throw!UnexpectedEOF(parseString(`let "x"`));
633 633 assert_throw!UnexpectedEOF(parseString(`var`));
634 634 assert_throw!ParseException(parseString(`@val x ==`));
635 635 assert_throw!ParseException(parseString(`if(){1}`));
636 636 assert_throw!UnexpectedEOF(parseString(`f(`));
637 + assert_throw!ParseException(parseString(`fun(x y){}`));
637 638 }
638 639
639 640 unittest
640 641 {
641 642 mixin EasyAST;
642 643 assert_eq(parseString(`def foo(x) { x+1 }; foo`),
643 644 let("foo", "",