Archived
1

Added Expression Tree Inspection Methods

Cleaned Code
This commit is contained in:
Kim Wittenburg
2014-04-20 23:28:17 +02:00
parent 35215923ef
commit 1daec37a25
6 changed files with 113 additions and 23 deletions

View File

@@ -19,6 +19,14 @@ extern NSString *MPDivisionOperator;
- (instancetype)initWithSymbols:(NSArray *)symbols;
#pragma mark Working With the Expression Tree
@property (nonatomic, weak) MPFunction *parent; // Documentation: Do not set, may be nil
- (void)functionSymbolChanged:(MPFunction *)symbol
atLocalIndexPath:(NSIndexPath *)indexPath; // Index path of change in symbol
- (void)fixSymbols;
#pragma mark Primitive Methods
- (NSUInteger)numberOfSymbols;
@@ -81,6 +89,9 @@ extern NSString *MPDivisionOperator;
- (void)replaceSymbolsInRange:(NSRange)range
withSymbols:(NSArray *)symbols;
- (void)beginEditing;
- (void)endEditing;
@end
@interface MPMutableExpression (MPMutableExpressionExtensionMethods)