summaryrefslogtreecommitdiffstats
path: root/Syntax.sml
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-11-04 18:58:28 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-11-04 21:05:18 -0800
commiteaa183b7dfc841df75d42ace7a90ada1e40ff282 (patch)
tree1d627b8088d5996a7bbf7c0a7439360e31de3dc3 /Syntax.sml
parentc48a992a6ed6ebd79c344b37364a680ddd948dea (diff)
downloadsml-eaa183b7dfc841df75d42ace7a90ada1e40ff282.tar.zst
Add listsHEADmain
Diffstat (limited to 'Syntax.sml')
-rw-r--r--Syntax.sml2
1 files changed, 2 insertions, 0 deletions
diff --git a/Syntax.sml b/Syntax.sml
index 0eccd36..8145211 100644
--- a/Syntax.sml
+++ b/Syntax.sml
@@ -13,6 +13,7 @@ struct
| PInt of int
| PTuple of pat list
| PCon of string list * pat
+ | PList of pat list
datatype identType =
ITVar
@@ -77,6 +78,7 @@ struct
| TPInt of int
| TPTuple of (typedPat * ty) list
| TPCon of string list * (typedPat * ty)
+ | TPList of (typedPat * ty) list
datatype typedExpr =
TEIdent of identType * string