about summary refs log tree commit diff
path: root/boot/tests/lex/basic.cskt
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/lex/basic.cskt
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/lex/basic.cskt')
-rw-r--r--boot/tests/lex/basic.cskt12
1 files changed, 12 insertions, 0 deletions
diff --git a/boot/tests/lex/basic.cskt b/boot/tests/lex/basic.cskt
new file mode 100644
index 0000000..7380498
--- /dev/null
+++ b/boot/tests/lex/basic.cskt
@@ -0,0 +1,12 @@
+very simple test to check if
+the lexer works at all. :)
+
+<<<
+
+main = fun () int {
+  return 1 + 2
+}
+
+>>>
+
+NAME ASSIGN WORD_FUN ROUND_OPEN ROUND_CLOSE NAME CURLY_OPEN NEWLINE WORD_RETURN LITERAL_INTEGER PLUS LITERAL_INTEGER NEWLINE CURLY_CLOSE END_OF_FILE