about summary refs log tree commit diff
path: root/boot/tests/lex/basic.cskt
blob: 26b41f3b079a9a7f57cd1fc9080c491b8ed66497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
very simple test to check if
the lexer works at all. :)

<<<

main = fun () int {
  return 1 + 2
}

>>>

NAME(main) ASSIGN WORD_FUN ROUND_OPEN ROUND_CLOSE NAME(int) CURLY_OPEN NEWLINE WORD_RETURN LITERAL_INTEGER(1) PLUS LITERAL_INTEGER(2) NEWLINE CURLY_CLOSE END_OF_FILE