Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/02/16 13:02:03 (8 years ago)
Author:
gkronber
Message:

#2657:

  • added switch to determine if numeric parameters should be initialized randomly.
  • fixed a bug in the infix parser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Importer/InfixExpressionParser.cs

    r14026 r14319  
    143143          pos++;
    144144          while (pos < str.Length && !char.IsWhiteSpace(str[pos])
    145             && (str[pos] != '+' || str[pos-1] == 'e' || str[pos-1] == 'E')     // continue reading exponents
     145            && (str[pos] != '+' || str[pos - 1] == 'e' || str[pos - 1] == 'E')     // continue reading exponents
    146146            && (str[pos] != '-' || str[pos - 1] == 'e' || str[pos - 1] == 'E')
    147             && str[pos] != '*'           
     147            && str[pos] != '*'
    148148            && str[pos] != '/'
    149149            && str[pos] != ')') {
     
    211211          pos++;
    212212          yield return new Token { TokenType = TokenType.RightPar, strVal = ")" };
     213        } else {
     214          throw new ArgumentException("Invalid character: " + str[pos]);
    213215        }
    214216      }
Note: See TracChangeset for help on using the changeset viewer.