about summary refs log tree commit diff
path: root/boot/tests/transpile
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-12-29 00:58:21 +0100
committerMel <mel@rnrd.eu>2025-12-29 00:58:21 +0100
commit30b04e4b2a90981570ae04095aeccd746ccdea6a (patch)
tree49be07d48bd74ccf5534f05c9919a512f5aa100b /boot/tests/transpile
parent57878200dda049cf7d6f11c9ede6936d184649cb (diff)
downloadcatskill-30b04e4b2a90981570ae04095aeccd746ccdea6a.tar.zst
catskill-30b04e4b2a90981570ae04095aeccd746ccdea6a.zip
Add first bootstrapping transpiler test
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/tests/transpile')
-rw-r--r--boot/tests/transpile/basic.cskt16
1 files changed, 16 insertions, 0 deletions
diff --git a/boot/tests/transpile/basic.cskt b/boot/tests/transpile/basic.cskt
new file mode 100644
index 0000000..f904259
--- /dev/null
+++ b/boot/tests/transpile/basic.cskt
@@ -0,0 +1,16 @@
+the transpiler has to follow a simple pattern of
+the files it creates to make viable c source.
+here we check that the simplest possible file has
+all of the expected parts needed.
+
+<<<
+
+main = fun () {
+}
+
+>>>
+
+#include "boot/runtime/core.c"
+void catskill_main(void) {
+}
+#include "boot/runtime/runtime.c"
\ No newline at end of file