tldr/pages/common/ocaml.md

18 lines
357 B
Markdown
Raw Normal View History

2019-11-05 21:38:00 +00:00
# ocaml
> The OCaml repl (read-evaluate-print-loop).
> Interprets Ocaml commands.
> More information: <https://ocaml.org>.
2019-11-05 21:38:00 +00:00
- 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}}`