As predicates, pattern match statements on rule test
nodes (rule test variables) are allowed.
A variable is linked to a pattern
with the tokens ~, matches, or instanceof.
The pattern match statement succeeds if
the variable has the form of the pattern.
If a variable is linked to a pattern with !~
the pattern match statement succeeds if
the variable has not the form of the pattern.
In rule transformations pattern matching is not allowed.