Navigation
Synopsis Assign to constructor.
Syntax Name ( Assignable1, Assignable2, ...) = Exp
Description First the value Exp is determined and should be a data value of the form `Name(V1, V2, ..., Vn). Next the assignments Assignablei = Vi are performed for 1 <= i <= n.
Examples
rascal>data FREQ = wf(str word, int freq);
ok
rascal>W = wf("rascal", 1000);
FREQ: wf("rascal",1000)
rascal>wf(S, I) = W;
FREQ: wf("rascal",1000)
rascal>S;
str: "rascal"
rascal>I;
int: 1000
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.