summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code/parser/sample.zpy
blob: e289d9d4113b14d67d04771476d4f50356e3d038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
(let fib:function 
(defun num:i32 i32
	(if (< num 2)
		(return num)
	)
	(else
		(return (+ (fib (- num 1)) (fib (- num 2)) ))
	)
))
}
(let a:i32 (fib 5))
(const str[]:char "hello!")
! returns the 5th fib number
(const str[]:char "hello!")