SUBROUTINES/METHODS

render

Generates a text string from all the possible variations.  Uses weights to determine how likely each possible string is to be rendered.

num_paths

Returns the number of possible strings that could be generated from this node.  Combinatorially speaking, children of a sequence node multiply and children of a spin node add.

"{a|b|c}" has 1+1+1=3 possibilities: a, b, c

"{a|b} {c|d}" has 2*2=4 possibilities: a c, a d, b c, b d