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
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:");
2022-03-26 19:14:12 -05:00
match input with
2022-03-19 17:35:29 -05:00
| "" -> @write("I don't know your name :(");
\ say_hi(input);
end;
2022-03-26 19:14:12 -05:00
end;