I have this program in Ocaml that reads a line from keyboard and returns an int :
let get_int () =
print_string "Insert a number\n" ;
let input = read_line() in
let return__ = int_of_string( input )
;;
print_string "I'll print what you write : ";
print_int ( get_int() );
print_string "\n"
The problem is a syntax error on line 5, ";;" said the compiler.
I know that already exist functions that do this but I'm doing this to learn.
I read the official Ocaml documentation but I still don't get the syntax. Someone that could explain me something about it?