summaryrefslogtreecommitdiff
path: root/simple.int
blob: d964912dc360c80c92b19deac7ef6c092b0c5efe (plain) (blame)
1
2
3
4
5
6
7
[type test [(INT x) (INT y)]]
[def (INT testest) [] [test.y [test 3 10]]]
[def (INT fact) [(INT n)] [if [- n 1] [* n [fact [- n 1]]] 1]]
[def (INT double) [(INT x)] [* 2 x]]
[def (INT _main) [] [debug_int [fact [debug_int [testest]]]]]
[def (INT ttt) [(INT a) (INT b)] [test b a]]
[def (INT main) [] [debug_int [test.y [ttt 5 10]]]]