public function parse(string $input)
    {
        $ts = $this->lexer->tokenize($input);
        $parseResult = $this->parseImplementation($ts);

        if ($ts->hasPendingTokens()) {
            throw new SyntaxErrorException('There are tokens not processed.');
        }

        return $parseResult;
    }
public function parse(string $input)
    {
        $ts = $this->lexer->tokenize($input);
        $parseResult = $this->parseImplementation($ts);

        if ($ts->hasPendingTokens()) {
            throw new SyntaxErrorException('There are tokens not processed.');
        }

        return $parseResult;
    }
public function parse ( string $ input ) { $ ts = $ this -> lexer -> tokenize ( $ input ) ; $ parseResult = $ this -> parseImplementation ( $ ts ) ; if ( $ ts -> hasPendingTokens ( ) ) { throw new SyntaxErrorException ( 'There are tokens not processed.' ) ; } return $ parseResult ; }
Parse a given input

@param string $input

@return mixed
Parse a given input