public function compile($data)
    {
        $data = preg_split('/\n|\r\n/', $data);

        foreach ($data as $value) {
            if (strlen($value) > 0) {
                $value = $this->compileToken($value);

                $this->result .= strlen($value) == 0 || $value == ' ' ? trim($value) : $value."\n";
            }
        }

        return $this->resetCompilatorAccumulator();
    }
public function compile($data)
    {
        $data = preg_split('/\n|\r\n/', $data);

        foreach ($data as $value) {
            if (strlen($value) > 0) {
                $value = $this->compileToken($value);

                $this->result .= strlen($value) == 0 || $value == ' ' ? trim($value) : $value."\n";
            }
        }

        return $this->resetCompilatorAccumulator();
    }
public function compile ( $ data ) { $ data = preg_split ( '/\n|\r\n/' , $ data ) ; foreach ( $ data as $ value ) { if ( strlen ( $ value ) > 0 ) { $ value = $ this -> compileToken ( $ value ) ; $ this -> result .= strlen ( $ value ) == 0 || $ value == ' ' ? trim ( $ value ) : $ value . "\n" ; } } return $ this -> resetCompilatorAccumulator ( ) ; }
Launch the compilation

@param array|string $data

@return string
Launch the compilation