diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-09-11 21:04:09 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-09-11 21:04:09 -0700 |
| commit | 6fcbcb61af5e7723442334e4cce075c28fb3901b (patch) | |
| tree | ffa466770bcde685b314776fbe3750ef26a34295 /syntax.sml | |
| parent | b29d072cd962f9ce1a2f7b038f3d1affbc525dbf (diff) | |
| download | sml-6fcbcb61af5e7723442334e4cce075c28fb3901b.tar.zst | |
Add a simple expression parser.
Diffstat (limited to 'syntax.sml')
| -rw-r--r-- | syntax.sml | 9 |
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 |
