public function parse($text)
    {
        $this->tokens = $this->lexer->tokenize($text);
        $this->tree = $this->parser->parse($this->tokens);

        return $this->tree;
    }
public function parse($text)
    {
        $this->tokens = $this->lexer->tokenize($text);
        $this->tree = $this->parser->parse($this->tokens);

        return $this->tree;
    }
public function parse ( $ text ) { $ this -> tokens = $ this -> lexer -> tokenize ( $ text ) ; $ this -> tree = $ this -> parser -> parse ( $ this -> tokens ) ; return $ this -> tree ; }
Parse the given mathematical expression into an abstract syntax tree.

@param string $text Input
@retval Node
Parse the given mathematical expression into an abstract syntax tree .