/** * @param RepetitionNode $astNode * * @return bool */ public function postVisitRepetitionNode(RepetitionNode $astNode) { $child = $this->visitContext->popOneExpression($this); $expression = new Repetition($child); $this->visitContext->pushExpression($expression); return true; }
/** * @param OptionalNode $astNode * * @return bool */ public function postVisitOptionalNode(OptionalNode $astNode) { $child = $this->visitContext->popOneExpression($this); $expression = new Optional($child); $this->visitContext->pushExpression($expression); return true; }
/** * @param GroupNode $astNode * * @return bool */ public function postVisitGroupNode(GroupNode $astNode) { $child = $this->visitContext->popOneExpression($this); $expression = new Group($child); $this->visitContext->pushExpression($expression); }