func (p *Parser) consume(typ token.Type, msg string, args ...interface{}) token.Token {
	tkn, ok := p.match(typ)
	if !ok {
		p.panic(msg, args...)
	}
	return tkn
}
// consume panics if the typ passed in does not match the current token type.
consume panics if the typ passed in does not match the current token type.
// consume panics if the typ passed in does not match the current token type .
func (p *Parser) consume(typ token.Type, msg string, args ...interface{}) token.Token {
	tkn, ok := p.match(typ)
	if !ok {
		p.panic(msg, args...)
	}
	return tkn
}
func ( p * Parser ) consume ( typ token . Type , msg string , args ... interface { } ) token . Token { tkn , ok := p . match ( typ ) if ! ok { p . panic ( msg , args ... ) } return tkn }
consume panics if the typ passed in does not match the current token type.
consume panics if the typ passed in does not match the current token type .