function checkPunctuator(token, value) {
    return token.type === "(punctuator)" && token.value === value;
  }
Test whether a given token is a punctuator whose `value` property matches
the specified value. This function explicitly verifies the token's `type`
property so that like-valued string literals (e.g. `";"`) do not produce
false positives.

@param {Token} token
@param {string} value

@returns {boolean}