question: protected boolean expect ( TokenKind kind , boolean alwaysConsume ) { return expect ( kind , String . format ( "'%s' expected" , kind ) , alwaysConsume ) ; }
target:  Consumes the current token if 'alwaysConsume' is true or if it's one of the expected types.<br> Otherwise, returns false and reports an error.