Add a lambda term type
This commit is contained in:
parent
cf5867e616
commit
7e360c357e
1 changed files with 6 additions and 0 deletions
6
Exercises/exercise-7/Lambda.hs
Normal file
6
Exercises/exercise-7/Lambda.hs
Normal file
|
@ -0,0 +1,6 @@
|
|||
data Term =
|
||||
Nat Integer
|
||||
| Abs String Term -- EAbs Abstraction
|
||||
| Inv Term Term -- EApp Invocation (a.k.a. Application) of a function
|
||||
| Var String -- EVar a variable
|
||||
| Add
|
Loading…
Reference in a new issue