Changeset 308
- Timestamp:
- 05/27/08 21:42:42 (6 months ago)
- Files:
-
- branches/v2/minid/baselib.d (modified) (1 diff)
- branches/v2/minid/commandline.d (modified) (2 diffs)
- branches/v2/minid/compiler.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/v2/minid/baselib.d
r305 r308 750 750 s.push(s.getUpvalue(0u)); 751 751 s.push(thread); 752 s.push( 0);752 s.push(-1); 753 753 return 3; 754 754 } branches/v2/minid/commandline.d
r299 r308 68 68 code will be run. If there is an error, the code buffer is cleared. 69 69 To end interactive mode, use the \"exit()\" function. 70 71 In interactive mode, you will also have access to a function \"repr()\"72 which will print out a readable representation of a variable, more73 readable than what you get from toString() anyway. The first param is74 the value to output; the optional second param should be 'true' to output75 a newline after printing the value, or 'false' not to. Defaults to true.76 70 "; 77 71 /+ Stupid editor has issues with multiline strings. "+/ … … 246 240 // static so the interrupt can access it. 247 241 static bool didHalt = false; 248 242 249 243 static extern(C) void interruptHandler(int s) 250 244 { branches/v2/minid/compiler.d
r304 r308 7013 7013 7014 7014 List!(CaseStatement) cases; 7015 7016 cases.add(CaseStatement.parse(l)); 7015 7017 7016 7018 while(l.type == Token.Type.Case) 7017 7019 cases.add(CaseStatement.parse(l)); 7018 7019 if(cases.length == 0)7020 throw new MDCompileException(location, "Switch statement must have at least one case statement");7021 7020 7022 7021 DefaultStatement caseDefault;
