Merge branch 'master' of https://github.com/kanaka/mal into fsharp
[jackhill/mal.git] / julia / readline_mod.jl
CommitLineData
85110962
JM
1module readline_mod
2
3export do_readline
4
5function do_readline(prompt)
6 print(prompt)
7 flush(STDOUT)
8 line = readline(STDIN)
9 if line == ""
10 return nothing
11 end
12 chomp(line)
13end
14
15end