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/MPParenthesisFunction.m
2014-11-25 23:59:28 +01:00

37 lines
593 B
Objective-C

//
// MPParenthesisFunction.m
// MathPad
//
// Created by Kim Wittenburg on 17.09.14.
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//
#import "MPParenthesisFunction.h"
#import "MPExpression.h"
#import "MPParenthesisTerm.h"
@implementation MPParenthesisFunction
MPFunctionAccessorImplementation(Expression, _expression)
- (NSArray *)childrenAccessors
{
return @[@"expression"];
}
- (Class)functionTermClass
{
return [MPParenthesisTerm class];
}
- (NSString *)description
{
return [NSString stringWithFormat:@"(%@)", self.expression.description];
}
@end