Exemplo n.º 1
0
 /**
  * @param RuleNode $astNode
  * @return bool
  */
 public function postVisitRuleNode(RuleNode $astNode)
 {
     $expressions = $this->visitContext->popExpressions($this);
     $symbol = $this->visitContext->popLeftHandSymbol($this);
     //remove the lhs we just popped from the visit context
     array_shift($expressions);
     $production = new StandardProduction($symbol, array_shift($expressions));
     $this->visitContext->collectProduction($production);
     return true;
 }