Changeset 18142 for branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer
- Timestamp:
- 12/16/21 11:22:29 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/SymbolicExpressionImporter.cs
r18123 r18142 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.