I am looking to abstract part of a parse tree into a map. Specifically I want something concrete like this:
syntax RecType = RECORD: "{" {(Ident "=" Num) ";"}* "}"
Where let's just say Ident
and Num
and str
and int
, respectively.
To be abstracted to something like:
public data RECTYPE = RECORD(map[str, int] rec);
Is this something is is possible? I am getting some constructor errors from this.
Thanks!