Update to correct Factorial computation
Changed defines to iOS compatible version. (LONG_LONG_MIN -> LLONG_MIN)
…w the framework works again on ios
A new class, DDMathOperatorSet, defines a collection of operators. There is a “default” instance, but you can allocate your own instances to customize the sets of operators used in different contexts. This has several side effects: - The interpretation of “%” as either percent or modulo can now be customized at runtime instead of compiletime - Tokenization can be much more lenient in what characters are allowed in function names
… the variable resolver
The MathEvaluator should focus on evaluating math.
This allows us to have words as operators, such as “or” or “and”. (“1 or 0” evaluates to @1). This behavior, for now, is disabled by default and is a compile-time option.
The name is wrong. +shared* implies a singleton, which this is not. The proper name is +defaultMathEvaluator (like +[NSFileManager defaultManager])