A framework for a simple (IMP language)[https://www.cs.cornell.edu/courses/cs6110/2019sp/lectures/lec08.pdf] interpreter in OCaml.
OCaml 4.04 or higher required
$ opam install dune
$ apt-get install m4 # On Debian, for example.
$ opam install menhir
Build by typing:
$ make
Now you can use dune exec bin/imp.bc to run the interpreter.
Or you can install a imp executable:
$ make build
Now imp should be available on your path.
Simply run imp file.imp to interpret that file.