-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bracket.h
executable file
·35 lines (31 loc) · 1.03 KB
/
Bracket.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// ##############################################################
// Bracket.h
// Magic Number Machine
//
// Created by Matt Gallagher on Sun May 25 2003.
// Copyright (c) 2003 Matt Gallagher. All rights reserved.
// ##############################################################
#import <Foundation/Foundation.h>
#import "Expression.h"
//
// About Bracket
//
// A basic node which exists to wrap a sub-tree.
//
@interface Bracket : Expression
{
@protected
bool closed;
}
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithParent:(Expression*)newParent andManager:(DataManager*)newManager NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
- (void)encodeWithCoder:(NSCoder *)coder;
- (void)binaryOpPressed:(int)op;
- (void)closeBracketPressed;
- (void)deleteDigit;
- (void)equalsPressed;
@property (NS_NONATOMIC_IOSONLY, getter=getExpressionString, readonly, copy) NSString *expressionString;
- (NSBezierPath*)pathAtLevel:(int)level;
- (void)postOpPressed:(int)op;
@end