A tiny untyped lambda calculus evaluatior with Normalization by Evaluation algorithm.
ghc -o Main Main.hs
Here we define a lambda term as below
where the let
pattern is a syntactic sugar for the convenience of defining variables.
cat test.txt | Main
It would output the normal form of 1000 in Church encoding