Skip to main content

Node Equal

rascal-0.34.0

Synopsis

Equal operator on node values.

Syntax

Exp₁ == Exp₂

Types

Exp₁Exp₂Exp₁ == Exp₂
nodenodebool

Description

Yields true if the node names of the values of Exp₁ and Exp₂ are equal and the children of each node are pairwise equal, otherwise false.

Examples

rascal>"f"(1, "abc", true) == "f"(1, "abc", true);
bool: true
rascal>"f"(1, "abc", true) == "f"(1, "def", true);
bool: false