Files
cheatsheet-tldr/tldr/ocaml
2025-04-26 00:18:47 +00:00

23 lines
457 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`