Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathPad/MPParsedExpression.m
Kim Wittenburg b6973dc24a Invalid Numbers Are Now a Syntax Error
Syntax Errors Now Include a Range
Syntax Errors Are Now Displayed in a Selectable List
2014-11-29 00:19:52 +01:00

27 lines
557 B
Objective-C

//
// MPParsedExpression.m
// MathPad
//
// Created by Kim Wittenburg on 14.11.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
#import "MPParsedExpression.h"
#import "MPToken.h"
#import "MPTerm.h"
NSString *const MPMathKitErrorDomain = @"MPMathKitErrorDomain";
NSString *const MPPathToExpressionKey = @"MPPathToExpressionKey";
NSString *const MPErrorRangeKey = @"MPErrorRangeKey";
@implementation MPParsedExpression
- (NSDecimalNumber *)evaluate:(NSError *__autoreleasing *)error
{
return [self.term evaluate:error];
}
@end