Skip to content

Latest commit

 

History

History
27 lines (26 loc) · 771 Bytes

ocaml.md

File metadata and controls

27 lines (26 loc) · 771 Bytes
  • create a new project day with the template and toolkit.nu
toolkit init ocaml 2023 4
  • go to one of the OCaml solution, e.g. with the toolkit.nu
toolkit jump  # and then type 'ocaml'
  • create a local switch if not already done
opam switch create . --deps-only --with-test --with-doc
  • install all dependencies to the switch
open dune-deps | lines | opam install $in -y

then you can

  • run the tests with dune test
  • run the toplevel with dune utop
  • run the binary on some input
dune exec day_x <level> <input>

Note

  • level will be either gold or silver
  • input will typically be silver.txt, gold.txt and my personal inputs should also be available amtoine.txt