예제 #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;
 }