bcParserObjC  1.1
Math Parser for Objective C, iOS and OSX
 All Classes Functions Variables Properties Pages
Instance Methods | List of all members
<Node> Protocol Reference

Internal support protocol that represents parsed expression tree. More...

Inheritance diagram for <Node>:

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...
 

Detailed Description

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.

Method Documentation

- (void) optimize

Optimize Evaluates constant values at compile time (When Parse() is called).

Once this is done, Evaluate will run faster.


The documentation for this protocol was generated from the following file: