|
| |
| Navigation |
Synopsis Assign to annotation.
Syntax
Assignable @ Name = Exp
Description The value
V of Assignable is determined and should be of a type that has an annotation Name.
A new value V' is created that is a copy of V but with the value of annotation Name replaced by the value of Exp.
V' is assigned to Assignable.
See Annotation.
Examples
rascal>data FREQ = wf(str word, int freq); ok rascal>W = wf("rascal", 1000); FREQ: wf("rascal",1000) rascal>anno str FREQ@color; ok rascal>W @ color = "red"; FREQ: wf("rascal",1000)[ @color="red" ] rascal>W @ color; str: "red" |