Add OCaml parrot.

This commit is contained in:
Fabien Freling 2013-10-25 14:21:05 +02:00
parent 6711eb6e5b
commit c37eb1088e

12
ocaml/main.ml Normal file
View file

@ -0,0 +1,12 @@
let evaluate str =
str;;
try
while true do
print_string "> ";
let line = read_line () in
let answer = evaluate line in
print_endline answer
done;
with
End_of_file -> print_endline "Bye!";;