Differences From Artifact [b98d4e6a5ceb6fb9]:
- File
polemy/lex.d
- 2010-11-23 10:37:54 - part of checkin [5e924caac9] on branch trunk - added AST-rewriting macro sample. (user: kinaba) [annotate]
To Artifact [8d68dafbd094d6fe]:
- File
polemy/lex.d
- 2010-11-30 02:21:42 - part of checkin [3fb4d6f9ad] on branch trunk - during @userdefinedlayer function evaluation, if lift(bottom) fails, the recursion is not memoized (user: kinaba) [annotate]
33 33 assert_eq( t, new Token(p, "class", false) );
34 34 assert_lt( t, new Token(p, "struct", false) );
35 35 assert_ne( t, u );
36 36 assert( u.quoted );
37 37
38 38 assert( !__traits(compiles, new Token) );
39 39 assert( !__traits(compiles, t.pos=p) );
40 - assert( !__traits(compiles, t.str=789) );
40 + assert( !__traits(compiles, t.str="789") );
41 41 assert( !__traits(compiles, t.quoted=true) );
42 42 }
43 43
44 44 /// Named Construtors for Lexer
45 45
46 46 Lexer lexerFromFile(T...)( string filename, T ln_cn )
47 47 {