summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code/parser/sample.zpy
diff options
context:
space:
mode:
authorstandenboy <standenboy@seacrossedlovers.xyz>2024-04-30 14:22:45 +0100
committerstandenboy <standenboy@seacrossedlovers.xyz>2024-04-30 14:22:45 +0100
commitc460a26850eca5ded047d0eb0d183b861087aa53 (patch)
tree000c4a117746de71870fbee820809f7df49bcfcf /comp/lucas-standen-NEA/code/parser/sample.zpy
parent2e239a4ed2265f7c7dc2aabedfdb7d7b011704cb (diff)
write up update
Diffstat (limited to 'comp/lucas-standen-NEA/code/parser/sample.zpy')
-rw-r--r--comp/lucas-standen-NEA/code/parser/sample.zpy15
1 files changed, 15 insertions, 0 deletions
diff --git a/comp/lucas-standen-NEA/code/parser/sample.zpy b/comp/lucas-standen-NEA/code/parser/sample.zpy
new file mode 100644
index 0000000..e289d9d
--- /dev/null
+++ b/comp/lucas-standen-NEA/code/parser/sample.zpy
@@ -0,0 +1,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!")