Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/15/21 08:59:47 (3 years ago)
Author:
chaider
Message:

#3140

  • Changed to set value of Constant symbol instead direct of ConstantTreeNode in InfixExpressionParser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/InfixExpressionParser.cs

    r18100 r18118  
    558558      } else if (next.TokenType == TokenType.Number) {
    559559        var numTok = tokens.Dequeue();
    560         var constNode = (ConstantTreeNode)constant.CreateTreeNode();
     560        var constSy = new Constant {Value = numTok.doubleVal};
     561        return constSy.CreateTreeNode();
     562        /*var constNode = (ConstantTreeNode)constant.CreateTreeNode();
    561563        constNode.Value = numTok.doubleVal;
    562         return constNode;
     564        return constNode;*/
    563565      } else {
    564566        throw new ArgumentException(string.Format("unexpected token in expression {0}", next.strVal));
Note: See TracChangeset for help on using the changeset viewer.