- Timestamp:
- 10/02/16 13:02:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/InfixExpressionParser.cs
r14026 r14319 143 143 pos++; 144 144 while (pos < str.Length && !char.IsWhiteSpace(str[pos]) 145 && (str[pos] != '+' || str[pos -1] == 'e' || str[pos-1] == 'E') // continue reading exponents145 && (str[pos] != '+' || str[pos - 1] == 'e' || str[pos - 1] == 'E') // continue reading exponents 146 146 && (str[pos] != '-' || str[pos - 1] == 'e' || str[pos - 1] == 'E') 147 && str[pos] != '*' 147 && str[pos] != '*' 148 148 && str[pos] != '/' 149 149 && str[pos] != ')') { … … 211 211 pos++; 212 212 yield return new Token { TokenType = TokenType.RightPar, strVal = ")" }; 213 } else { 214 throw new ArgumentException("Invalid character: " + str[pos]); 213 215 } 214 216 }
Note: See TracChangeset
for help on using the changeset viewer.