Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (27 sloc) 0.934 kB
34c91e5 @davedelong Move information about operators into a separate class
authored
1 //
2 // _DDOperatorInfo.h
3 // DDMathParser
4 //
5 // Created by Dave DeLong on 10/1/11.
6 // Copyright (c) 2011 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "DDMathParser.h"
11
78f6ad5 @davedelong make it happy compiling for instrumentation. sigh.
authored
12 @interface _DDOperatorInfo : NSObject {
13 DDOperator _operator;
14 DDOperatorArity _arity;
15 DDOperatorAssociativity _defaultAssociativity;
16 NSInteger _precedence;
17 NSString *_token;
18 NSString *_function;
19 }
34c91e5 @davedelong Move information about operators into a separate class
authored
20
21 @property (nonatomic, readonly) DDOperator operator;
22 @property (nonatomic, readonly) DDOperatorArity arity;
054476e @davedelong strong support for implicit multiplication when the logical not opera…
authored
23 @property (nonatomic, assign) DDOperatorAssociativity defaultAssociativity;
34c91e5 @davedelong Move information about operators into a separate class
authored
24 @property (nonatomic, readonly) NSInteger precedence;
25 @property (nonatomic, readonly, DD_STRONG) NSString *token;
26 @property (nonatomic, readonly, DD_STRONG) NSString *function;
27
28 + (NSArray *)allOperators;
054476e @davedelong strong support for implicit multiplication when the logical not opera…
authored
29 + (NSArray *)infosForOperator:(DDOperator)operator;
06a1c5f @davedelong Remove use of NSPredicate, more cached information
authored
30 + (NSArray *)infosForOperatorToken:(NSString *)token;
34c91e5 @davedelong Move information about operators into a separate class
authored
31
32 @end
Something went wrong with that request. Please try again.