Feature-based matching. Match if the given nodes have a variable called varName whose value equals the string or number in the second argument.
<fromRuleEltNumber,toRuleEltNumber>vareq(varName,numOrString);
fromRuleEltNumber - type: int
toRuleEltNumber - type: int
varName - type: string
numOrString - type: int or string
# The example counts nouns with variable called "number" whose
value is "plural".
@PRE
<1,1> vareq("number","plural");
@POST
++G("count plural nouns");
@RULES
_xNIL <-
_noun
@@
var, varz, varne, PRE Actions