nonterminal

fun nonterminal(rule: () -> Rule<*>): RuleBuilder<N>

Adds a nonterminal ReferenceElement that matches the given rule.

This is an alias for reference.

Return

this RuleBuilder for chaining

Parameters

rule

A lambda that returns the rule to reference