![]() |
bcParserObjC
1.1
Math Parser for Objective C, iOS and OSX
|
Internal support protocol that represents parsed expression tree. More...
Instance Methods | |
| (double) | - getValue |
| Returns the value as NSObject which can be one of NSNumber of NSString. | |
| (BOOL) | - isVariableUsed: |
| Is this variable used in the expression under this node? | |
| (BOOL) | - isFunctionUsed: |
| Is this function used in the expression under this node? | |
| (void) | - optimize |
| Optimize Evaluates constant values at compile time (When Parse() is called). More... | |
Internal support protocol that represents parsed expression tree.
Declared here only because we can't forward declare a protocol. Some people get creative and do fancy things with the expression tree. If you need such access, feel free to add a property that lets you access the m_Nodes member field of the parser so that you can walk the parsed tree structure for your specific needs. You would also need to expose the specific node types to your program to achieve that.
| - (void) optimize |
Optimize Evaluates constant values at compile time (When Parse() is called).
Once this is done, Evaluate will run faster.
1.8.5