Public Member Functions | |
accept (Visitor $visitor) | |
Single function in the Visitable interface. More... | |
Visitable interface,.
Part of the visitor design pattern implementation. Every Node implements the Visitable interface, containing the single function accept()
Implemented by the (abstract) Node class.
MathParser\Interpreting\Visitors\Visitable::accept | ( | Visitor | $visitor | ) |
Single function in the Visitable interface.
Calling the accept() function on a Visitable class, i.e. a Node (or subclass thereof) causes the supplied Visitor to traverse the AST.
Visitor | $visitor |
Implemented in MathParser\Parsing\Nodes\ExpressionNode, MathParser\Parsing\Nodes\FunctionNode, MathParser\Parsing\Nodes\RationalNode, MathParser\Parsing\Nodes\ConstantNode, MathParser\Parsing\Nodes\IntegerNode, MathParser\Parsing\Nodes\SubExpressionNode, MathParser\Parsing\Nodes\NumberNode, MathParser\Parsing\Nodes\PostfixOperatorNode, and MathParser\Parsing\Nodes\VariableNode.