From 8f2e0f0202317cc27371d2833eb93b64230ac0e8 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 4 Jul 2025 03:27:27 +0200 Subject: Test suite runner prototype for `catboot` Signed-off-by: Mel --- boot/tests/lex/basic.cskt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 boot/tests/lex/basic.cskt (limited to 'boot/tests/lex/basic.cskt') 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 -- cgit 1.4.1