// ConsumeTokens parses the next tokens and compares to the expected ones
// ignoring SW, EOL and Comment
//todo naming convention for ignoring all these
ConsumeTokens parses the next tokens and compares to the expected ones
ignoring SW, EOL and Comment
todo naming convention for ignoring all these
// ConsumeTokens parses the next tokens and compares to the expected ones // ignoring SW EOL and Comment // todo naming convention for ignoring all these
func (p *Parser) ConsumeTokens(extoks ...Token) (err error) {
	for _, extok := range extoks {
		tok, lit, pos := p.ScanIgnoreWSAndComment()
		if tok != extok {
			return pos.Errorf("expected token \"%v\", found %v", Tokenname(extok), lit)
		}
	}
	return
}
func ( p * Parser ) ConsumeTokens ( extoks ... Token ) ( err error ) { for _ , extok := range extoks { tok , lit , pos := p . ScanIgnoreWSAndComment ( ) if tok != extok { return pos . Errorf ( " \" \" " , Tokenname ( extok ) , lit ) } } return }
ConsumeTokens parses the next tokens and compares to the expected ones
ignoring SW, EOL and Comment
todo naming convention for ignoring all these
ConsumeTokens parses the next tokens and compares to the expected ones ignoring SW EOL and Comment todo naming convention for ignoring all these