1
0
forked from alex-eg/sex
This commit is contained in:
2026-09-18 18:42:52 +03:00
parent ca71ae6e91
commit 78862cfe4f
5 changed files with 217 additions and 56 deletions

View File

@@ -9,7 +9,9 @@
(pub var greet-count int 0)
(pub struct greeting ((text (* const char)) (times int)))
(pub struct greeting
"A greeting to print."
((text (* const char)) (times int)))
(pub enum mood (cheerful grumpy))
@@ -24,6 +26,7 @@
`(printf "%s " ,(symbol->string name))))))
(pub fn greet ((name (* const char))) void
"Print a greeting for NAME."
(++ greet-count)
(printf "hello, %s\n" name))