Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Toplevel with line editor.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Potanin <potanin@m...>
Subject: [Caml-list] Toplevel with line editor.

 IMHO, to run ocaml toplevel with pipes (like ocaml2) is not a good idea.
This program can't distinguish between toplevel output and user script
output.
For example:
print_string "xxx# "; flush stdout ; ignore (input_line stdin);;

Standard toplevel can not hook line input (Toploop.refill_lexbuf).
I made patch to fix this problem and also I made a simple toplevel which
uses getline lib (based on ocaml2 code).
http://wtk.ru/pm/fp/caml/iocaml.tgz

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners