Closed krame505 closed 1 year ago
Note that we probably also want to support with ...
on data
declarations, to allow for annotations in defining "records":
annotation x::Integer;
annotation y::Integer;
data Point = point
with x, y;
global p::Point = point(x=2, y=4);
For data nonterminals with no attributes, writing productions with empty bodies is a bit verbose. We might want to add an extension that lets one write Haskell-style syntax, e.g.
which would translate to
Not super urgent and I'm not planning to do this, but I wouldn't object if someone wanted to. Might make a good hackathon intro project.