func (p *Parser) check(typs ...token.Type) (token.Token, bool) {
	curr := p.current()
	if curr.Type == token.EOF {
		return curr, false
	}
	var isTyp bool
	for _, typ := range typs {
		if curr.Type == typ {
			isTyp = true
			break
		}
	}
	return curr, isTyp
}
// check checks the current token type against the type passed in
// does not advance
// Returns the current token as well
check checks the current token type against the type passed in
does not advance
Returns the current token as well
// check checks the current token type against the type passed in // does not advance // Returns the current token as well
func (p *Parser) check(typs ...token.Type) (token.Token, bool) {
	curr := p.current()
	if curr.Type == token.EOF {
		return curr, false
	}
	var isTyp bool
	for _, typ := range typs {
		if curr.Type == typ {
			isTyp = true
			break
		}
	}
	return curr, isTyp
}
func ( p * Parser ) check ( typs ... token . Type ) ( token . Token , bool ) { curr := p . current ( ) if curr . Type == token . EOF { return curr , false } var isTyp bool for _ , typ := range typs { if curr . Type == typ { isTyp = true break } } return curr , isTyp }
check checks the current token type against the type passed in
does not advance
Returns the current token as well
check checks the current token type against the type passed in does not advance Returns the current token as well