- [WIP] ミニ関数型言語 with 型検査
dune build
chmod +x miniml
./miniml
- press Ctrl+D to exit.
dune utop
- Check
typable
function like this:
utop # Miniml.Infer.infer (Miniml.Parse.parse "if (1 + 2) < 3 then 4 else 5");;
- : Miniml.Infer.typ = Miniml.Infer.TInt
- Check
normalize
function like this:
utop # Miniml.Reduction.normalize (Miniml.Parse.parse "if (1 + 2) < 3 then 4 else 5");;
- : Miniml.Syntax.prog = Miniml.Syntax.Int 5
dune fmt