1
0
forked from alex-eg/sex

implement comma in Sex sources

This commit is contained in:
alex-eg
2025-05-29 22:08:14 +03:00
parent 861b862a13
commit 61ddabf85f
3 changed files with 112 additions and 32 deletions

View File

@@ -1,10 +1,13 @@
(include stdio.h)
(include unistd.h)
(define (foo)
"Hello from Chicken code!\n")
(fn int main ((int argc) (char **argv))
(puts "Hello from Sex!")
(var (array char 513) name)
(var (array char 512) name)
(puts "What is your name?")
(scanf "%s" &name)
(printf "Hello, %s!\n" name)
(printf ,(foo))
0)