original_string: public function parse(HTML5_Inputstream_Interface $input) {
          $this->errors = array();
          $events = new HTML5_Parser_DOMTreeBuilder(false, $this->options);
          $scanner = new HTML5_Parser_Scanner($input);
          $parser = new HTML5_Parser_Tokenizer($scanner, $events);
  
          $parser->parse();
          $this->errors = $events->getErrors();
  
          return $events->document();
      }
code: public function parse(HTML5_Inputstream_Interface $input) {
          $this->errors = array();
          $events = new HTML5_Parser_DOMTreeBuilder(false, $this->options);
          $scanner = new HTML5_Parser_Scanner($input);
          $parser = new HTML5_Parser_Tokenizer($scanner, $events);
  
          $parser->parse();
          $this->errors = $events->getErrors();
  
          return $events->document();
      }
code_tokens: public function parse ( HTML5_Inputstream_Interface $ input ) { $ this -> errors = array ( ) ; $ events = new HTML5_Parser_DOMTreeBuilder ( false , $ this -> options ) ; $ scanner = new HTML5_Parser_Scanner ( $ input ) ; $ parser = new HTML5_Parser_Tokenizer ( $ scanner , $ events ) ; $ parser -> parse ( ) ; $ this -> errors = $ events -> getErrors ( ) ; return $ events -> document ( ) ; }
docstring: Parse an input stream.
  
  Lower-level loading function. This requires an input stream instead
  of a string, file, or resource.
docstring_tokens: Parse an input stream .