zhaw-fup/Exercises/exercise-7/Lambda.hs

7 lines
203 B
Haskell
Raw Normal View History

2024-06-16 21:46:51 +00:00
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