Пример #1
0
 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
         };
     }
 }
Пример #2
0
 public OptionalNode(RegexNode node)
 {
     Node = node;
 }
 public RepeatZeroOrMoreNode(RegexNode node)
 {
     Node = node;
 }
Пример #4
0
 public RepeatOneOrMoreNode(RegexNode node)
 {
     Node = node;
 }