public SequenceNode(RegexNode node, RegexNode other) { if (node is SequenceNode) { _nodes = (node as SequenceNode)._nodes; _nodes.Add(other); } else { _nodes = new List <RegexNode>() { node, other }; } }
public OptionalNode(RegexNode node) { Node = node; }
public RepeatZeroOrMoreNode(RegexNode node) { Node = node; }
public RepeatOneOrMoreNode(RegexNode node) { Node = node; }