Parses node; if the result is an unnamed container with a direct child that
was marked by donate, the container adopts that child's type as its
own name (and the child dissolves into it; see donate). Named nodes,
leaves, error nodes, and containers with no donated child pass through
unchanged. This is how a shared parameterized rule (such as a generic
binary-operator rule) can produce nodes named after the specific thing that
matched inside it.
Parses
node; if the result is an unnamed container with a direct child that was marked by donate, the container adopts that child's type as its own name (and the child dissolves into it; see donate). Named nodes, leaves, error nodes, and containers with no donated child pass through unchanged. This is how a shared parameterized rule (such as a generic binary-operator rule) can produce nodes named after the specific thing that matched inside it.