Changeset 43
- Timestamp:
- 06/23/08 18:04:55 (4 months ago)
- Files:
-
- trunk/doost/text/Scanner.d (modified) (8 diffs)
- trunk/doost/util/serializer/Registry.d (modified) (1 diff)
- trunk/doost/util/serializer/Serializer.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/doost/text/Scanner.d
r39 r43 826 826 ******************************************************************************/ 827 827 Matcher scanSequence(T, S)(T input, S[] sequence, uint pos = 0) { 828 pragma(msg, "scanSequence: " ~ T.stringof ~ ", " ~ (S[]).stringof)828 //pragma(msg, "scanSequence: " ~ T.stringof ~ ", " ~ (S[]).stringof) 829 829 for(uint i=0; i < sequence.length; i++) { 830 830 if (input.eos(pos)) return Matcher(pos, Matcher.missing_input); … … 905 905 bool matched = false; 906 906 uint cnt = rep; 907 pragma(msg, T.stringof ~ S.stringof );907 //pragma(msg, T.stringof ~ S.stringof ); 908 908 909 909 while(cnt > 0) { … … 921 921 } else 922 922 static if (isArray!(S)) { 923 pragma(msg, typeof(input).stringof ~ " ?? " ~ typeof(condition).stringof);923 //pragma(msg, typeof(input).stringof ~ " ?? " ~ typeof(condition).stringof); 924 924 m = scanSequence(input, condition, pos); 925 pragma(msg, "After scan sequence");925 //pragma(msg, "After scan sequence"); 926 926 } else 927 927 static if (is(S == StorageElementType!(T))) { … … 931 931 } 932 932 933 pragma(msg, "before if");933 //pragma(msg, "before if"); 934 934 if (!m.status) { 935 935 pos = m.position; … … 946 946 break; 947 947 } 948 pragma(msg, "after if");948 //pragma(msg, "after if"); 949 949 } 950 950 … … 966 966 uint pos=0; 967 967 auto mp = scan(input, condition, pos, rep); 968 pragma(msg, "after auto");968 //pragma(msg, "after auto"); 969 969 if (!mp.status) { 970 pragma(msg, "in if");970 //pragma(msg, "in if"); 971 971 if (mp.position) { 972 972 static if (isArray!(T)) { … … 976 976 } 977 977 } 978 pragma(msg, "before return");978 //pragma(msg, "before return"); 979 979 return mp.position; 980 980 } … … 1191 1191 1192 1192 StorageType!(T)[] stack; 1193 pragma(msg, typeof(stack).stringof);1193 //pragma(msg, typeof(stack).stringof); 1194 1194 1195 1195 if (input.eos(pos)) return Matcher(pos, Matcher.missing_input); trunk/doost/util/serializer/Registry.d
r39 r43 156 156 **********************************************************************/ 157 157 typeof(this) dup_info(){ 158 pragma(msg, typeof(CONCRETEARCHIVE).stringof)159 158 typeof(this) result; 160 159 static if (is(typeof(this) == class)) trunk/doost/util/serializer/Serializer.d
r39 r43 246 246 scope(success) level--; 247 247 } 248 249 pragma(msg, "Type: " ~ VALUE.stringof ~ " STORAGETYPE: " ~ STORAGETYPE.stringof ~ " STORAGE: " ~ STORAGE.stringof);250 248 251 249 //Eventual additional operations ... at begining of traverse...
