riju/langs/ocaml.yaml

46 lines
525 B
YAML

id: "ocaml"
name: "OCaml"
install:
apt:
- ocaml-nox
opam:
- ocamlformat
- ocaml-lsp-server
repl: |
ocaml
input: |
123 * 234 ;;
main: "main.ml"
template: |
;;
print_string "Hello, world!\n"
run: |
ocaml -init main.ml
scope:
code: |
;;
let x = 123 * 234
input: |
x ;;
format:
run: |
touch .ocamlformat; ocamlformat --name=format.ml -
input: |
print_string "Hello, world!\n";;
lsp:
start: |
ocamllsp
lang: "ocaml"
code: "TODO"
item: "TODO"
skip:
- lsp