https://github.com/styczynski/ocaml.hs
Tiny OCaml interpreter written in Haskell
https://github.com/styczynski/ocaml.hs
Last synced: about 1 year ago
JSON representation
Tiny OCaml interpreter written in Haskell
- Host: GitHub
- URL: https://github.com/styczynski/ocaml.hs
- Owner: styczynski
- License: bsd-3-clause
- Created: 2019-05-14T16:35:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T09:59:41.000Z (over 3 years ago)
- Last Synced: 2025-03-27T05:34:09.828Z (about 1 year ago)
- Language: Haskell
- Homepage: http://styczynski.in/ocaml.hs/
- Size: 9.19 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README

# ocaml.hs [](https://coveralls.io/github/styczynski/ocaml.hs?branch=master) [](https://travis-ci.com/styczynski/ocaml.hs)
## Building
This project requires [Stack](https://docs.haskellstack.org/en/stable/README/) to build.
You can install it by doing:
```bash
$ curl -sSL https://get.haskellstack.org/ | sh
```
Then please call the Makefile to build the executables:
```bash
$ make
```
## Running interpreter
You can run the executable built by Stack using the following command:
```bash
$ stack exec -- interpreter --help # Other paramters for interpreter
```
To run a file through the interpreter please call the following command:
```bash
$ 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