aboutsummaryrefslogtreecommitdiff
path: root/snug-clean/src/Snug/Syntax.dcl
diff options
context:
space:
mode:
authorCamil Staps2023-11-29 11:26:28 +0100
committerCamil Staps2023-11-29 11:26:28 +0100
commit4ce6adb6f5dc6623b903853322be726a9f95a3b8 (patch)
tree927447752dcf46f491be81eabbd68a5d5e06ffa8 /snug-clean/src/Snug/Syntax.dcl
parentWIP on code generation for case expressions (diff)
Continue with cases WIP: todo is matching code for basic values and adding locals for constructor arguments in a patterncases
Diffstat (limited to 'snug-clean/src/Snug/Syntax.dcl')
-rw-r--r--snug-clean/src/Snug/Syntax.dcl3
1 files changed, 3 insertions, 0 deletions
diff --git a/snug-clean/src/Snug/Syntax.dcl b/snug-clean/src/Snug/Syntax.dcl
index f6ff0f2..88fefde 100644
--- a/snug-clean/src/Snug/Syntax.dcl
+++ b/snug-clean/src/Snug/Syntax.dcl
@@ -11,6 +11,9 @@ from Data.Set import :: Set
= Type !TypeIdent
| TyVar !TypeVarIdent
| TyApp !Type !Type
+ | TyFun !Type !Type
+
+ | ..
:: ConstructorDef
= ConstructorDef !ConstructorIdent ![Type]