Beispiel #1
0
 private static List <NodeType> createNonterminalTypes()
 {
     return(getAllTypes().Where(t => t != NodeType.dirEntryPoint && NodeFactory.createNode(t).successors.count != 0).ToList());
 }
Beispiel #2
0
 private static List <NodeType> createAllTypes()
 {
     return(Enum.GetValues(typeof(NodeType)).Cast <NodeType>().OrderBy(t => NodeFactory.createNode(t).successors.count).ToList());
 }
Beispiel #3
0
 private static List <NodeType> createTerminalTypes()
 {
     return(getAllTypes().Where(t => NodeFactory.createNode(t).successors.count == 0).ToList());
 }
Beispiel #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));
 }