Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
import 'console';
|
||||
class StringTokenizer {
|
||||
private string $token;
|
||||
private string $delim;
|
||||
@@ -28,7 +29,7 @@ class Program {
|
||||
string $delim = " !@:\t\n";
|
||||
object $st = new StringTokenizer($str, $delim);
|
||||
while ($st->hasMoreTokens()) {
|
||||
print($st->nextToken(), "\n");
|
||||
Console::Print($st->nextToken() + "\n");
|
||||
}
|
||||
unset($st);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user