cs51/utils
contains some useful utilities for problem sets and labs
throughout CS51. The Absbook
module will also be referenced
throughout the course textbook, Abstraction and Design in
Computation.
The fastest way to install cs51/utils
is with opam
:
opam pin add CS51Utils ssh://git@github.com:cs51/utils.git
For more information on opam pin
, please consult the
opam documentation
The advantage of the opam-based method is that other opam packages can depend on this one, and opam will recompile them automatically as necessary.
cs51/utils
can also be installed directly using make install
and
uninstalled using make uninstall
.
Certain parts of cs51/utils
have unit tests, which can be run with
$ make test
Use make utop
where DIR if the folder contains the dune
file for a library. For instance, our sub2
sample library can be
used as follows:
$ dune utop sub2/lib
...
utop # CS51Utils.Absbook.id 51 ;;
- : int = 51