Exemplo n.º 1
0
 public NFA_Node(Node node)
 {
     this.operation = node.operation;
     this.parent    = null;
     this.sonNum    = node.sonNum;
     this.value     = node.value;
     sons           = new NFA_Node[2];
     if (node.sons[0] != null)
     {
         sons[0] = new NFA_Node(node.sons[0]);
     }
     if (node.sons[1] != null)
     {
         sons[1] = new NFA_Node(node.sons[1]);
     }
 }
Exemplo n.º 2
0
 public NFA_ParseTree(ParseTree parseTree)
 {
     root = new NFA_Node(parseTree.root);
     root.BuildAutomata();
     automata = root.automata;
 }