- Timestamp:
- 10/13/11 15:31:27 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/ArgumentCreater.cs
r5809 r6918 180 180 foreach (var symb in subtree.Grammar.Symbols) { 181 181 if (symb is StartSymbol || symb is ProgramRootSymbol) continue; 182 if (symb.Name == matchingSymbol.Name) continue; //don't allow invoke as child of invoke 182 183 if (subtree.Grammar.IsAllowedChildSymbol(selectedCutPoint.Parent.Symbol, symb, selectedCutPoint.ChildIndex)) 183 184 subtree.Grammar.AddAllowedChildSymbol(matchingSymbol, symb, newArgumentNode.Symbol.ArgumentIndex); -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/ArchitectureManipulators/GrammarModifier.cs
r5809 r6918 38 38 //set allowed child symbols of invoke symbol 39 39 foreach (ISymbol child in grammar.Symbols) { 40 if (child.Name == invokeSym.Name) continue; 40 41 int i = 0; 41 42 foreach (CutPoint argumentCutPoint in argumentCutPoints) {
Note: See TracChangeset
for help on using the changeset viewer.