HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ocaml — The OCaml repl (read-evaluate-print-loop). Interprets Ocaml commands. More information: <https://man

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theocamlcommandevaluatereadclirepl

Problem

How to use the ocaml command: The OCaml repl (read-evaluate-print-loop). Interprets Ocaml commands. More information: <https://manned.org/ocaml>.

Solution

ocaml — The OCaml repl (read-evaluate-print-loop). Interprets Ocaml commands. More information: <https://manned.org/ocaml>.

Read OCaml commands from the user and execute them:
ocaml


Read OCaml commands from a file and execute them:
ocaml {{path/to/file.ml}}


Run OCaml script with modules:
ocaml {{module1}} {{module2}} {{path/to/file.ml}}

Code Snippets

Read OCaml commands from the user and execute them

ocaml

Read OCaml commands from a file and execute them

ocaml {{path/to/file.ml}}

Run OCaml script with modules

ocaml {{module1}} {{module2}} {{path/to/file.ml}}

Context

tldr-pages: common/ocaml

Revisions (0)

No revisions yet.