Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 755 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 755 Bytes

Build Status

lambda-calculus-interpreter

λ-Calculus Interpreter in Haskell

Setup

Requirements

  • Docker or Stack

Building

Stack

make

Docker

docker build .

Notes

Program Execution

((λtrue.((λfalse.((λif.((λand.((λor.((λnot.((and (not false)) ((or true) false))) (λa.(((if a) false) true)))) (λa.(λb.(((if a) true) b))))) (λa.(λb.(((if a) b) false))))) (λcond.(λt.(λf.((cond t) f)))))) (λt.(λf.f)))) (λt.(λf.t)))
=>
(λt.(λf.t))

Code adapted from here.