about summary refs log tree commit diff
path: root/boot/tests/lex/basic.cskt
diff options
context:
space:
mode:
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