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

15 lines
282 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:");
match input with
| "" -> @write("I don't know your name :(");
\ say_hi(input);
end;
end;