summaryrefslogtreecommitdiffstats
path: root/syntax.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 /syntax.sml
parentb29d072cd962f9ce1a2f7b038f3d1affbc525dbf (diff)
downloadsml-6fcbcb61af5e7723442334e4cce075c28fb3901b.tar.zst
Add a simple expression parser.
Diffstat (limited to 'syntax.sml')
-rw-r--r--syntax.sml9
1 files changed, 9 insertions, 0 deletions
diff --git a/syntax.sml b/syntax.sml
new file mode 100644
index 0000000..fbb61bd
--- /dev/null
+++ b/syntax.sml
@@ -0,0 +1,9 @@
+structure Syntax =
+struct
+ datatype expr = EIdent of string
+ | EInt of int
+ | EStr of string
+ | ETuple of expr list
+ | EList of expr list
+ | EApp of expr * expr
+end