excise

Purpose

Excise the nodes matching the range of elements from ruleEltNumber1 to ruleEltNumber2 from the parse tree.

Syntax

excise(ruleEltNumber1, ruleEltNumber2)

Returns

Remarks

For multiple excise actions, operations must be ordered such that the highest number is listed first in the operation.

Example

# This rule excises all whitespace found in the current context.
@POST
 excise(1,1);
@RULES
_xNIL <- _xWHITE [plus] @@

See Also

POST Actions