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 assert_eq( t, new Token(p, "class", false) ); 33 assert_eq( t, new Token(p, "class", false) );
34 assert_lt( t, new Token(p, "struct", false) ); 34 assert_lt( t, new Token(p, "struct", false) );
35 assert_ne( t, u ); 35 assert_ne( t, u );
36 assert( u.quoted ); 36 assert( u.quoted );
37 37
38 assert( !__traits(compiles, new Token) ); 38 assert( !__traits(compiles, new Token) );
39 assert( !__traits(compiles, t.pos=p) ); 39 assert( !__traits(compiles, t.pos=p) );
40 assert( !__traits(compiles, t.str=789) ); | 40 assert( !__traits(compiles, t.str="789") );
41 assert( !__traits(compiles, t.quoted=true) ); 41 assert( !__traits(compiles, t.quoted=true) );
42 } 42 }
43 43
44 /// Named Construtors for Lexer 44 /// Named Construtors for Lexer
45 45
46 Lexer lexerFromFile(T...)( string filename, T ln_cn ) 46 Lexer lexerFromFile(T...)( string filename, T ln_cn )
47 { 47 {