AST node representing a postfix operator. More...
Public Member Functions | |
| __construct ($name) | |
| Constructor. More... | |
| getOperator () | |
| returns the name of the postfix operator | |
| accept (Visitor $visitor) | |
| Implementing the Visitable interface. | |
| compareTo ($other) | |
| Implementing the compareTo abstract method. More... | |
Public Member Functions inherited from MathParser\Parsing\Nodes\Node | |
| compareTo ($other) | |
| Helper function, comparing two ASTs. More... | |
| evaluate ($variables) | |
| Convenience function for evaluating a tree, using the Evaluator class. More... | |
| complexity () | |
| Rough estimate of the complexity of the AST. More... | |
| isTerminal () | |
| Returns true if the node is a terminal node, i.e. More... | |
| getOperator () | |
| __toString () | |
Private Attributes | |
| $name | |
| string $name Name of the postfix operator. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from MathParser\Parsing\Nodes\Node | |
| static | rationalFactory (Token $token) |
| Node factory, creating an appropriate Node from a Token. More... | |
| static | factory (Token $token) |
| Node factory, creating an appropriate Node from a Token. More... | |
Public Attributes inherited from MathParser\Parsing\Nodes\Node | |
| const | NumericInteger = 1 |
| const | NumericRational = 2 |
| const | NumericFloat = 3 |
AST node representing a postfix operator.
Only for temporary use in the parser. The node will be converted to a FunctionNode when consumed by the parser.
| MathParser\Parsing\Nodes\PostfixOperatorNode::__construct | ( | $name | ) |
Constructor.
Create a PostfixOperatorNode with given value.
| MathParser\Parsing\Nodes\PostfixOperatorNode::compareTo | ( | $other | ) |
Implementing the compareTo abstract method.
|
private |
string $name Name of the postfix operator.
Currently, only '!' is possible.