Archived
1

Improved Evaluation

This commit is contained in:
Kim Wittenburg
2014-09-28 23:50:18 +02:00
parent 43b6f78afb
commit d67a1949e9
19 changed files with 841 additions and 89 deletions

View File

@@ -258,7 +258,9 @@
- (NSDecimalNumber *)evaluateWithError:(MPParseError *__autoreleasing *)error
{
return [self.evaluator evaluateWithError:error];
MPTerm *term = [self.evaluator parseExpectingVariable:NO
error:error];
return [term evaluate];
}
@synthesize evaluator = _evaluator;