Module constructor

Module constructor 

Source

Structs§

GrammarConcat
Build a grammar accepting the concatenation of grammars in order.
GrammarUnion
Build a grammar accepting any string from any of grammars.

Functions§

add_sub_grammar
Splice every rule of sub_grammar into builder, returning the new rule id of sub_grammar’s root rule. Rule references, repeats and tag dispatches are remapped to the freshly-allocated rule ids.