protected function parseComment(TokenStream $stream, $type)
    {
        while ($stream->skipType(array(Lexer::TOKEN_EOL, Lexer::TOKEN_WTSP))->is(Lexer::TOKEN_CMNT)) {
            $this->nodes[] = new Node($type, $stream->current()->getValue());
            $stream->next();
        }
    }
protected function parseComment(TokenStream $stream, $type)
    {
        while ($stream->skipType(array(Lexer::TOKEN_EOL, Lexer::TOKEN_WTSP))->is(Lexer::TOKEN_CMNT)) {
            $this->nodes[] = new Node($type, $stream->current()->getValue());
            $stream->next();
        }
    }
protected function parseComment ( TokenStream $ stream , $ type ) { while ( $ stream -> skipType ( array ( Lexer :: TOKEN_EOL , Lexer :: TOKEN_WTSP ) ) -> is ( Lexer :: TOKEN_CMNT ) ) { $ this -> nodes [ ] = new Node ( $ type , $ stream -> current ( ) -> getValue ( ) ) ; $ stream -> next ( ) ; } }
Parses comment tokens

@param TokenStream $stream TokenStream object
@param string      $type   Type of Node
Parses comment tokens