about summary refs log tree commit diff
path: root/boot/tests/parse/basic.cskt
blob: a59aff673cbae3063af78af0c3f672819d75f78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))))
)))))