root = $root; } /** * Get the root node * * @return Node */ public function getRoot() { return $this->root; } /** * Extract information about the syntax tree * * @return SyntaxInfo */ public function getInfo() { return new SyntaxInfo( $this->root ); } }