Cleaned Code by Removing Location Tracking for Errors
This commit is contained in:
@@ -8,11 +8,7 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MPTokenStream.h"
|
||||
#import "MPParseError.h"
|
||||
#import "MPTokenStream.h"
|
||||
|
||||
#define MPTokenStreamRecordCurrentLocation(tokenStream) NSUInteger __tokenStreamStart = tokenStream.currentToken.range.location
|
||||
#define MPTokenStreamRecordedRange(tokenStream) NSMakeRange(__tokenStreamStart, tokenStream.currentToken.range.location - __tokenStreamStart)
|
||||
#import "MPExpression.h"
|
||||
|
||||
@protocol MPExpressionTreeElement <NSObject>
|
||||
@required
|
||||
@@ -20,11 +16,7 @@
|
||||
- (instancetype)init;
|
||||
- (instancetype)initWithTokenStream:(MPTokenStream *)tokenStream;
|
||||
|
||||
- (NSRange)range;
|
||||
|
||||
- (BOOL)validate:(MPParseError *__autoreleasing *)error;
|
||||
- (BOOL)validate:(NSError *__autoreleasing *)error;
|
||||
- (NSDecimalNumber *)evaluate;
|
||||
|
||||
- (NSArray *)expressionElements; // Converts
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user