styczynski / ocaml.hs

Tiny OCaml interpreter written in Haskell

Home Page:http://styczynski.in/ocaml.hs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Tiny OCaml interpreter written in Haskell

http://styczynski.in/ocaml.hs/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 53.1%Language:JavaScript 36.1%Language:CSS 5.2%Language:HTML 2.7%Language:OCaml 1.6%Language:Makefile 0.7%Language:Shell 0.6%