Dynamically set the next node that the rule matcher will look at, after the current rule match is done.
setlookahead(ord_num)
True if successful, else false.
The lookahead element modifier is static, while the setlookahead function allows dynamic and conditional setting of the lookahead node. The function overrides the lookahead modifier. To avoid confusion, we recommend not using both in the same rule.
Not a reduce action per se, but works in tandem with reduce actions.
@POST
if (N(3))
single();
else
{
# Discard the comma match,if any.
setlookahead(2);
singler(1,1);
}
@RULES
_namewtitle <-
Smith
\, [opt]
CEO [opt]
@@
lookahead element modifier