diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-01-22 19:45:12 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-05-18 08:11:25 -0700 |
| commit | e5034d3a668fbf0a4367bb582d759ba82b5576a3 (patch) | |
| tree | b0b658d254fe6a710183e60e792bb068263e77df /Syntax.sml | |
| parent | 06624f3183f4d773cf1023cabe2e370ebba5dee1 (diff) | |
| download | sml-e5034d3a668fbf0a4367bb582d759ba82b5576a3.tar.zst | |
Support struct expressions
Diffstat (limited to 'Syntax.sml')
| -rw-r--r-- | Syntax.sml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -35,7 +35,11 @@ struct | DFun of string * (pat list * expr) list | DDatatype of string * (string * etype option) list | DType of string * etype - | DStruct of string * dec list + | DStruct of string * structExpr + + and structExpr = + SIdent of string list + | SStruct of dec list (* Lambda language *) type var = int |
