Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at ocaml.org.

FAQ - Development Tools

Interactive loop (toplevel)

How to stop the evaluation (execution) of an expression?
It is often possible to interrupt a program or the Caml system by typing some combination of keys that is operating system dependent: under Unix send an interrupt signal (generally Control-C), under Macintosh OS type Command-., under Windows use the “Caml” menu.
How to quit the interactive loop?
With Caml Light, type quit();;. With OCaml, type #quit;;. In both, you can also send an end-of-file (CTRL-D for Unix, CTRL-Z for DOS, etc.).

Batch Compilers

Yacc

Lex