Add TextWriter, IOException, per-VM module data and pre-load imports; Add console module with Console class

This commit is contained in:
2026-11-23 18:36:46 +01:00
parent 2243557bf5
commit 4d06edd045
55 changed files with 1679 additions and 675 deletions
+6 -5
View File
@@ -1,3 +1,4 @@
import 'console';
interface IntA {
public void test_a();
@@ -13,7 +14,7 @@ interface IntB {
class TestA {
public void test_a() {
print("Hello world from TestA::test_a().\n");
Console::Print("Hello world from TestA::test_a().\n");
}
}
@@ -21,7 +22,7 @@ class TestA {
class TestB {
public void test_b() {
print("Hello world from TestB::test_b().\n");
Console::Print("Hello world from TestB::test_b().\n");
}
@@ -30,7 +31,7 @@ class TestB {
class TestC {
public void test_c() {
print("Hello world from TestC::test_c().\n");
Console::Print("Hello world from TestC::test_c().\n");
}
}
@@ -38,7 +39,7 @@ class TestC {
class TestD {
public void test_a() {
print("Hello world from TestD::test_a().\n");
Console::Print("Hello world from TestD::test_a().\n");
}
}
@@ -46,7 +47,7 @@ class TestD {
class TestE {
public void test_b() {
print("Hello world from TestE::test_b().\n");
Console::Print("Hello world from TestE::test_b().\n");
}
}