mrbech / fsharp-interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micro-ML

Parser combinator in fparsec for Micro-ML, a tiny programming language used in Programming Language Concepts by Peter Sestoft.

The parser combinator is mostly equivalent to the parser generator fslex/fsyacc found i Sestoft's fun1.zip but with the HigherFun evaluator from fun2.zip.

The interpreter can be run on a file from the examples directory with make run program=examples/<file>, the AST will be printed and evaluated

Small test programs can be found in /tests/test.fs and can be run with make test

About


Languages

Language:F# 89.7%Language:Dockerfile 5.3%Language:Makefile 2.2%Language:Shell 1.4%Language:OCaml 1.4%