about summary refs log tree commit diff
path: root/boot/tests/parse
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-04 03:27:27 +0200
committerMel <mel@rnrd.eu>2025-07-04 03:27:27 +0200
commit8f2e0f0202317cc27371d2833eb93b64230ac0e8 (patch)
treee2b395c1abbdab5fe12d22b3847c7ce7373f4bd6 /boot/tests/parse
parent8e0beabeb4efa50a3072ef805682c0f42b6c16a8 (diff)
downloadcatskill-8f2e0f0202317cc27371d2833eb93b64230ac0e8.tar.zst
catskill-8f2e0f0202317cc27371d2833eb93b64230ac0e8.zip
Test suite runner prototype for `catboot`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/tests/parse')
-rw-r--r--boot/tests/parse/basic.cskt14
1 files changed, 14 insertions, 0 deletions
diff --git a/boot/tests/parse/basic.cskt b/boot/tests/parse/basic.cskt
new file mode 100644
index 0000000..fcc6af0
--- /dev/null
+++ b/boot/tests/parse/basic.cskt
@@ -0,0 +1,14 @@
+very simple test to check if
+the parser works at all. :)
+
+<<<
+
+main = fun () int {
+  return 1 + 2
+}
+
+>>>
+
+(expr (binary = (expr (name main)) (expr (function  (returns (type name int)) (block
+	(return (expr (binary + (expr 1) (expr 2))))
+)))))
\ No newline at end of file