Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/16 21:10:17 (8 years ago)
Author:
pkimmesw
Message:

#2665 Full Push 3.0 instruction set and tests; Added first benchmark test (count odds) for random walk tests;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.Algorithms.PushGP/HeuristicLab.Algorithms.PushGP/Parser/Parser.cs

    r14328 r14392  
    22using System.Globalization;
    33using 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;
    104
    115namespace HeuristicLab.Algorithms.PushGP
     
    5145                {
    5246                    endIndex = i;
    53                     return expressions.Count != 0
    54                         ? new ExecExpandExpression(expressions.ToArray())
    55                         : new CodeNoopExpression() as Expression;
     47                    return new ExecExpandExpression(expressions.ToArray());
    5648                }
    5749
     
    6557
    6658                // expression
    67                 OpCode opCode;
    68                 if (SymbolTable.TryGetOpCode(symbol, out opCode))
     59                if (ExpressionTable.TryGetStatelessExpression(symbol, out expression) ||
     60                    ExpressionTable.TryGetStatefullExpression(symbol, out expression))
    6961                {
    70                     expression = ExpressionFactory.Create(opCode);
    7162                    expressions.Insert(0, expression);
    7263                    continue;
Note: See TracChangeset for help on using the changeset viewer.