Navigation
Synopsis Abstract patterns.
Syntax
Pattern Syntax
Literal Boolean, Integer, Real, Number, String, Location, or DateTime
Variable declaration Type Var
Multi-variable *Var, *Type Var
Variable Var
List [ Pat1, Pat2, ..., Patn ]
Set { Pat1, Pat2, ..., Patn }
Tuple < Pat1, Pat2, ..., Patn >
Node Name ( Pat1, Pat2, ..., Patn )
Descendant / Pat
Labelled Var : Pat
TypedLabelled Type Var : Pat
TypeConstrained [Type] Pat
Description An abstract pattern is recursively defined and may contain the following elements:
Pitfalls Map patterns are not (yet?) supported.
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.