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

14 lines
278 B
Plaintext
Raw Normal View History

2022-03-19 17:35:29 -05:00
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;