summaryrefslogtreecommitdiff
path: root/src/K/Ast.hs
blob: 56761f51781e26c494bec609b4e4e53a5047177e (plain)
1
2
3
4
5
6
7
8
9
10
11
module K.Ast where

data Expr
    = Tru
    | Fals
    | Zero
    | IsZero Expr
    | Succ Expr
    | Pred Expr
    | If Expr Expr Expr
      deriving (Eq, Show)