//
//  MPExpressionElement.h
//  MathPad
//
//  Created by Kim Wittenburg on 10.08.14.
//  Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//

@import Foundation;

#import "MPParseError.h"

@protocol MPExpressionElement <NSObject, NSCopying, NSCoding>

- (BOOL)isString;
- (BOOL)isFunction;

- (NSUInteger)length;

- (NSDecimalNumber *)evaluate:(MPParseError *__autoreleasing *)error;

@end
