Exemple #1
0
 private static List <NodeType> createNonterminalTypes()
 {
     return(getAllTypes().Where(t => t != NodeType.dirEntryPoint && NodeFactory.createNode(t).successors.count != 0).ToList());
 }
Exemple #2
0
 private static List <NodeType> createAllTypes()
 {
     return(Enum.GetValues(typeof(NodeType)).Cast <NodeType>().OrderBy(t => NodeFactory.createNode(t).successors.count).ToList());
 }
Exemple #3
0
 private static List <NodeType> createTerminalTypes()
 {
     return(getAllTypes().Where(t => NodeFactory.createNode(t).successors.count == 0).ToList());
 }
Exemple #4
0
 /// <summary>
 /// Creates a shallow copy of the object. Should not be called directly.
 /// </summary>
 /// <returns></returns>
 public virtual object Clone()
 {
     return(NodeFactory.createNode(this.type));
 }