public function parse(string $text) : string
    {
        $tokens = $this->tokenizer->tokenize($text);
        $segments = $this->createSegments($tokens);
        $nodes = $this->createTree($segments);
        return $this->generator->generateMarkup($nodes);
    }
public function parse(string $text) : string
    {
        $tokens = $this->tokenizer->tokenize($text);
        $segments = $this->createSegments($tokens);
        $nodes = $this->createTree($segments);
        return $this->generator->generateMarkup($nodes);
    }
public function parse ( string $ text ) : string { $ tokens = $ this -> tokenizer -> tokenize ( $ text ) ; $ segments = $ this -> createSegments ( $ tokens ) ; $ nodes = $ this -> createTree ( $ segments ) ; return $ this -> generator -> generateMarkup ( $ nodes ) ; }
Parses input string and generates markup.

@param string $text

@return string
Parses input string and generates markup .