public function parse(array $tokens = array())
    {
        $this->lineNum    = -1;
        $this->lineTokens = 0;
        $this->pragmas    = $this->defaultPragmas;

        $this->pragmaFilters = isset($this->pragmas[Mustache_Engine::PRAGMA_FILTERS]);
        $this->pragmaBlocks  = isset($this->pragmas[Mustache_Engine::PRAGMA_BLOCKS]);

        return $this->buildTree($tokens);
    }
public function parse(array $tokens = array())
    {
        $this->lineNum    = -1;
        $this->lineTokens = 0;
        $this->pragmas    = $this->defaultPragmas;

        $this->pragmaFilters = isset($this->pragmas[Mustache_Engine::PRAGMA_FILTERS]);
        $this->pragmaBlocks  = isset($this->pragmas[Mustache_Engine::PRAGMA_BLOCKS]);

        return $this->buildTree($tokens);
    }
public function parse ( array $ tokens = array ( ) ) { $ this -> lineNum = - 1 ; $ this -> lineTokens = 0 ; $ this -> pragmas = $ this -> defaultPragmas ; $ this -> pragmaFilters = isset ( $ this -> pragmas [ Mustache_Engine :: PRAGMA_FILTERS ] ) ; $ this -> pragmaBlocks = isset ( $ this -> pragmas [ Mustache_Engine :: PRAGMA_BLOCKS ] ) ; return $ this -> buildTree ( $ tokens ) ; }
Process an array of Mustache tokens and convert them into a parse tree.

@param array $tokens Set of Mustache tokens

@return array Mustache token parse tree
Process an array of Mustache tokens and convert them into a parse tree .