public function expectNext(int $type, $value = null) : bool
    {
        if (!$this->acceptNext($type, $value)) {
	        $this->syntaxError('Expected '.Token::getStringRepresentation($type, $value).' got '.$this->getNextToken());
        }

        return true;
    }