OCAML(1) General Commands Manual OCAML(1) (NAME) ocaml - OCaml (SYNOPSIS) ocaml [ options ] [ object-files ] [ script-file ] (DESCRIPTION) ocaml(1) (toplevel) OCaml OCaml -- (read-eval-print loop) . OCaml ( ) . (End-of-file) ocaml(1) . . # (sharp) ;; ( ) . (phrase) . object-files ( .cmo .cma ) . script-file . ocaml(1) . (OPTIONS) ocaml(1) . -absname . -no-absname . -i-variance . (private) ( ) . -I directory . . -I . + . -I +compiler-libs compiler-libs . toplevel #directory . -init file . << (Initialization file)>> . -labels . . -no-app-funct (applicative) . . -noassert assertion. assert false . -noinit . << (Initialization file)>> . -nolabels . . -noprompt (prompt) . -nopromptcont . ocaml(1) emacs(1) . -nostdlib . -open module toplevel. -open open! module1;; ... open! moduleN;; . -ppx command command . Ast_mapper(3) . -principal (principal) . / . -principal . -no-principal (principality) . . -rectypes . . -no-rectypes . . -safe-string string bytes . . -safer-matching (pattern-matching). (exhaustive) . GADT . -short-paths . -stdin ..TP -strict-sequence unit . -no-strict-sequence unit . . -unboxed-types unboxable ( ) unbox [@@ocaml.boxed] . -no-unboxed-types unboxable boxed [@@ocaml.unboxed] . . -unsafe ( v.(i) s.[i]) . -unsafe : . -unsafe-string string bytes . . -version . -vnum . -no-version . -w warning-list warning-list . warning-list ocamlc(1) . -warn-error warning-list warning-list . -w ( ). warning-list ocamlc(1) . -color mode ( ) . : auto ( tty ANSI) always never . -color "OCAML_COLOR" . auto/always/never . -color "OCAML_COLOR" "NO_COLOR" . auto "TERM" "dumb" isatty(stderr) . -error-style mode . : short contextual "short" . contextual . -error-style "OCAML_ERROR_STYLE" . short/contextual . -warn-help . - file file (-) . -help --help ..SH " (INITIALIZATION FILE)" ocaml(1) toplevel . -e . : 1. .ocamlinit 2. XDG_CONFIG_HOME/ocaml/init.ml XDG_CONFIG_HOME 3. HOME/ocaml/init.ml ocaml\init.ml LocalAppData ( C:\Users\Bactrian\AppData\Local\ocaml\init.ml) 4. ocaml/init.ml XDG_CONFIG_DIRS. XDG_CONFIG_DIRS (colon) - (semicolon) 5. XDG_CONFIG_DIRS /usr/xdg/ocaml/init.ml ocaml\init.ml LocalAppData ( C:\Users\Bactrian\AppData\Local) RoamingAppData ( C:\Users\Bactrian\AppData\Roaming) ProgramData ( C:\ProgramData) 6. HOME/.ocamlinit HOME -init file -noinit . #use . (ENVIRONMENT VARIABLES) OCAMLTOP_UTF_8 OCAMLTOP_UTF_8 false (>0x7E) . . TERM toplevel . TERM . XDG_CONFIG_HOME HOME XDG_CONFIG_DIRS (INITIALIZATION FILE) . (SEE ALSO) ocamlc(1), ocamlopt(1), ocamlrun(1). The OCaml user's manual, "The toplevel system". OCAML(1)