Changeset 128
- Timestamp:
- 01/10/08 07:26:59 (11 months ago)
- Files:
-
- branches/1.9/bin/walnut.exe (modified) (previous)
- branches/1.9/bin/walnut.lib (modified) (previous)
- branches/1.9/source/interpreter.d (modified) (7 diffs)
- branches/1.9/source/value.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.9/source/interpreter.d
r127 r128 9 9 std.string; // for debugging only 10 10 11 uint line = 1;12 11 13 12 /* … … 20 19 */ 21 20 21 22 uint line = 1; 22 23 char last = 0x00; 23 24 const_char* c; … … 34 35 35 36 parseOptionalWS(); 36 // do { 37 parseStatement(); 38 printf("%s\n",c); 37 parseStatement(); 38 printf("%s\n",c); 39 39 // } while(c[0] != 0x00); 40 40 dumpTree(v, 1); … … 334 334 v.s = cMark[0..(c-cMark)]; 335 335 v.type = TYPE.IDENT; 336 return;337 } 336 } 337 // printf("!!!%.*s\n",std.string.toString(v.type)); 338 338 } 339 339 } … … 532 532 } 533 533 parseOperand(); 534 // printf("!!%.*s\n",std.string.toString(v.type)); 534 535 buffer ~= v; 535 536 switch(c[0]) { … … 571 572 if(v != UNDEFINED, MESSAGE_unexpected_token) { 572 573 do { 574 // printf("!%.*s\n",std.string.toString(v.type)); 573 575 buffer ~= v; 574 576 v = UNDEFINED; … … 777 779 return; 778 780 } 781 c = cMark; 779 782 parseExpression(); 780 783 if(c[0] == ';') branches/1.9/source/value.d
r127 r128 337 337 _objectDone: 338 338 return std.string.format(TEXT_bobject_sb,s); 339 case TYPE.ARRAY: // return Array_prototype_toSource(this,this); 339 case TYPE.ARRAY: 340 return "[]"; 340 341 case TYPE.IDENT: 341 342 case TYPE.STRING: 342 case TYPE.REGEXP: return this.s; 343 default: return "@" ~ std.string.toString(type); 343 case TYPE.REGEXP: 344 return this.s; 345 default: 346 return "@" ~ std.string.toString(type); 344 347 } 345 348 assert(0);
