From 6fcbcb61af5e7723442334e4cce075c28fb3901b Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 11 Sep 2022 21:04:09 -0700 Subject: Add a simple expression parser. --- syntax.sml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 syntax.sml (limited to 'syntax.sml') 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 -- cgit v1.3.1