about summary refs log tree commit diff
path: root/boot/tests/parse/basic.cskt
blob: fcc6af01fe6f1e8a721d13dc96418a05a1662f3d (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))))
)))))