node

fun <G : Node> node(pattern: RuleBuilder<G>.() -> Unit): RuleBuilder<N>

Adds an anonymous inline nonterminal rule reference.

This is an alias for group.

Return

this RuleBuilder for chaining

Parameters

G

The Node type produced by the anonymous Rule

pattern

A lambda defining the anonymous Rule's productions