Skip to main content

Node FieldSelection

rascal-0.34.0

Synopsis

Select a field from a node by its field name.

Syntax

Exp . Name

Types

ExpNameExp . Name
nodeLᵢ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
---