Changeset 14392 for branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Parser/Parser.cs
- Timestamp:
- 11/15/16 21:10:17 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Parser/Parser.cs
r14328 r14392 2 2 using System.Globalization; 3 3 using HeuristicLab.Algorithms.PushGP.Expressions; 4 using HeuristicLab.Algorithms.PushGP.Expressions.Boolean;5 using HeuristicLab.Algorithms.PushGP.Expressions.Code;6 using HeuristicLab.Algorithms.PushGP.Expressions.Exec;7 using HeuristicLab.Algorithms.PushGP.Expressions.Float;8 using HeuristicLab.Algorithms.PushGP.Expressions.Integer;9 using HeuristicLab.Algorithms.PushGP.Expressions.Name;10 4 11 5 namespace HeuristicLab.Algorithms.PushGP … … 51 45 { 52 46 endIndex = i; 53 return expressions.Count != 0 54 ? new ExecExpandExpression(expressions.ToArray()) 55 : new CodeNoopExpression() as Expression; 47 return new ExecExpandExpression(expressions.ToArray()); 56 48 } 57 49 … … 65 57 66 58 // expression 67 OpCode opCode;68 if (SymbolTable.TryGetOpCode(symbol, out opCode))59 if (ExpressionTable.TryGetStatelessExpression(symbol, out expression) || 60 ExpressionTable.TryGetStatefullExpression(symbol, out expression)) 69 61 { 70 expression = ExpressionFactory.Create(opCode);71 62 expressions.Insert(0, expression); 72 63 continue;
Note: See TracChangeset
for help on using the changeset viewer.