public function compileSpecialStatements()
    {
        /**
         * Statemet that sets the variable value.
         */
        preg_match_all('/@set\s?(.*)/', $this->prepared, $matches);

        foreach($matches[0] as $key => $val)
        {
            $exploded = explode(' ', $matches[1][$key]);
            $varName  = substr(trim(array_shift($exploded)), 1);
            $value    = trim(ltrim(trim(implode(' ', $exploded)), '='));

            $this->prepared = str_replace($matches[0][$key], "<?php $$varName = $value; \$this->appendData(['$varName' => $$varName]); ?>", $this->prepared);
        }
        
        /**
         * @todo Make possible to definie owv statements and parsing it.
         */
        /*foreach($this->specialStatements as $statement => $callback)
        {
            preg_match_all('/@'.$statement.'\s?(.*)/', $this->prepared, $matches);

            call_user_func_array($callback, [$this, $matches]);
        }*/
    }
public function compileSpecialStatements()
    {
        /**
         * Statemet that sets the variable value.
         */
        preg_match_all('/@set\s?(.*)/', $this->prepared, $matches);

        foreach($matches[0] as $key => $val)
        {
            $exploded = explode(' ', $matches[1][$key]);
            $varName  = substr(trim(array_shift($exploded)), 1);
            $value    = trim(ltrim(trim(implode(' ', $exploded)), '='));

            $this->prepared = str_replace($matches[0][$key], "<?php $$varName = $value; \$this->appendData(['$varName' => $$varName]); ?>", $this->prepared);
        }
        
        /**
         * @todo Make possible to definie owv statements and parsing it.
         */
        /*foreach($this->specialStatements as $statement => $callback)
        {
            preg_match_all('/@'.$statement.'\s?(.*)/', $this->prepared, $matches);

            call_user_func_array($callback, [$this, $matches]);
        }*/
    }
public function compileSpecialStatements ( ) { /**
         * Statemet that sets the variable value.
         */ preg_match_all ( '/@set\s?(.*)/' , $ this -> prepared , $ matches ) ; foreach ( $ matches [ 0 ] as $ key => $ val ) { $ exploded = explode ( ' ' , $ matches [ 1 ] [ $ key ] ) ; $ varName = substr ( trim ( array_shift ( $ exploded ) ) , 1 ) ; $ value = trim ( ltrim ( trim ( implode ( ' ' , $ exploded ) ) , '=' ) ) ; $ this -> prepared = str_replace ( $ matches [ 0 ] [ $ key ] , "<?php $$varName = $value; \$this->appendData(['$varName' => $$varName]); ?>" , $ this -> prepared ) ; } /**
         * @todo Make possible to definie owv statements and parsing it.
         */ /*foreach($this->specialStatements as $statement => $callback)
        {
            preg_match_all('/@'.$statement.'\s?(.*)/', $this->prepared, $matches);

            call_user_func_array($callback, [$this, $matches]);
        }*/ }
Compile special statements.

Exaples:

- Sets variable with value
@set $variable 'value'

@return void
Compile special statements .