Skip to content

Commit 404050b

Browse files
committed
Compiler: make sure to load the file module at runtime
1 parent e282798 commit 404050b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/piccode/backend/Compiler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.piccode.rt.PiccodeUnit;
2121
import org.piccode.rt.PiccodeValue;
2222
import org.piccode.rt.modules.PiccodeArrayModule;
23+
import org.piccode.rt.modules.PiccodeFileModule;
2324
import org.piccode.rt.modules.PiccodeIOModule;
2425
import org.piccode.rt.modules.PiccodeMathModule;
2526
import org.piccode.rt.modules.PiccodeStringModule;
@@ -130,6 +131,7 @@ private static void addSystemFunctions() {
130131
PiccodeTimeModule.addFunctions();
131132
PiccodeTypesModule.addFunctions();
132133
PiccodeVirtualModule.addFunctions();
134+
PiccodeFileModule.addFunctions();
133135
}
134136

135137
}

0 commit comments

Comments
 (0)