private Regex(IRegexNode node) => RootNode = node;
public RepeatNode(IRegexNode node, int min, int max) { Node = node; Min = min; Max = max; }
public OptionalNode(IRegexNode node) => Node = node;