Changeset 7660
- Timestamp:
- 03/23/12 13:32:11 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r7656 r7660 338 338 public virtual bool IsAllowedChildSymbol(ISymbol parent, ISymbol child, int argumentIndex) { 339 339 if (!child.Enabled) return false; 340 if (IsAllowedChildSymbol(parent, child)) return true; 340 341 if (allowedChildSymbolsPerIndex.Count == 0) return false; 341 if (IsAllowedChildSymbol(parent, child)) return true;342 342 343 343 bool result; -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeGrammar.cs
r7656 r7660 51 51 public override IEnumerable<ISymbol> Symbols { 52 52 get { 53 foreach (var s in grammar.Symbols) yield return s; 53 54 foreach (var s in base.symbols.Values) yield return s; 54 foreach (var s in grammar.Symbols) yield return s;55 55 } 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.