public function lexAll(\Jstewmc\Stream\Stream $stream) 
	{
		$tokens = [];
		
		// while tokens exist
		while (false !== ($token = $this->lexOne($stream))) {
			// append le token
			$tokens[] = $token;
		}
		
		return $tokens;
	}
public function lexAll(\Jstewmc\Stream\Stream $stream) 
	{
		$tokens = [];
		
		// while tokens exist
		while (false !== ($token = $this->lexOne($stream))) {
			// append le token
			$tokens[] = $token;
		}
		
		return $tokens;
	}
public function lexAll ( \ Jstewmc \ Stream \ Stream $ stream ) { $ tokens = [ ] ; // while tokens exist while ( false !== ( $ token = $ this -> lexOne ( $ stream ) ) ) { // append le token $ tokens [ ] = $ token ; } return $ tokens ; }
Lexes all tokens from the current stream

Keep in mind, for very large documents, this may cause a memory overflow.

@param  Jstewmc\Stream\Stream  $stream  the character stream
@return  Jstewmc\Rtf\Token\Token[]
@since  0.2.0
Lexes all tokens from the current stream