示例#1
0
 /**
  * Implementing the Visitable interface.
  */
 public function accept(Visitor $visitor)
 {
     return $visitor->visitConstantNode($this);
 }
示例#2
0
 /**
  * Implementing the Visitable interface.
  */
 public function accept(Visitor $visitor)
 {
     return $visitor->visitVariableNode($this);
 }
示例#3
0
 /**
  * Implementing the Visitable interface.
  */
 public function accept(Visitor $visitor)
 {
     return $visitor->visitNumberNode($this);
 }
示例#4
0
 /**
  * Implementing the Visitable interface.
  */
 public function accept(Visitor $visitor)
 {
     return $visitor->visitExpressionNode($this);
 }
示例#5
0
 /**
  * Implementing the Visitable interface.
  */
 public function accept(Visitor $visitor)
 {
     return $visitor->visitRationalNode($this);
 }