$program =
$this->
completeNode($node);
if ($this->scanner->
getToken()) { $this->
error();
} //Execute scanner end operations
$this->scanner->
consumeEnd();
//Emit the EndParsing event and pass the resulting program node as
//event data
$this->eventsEmitter &&
$this->eventsEmitter->
fire( "EndParsing", array
($program) );
return $program;
} /**
* Converts an expression node to a pattern node
*
* @param Node\Node $node The node to convert
*
* @return Node\Node
*/