/ocaml.hs

Tiny OCaml interpreter written in Haskell

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Logo image

ocaml.hs Coverage Status Build Status

Building

This project requires Stack to build. You can install it by doing:

   $ curl -sSL https://get.haskellstack.org/ | sh

Then please call the Makefile to build the executables:

  $ make

Running interpreter

You can run the executable built by Stack using the following command:

   $ stack exec -- interpreter --help # Other paramters for interpreter

To run a file through the interpreter please call the following command:

   $ stack exec -- interpreter -f ./examples/good/Sudoku.ml

There are plenty of examples available including:

  • Brute force Sudoku solver
  • Regular expression RPN parsing
  • Some higher order functions
  • Manipulations on mutable data sources
  • Fuzzy search with Levenstein distance + interactions with user