summaryrefslogtreecommitdiff
path: root/src/AST.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2023-12-22 23:19:20 +0100
committerTom Smeding <tom@tomsmeding.com>2023-12-22 23:19:20 +0100
commit37acb2efba1cd159bda5d163192e2aba70c4e26b (patch)
tree7b77bb3bc18c5e2adc1f50b2988bd80d791329e8 /src/AST.hs
parent2872a9a18519d41e110c5cea36172935b64edfde (diff)
Stuff
Diffstat (limited to 'src/AST.hs')
-rw-r--r--src/AST.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/AST.hs b/src/AST.hs
index 42967bc..ba018f5 100644
--- a/src/AST.hs
+++ b/src/AST.hs
@@ -22,6 +22,8 @@ data Term
| TIMax Term Term -- ^ Maximum of two levels
| TISucc Term -- ^ Level + 1
+ | TAnnot (OfType Term Term) -- ^ term : type
+
-- Temporary stuff until we have proper inductive types:
| TOne -- ^ The unit type
| TUnit -- ^ The element of the unit type
@@ -31,4 +33,11 @@ data Term
| TProj2 Term -- ^ Second projection of a dependent pair
deriving (Show)
+data Definition = Definition Name (OfType Term Term)
+ deriving (Show)
+
type Env = Map Name Term
+
+data OfType a b = a :| b
+ deriving (Show)
+infix 1 :|