summaryrefslogtreecommitdiffstats
path: root/either.sml
diff options
context:
space:
mode:
authorRose Hogenson <rhogenson@posteo.net>2022-09-11 21:04:09 -0700
committerRose Hogenson <rhogenson@posteo.net>2022-09-11 21:04:09 -0700
commit6fcbcb61af5e7723442334e4cce075c28fb3901b (patch)
treeffa466770bcde685b314776fbe3750ef26a34295 /either.sml
parentFix some style issues in map.sml. (diff)
downloadsml-6fcbcb61af5e7723442334e4cce075c28fb3901b.tar.zst
Add a simple expression parser.
Diffstat (limited to 'either.sml')
-rw-r--r--either.sml4
1 files changed, 4 insertions, 0 deletions
diff --git a/either.sml b/either.sml
new file mode 100644
index 0000000..6a63fe5
--- /dev/null
+++ b/either.sml
@@ -0,0 +1,4 @@
+structure Either =
+struct
+ datatype ('a, 'b) either = Left of 'a | Right of 'b
+end