diff options
author | standenboy <standenboy@seacrossedlovers.xyz> | 2024-04-25 08:45:36 +0100 |
---|---|---|
committer | standenboy <standenboy@seacrossedlovers.xyz> | 2024-04-25 08:45:36 +0100 |
commit | 7d3856203d28281e3ffc6b365cc55b1d192a5599 (patch) | |
tree | 226ffda231a717f625bd1a965a32d02d0d1348b0 /comp/cw/code/parser/sample.zpy | |
parent | a241ad8e874a2220d81254c2ebfbe69d0470fd9b (diff) |
started cw
Diffstat (limited to 'comp/cw/code/parser/sample.zpy')
-rw-r--r-- | comp/cw/code/parser/sample.zpy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/comp/cw/code/parser/sample.zpy b/comp/cw/code/parser/sample.zpy new file mode 100644 index 0000000..e289d9d --- /dev/null +++ b/comp/cw/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!") |