func (p *Parser) consumeTypes(typs []token.Type, msg string, args ...interface{}) token.Token {
	tkn, ok := p.match(typs...)
	if ok {
		return tkn
	}
	p.panic(msg, args...)
	return token.Token{}
}
// consumeTypes panics if the one or more of the typs passed in does not match
// the current token type.
consumeTypes panics if the one or more of the typs passed in does not match
the current token type.
// consumeTypes panics if the one or more of the typs passed in does not match // the current token type .
func (p *Parser) consumeTypes(typs []token.Type, msg string, args ...interface{}) token.Token {
	tkn, ok := p.match(typs...)
	if ok {
		return tkn
	}
	p.panic(msg, args...)
	return token.Token{}
}
func ( p * Parser ) consumeTypes ( typs [ ] token . Type , msg string , args ... interface { } ) token . Token { tkn , ok := p . match ( typs ... ) if ok { return tkn } p . panic ( msg , args ... ) return token . Token { } }
consumeTypes panics if the one or more of the typs passed in does not match
the current token type.
consumeTypes panics if the one or more of the typs passed in does not match the current token type .