src/input/ParseException.php
public static function noTokenForTokenTypes($tokenTypes) : ParseException
    {
        $message = "No token could be found for any of types ";
        $message .= join(", ", $tokenTypes);

        return new ParseException($message, self::NO_TOKEN);
    }
public static function noTokenForTokenTypes($tokenTypes) : ParseException
    {
        $message = "No token could be found for any of types ";
        $message .= join(", ", $tokenTypes);

        return new ParseException($message, self::NO_TOKEN);
    }
Create parse exceptiion for missing token

@param $tokenTypes
@return ParseException