public function compile($input)
    {
        if (strlen($input) == 0) {
            return null;
        }
        try {
            $buffer = new Buffer();
            $this->parse($input)->compile($buffer);
            $code = $buffer->getResult();
            return $code;
        } catch (\UnexpectedValueException $e) {
            throw new \UnexpectedValueException('Error while compiling input: ' . Util::toPhp($input), 0, $e);
        }
    }
public function compile($input)
    {
        if (strlen($input) == 0) {
            return null;
        }
        try {
            $buffer = new Buffer();
            $this->parse($input)->compile($buffer);
            $code = $buffer->getResult();
            return $code;
        } catch (\UnexpectedValueException $e) {
            throw new \UnexpectedValueException('Error while compiling input: ' . Util::toPhp($input), 0, $e);
        }
    }
public function compile ( $ input ) { if ( strlen ( $ input ) == 0 ) { return null ; } try { $ buffer = new Buffer ( ) ; $ this -> parse ( $ input ) -> compile ( $ buffer ) ; $ code = $ buffer -> getResult ( ) ; return $ code ; } catch ( \ UnexpectedValueException $ e ) { throw new \ UnexpectedValueException ( 'Error while compiling input: ' . Util :: toPhp ( $ input ) , 0 , $ e ) ; } }
Compile an input string to PHP code

@param string $input
@return string
Compile an input string to PHP code