]> git.lizzy.rs Git - uwu-lang.git/commitdiff
Add code example to README
authorElias Fleckenstein <eliasfleckenstein@web.de>
Thu, 30 Dec 2021 13:25:50 +0000 (14:25 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Thu, 30 Dec 2021 13:25:50 +0000 (14:25 +0100)
README.md

index ce70a25f9534d198424db5f2671ce2644043708d..c9f28859bdc3b1e4a1a8c0c25da5bc335487d1dc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,16 @@
 # uwulang
 UWU (**U**ltimate p**W**ogwamming lang**U**age) is a **functional**, **interpreted**, **weakly typed** programming language written in C.
 
+```uwu
+fibo
+       :bool:if(:int:smaller($0, 0), 0,
+       :bool:if(:int:equal($0, 0),   1,
+       :int:add(
+               fibo(:int:sub($0, 1)),
+               fibo(:int:sub($0, 2))
+       )))
+```
+
 ## What this language is
 
 - Demonstration of dlopen - 35%