1
1
Fork 0
mirror of https://github.com/azur1s/bobbylisp.git synced 2024-10-16 02:37:40 -05:00
bobbylisp/example/io/read.hz
2022-03-20 05:35:29 +07:00

14 lines
278 B
Plaintext

fun say_hi (name: string): void = do
@write("Hi ");
@write(name);
@write("!");
end;
fun main: void = do
let input: string = @read("Enter your name:");
case input of
| "" -> @write("I don't know your name :(");
\ say_hi(input);
end;
end;