Changeset 18143 for trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/SymbolicExpressionImporter.cs
- Timestamp:
- 12/16/21 11:26:51 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol merged: 18142
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 18142
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/SymbolicExpressionImporter.cs
r18132 r18143 162 162 return tree; 163 163 } else if (tokens.Peek().Symbol == TokenSymbol.CONSTANT) { 164 var t = (INumericTreeNode)number.CreateTreeNode();165 t.Value = tokens.Dequeue().DoubleValue;166 return t;164 var value = tokens.Dequeue().DoubleValue; 165 var constant = new Constant() { Value = value }; 166 return constant.CreateTreeNode(); 167 167 } else if (tokens.Peek().Symbol == TokenSymbol.LBRACKET) { 168 168 Expect(Token.LBRACKET, tokens); 169 169 Expect(Token.NUM, tokens); 170 var t = ( INumericTreeNode)number.CreateTreeNode();170 var t = (NumberTreeNode)number.CreateTreeNode(); 171 171 if (tokens.Peek().Symbol == TokenSymbol.EQ) { 172 172 Expect(Token.EQ, tokens);
Note: See TracChangeset
for help on using the changeset viewer.