Node FieldSelection
rascal-0.40.17
Synopsis
Select a field from a node by its field name.
Syntax
Exp . Name
Types
Exp | Name | Exp . Name |
---|---|---|
node | Lᵢ | Tᵢ |
Description
Field selection applies to nodes with keyword fields. Exp should evaluate to a tuple with field Name and returns the value of that field. Name stands for itself and is not evaluated.
Examples
rascal>tuple[int key, str val] T = <1, "abc">;
tuple[int key,str val]: <1,"abc">
rascal>T.val;
str: "abc"
---
abc
---