/// Bail out if the current token is not one of the expected keywords, or consume it if it is
Bail out if the current token is not one of the expected keywords, or consume it if it is
Bail out if the current token is not one of the expected keywords or consume it if it is
fn expect_one_of_keywords(&mut self, keywords: &[Keyword]) -> Result<Keyword, ParserError> {
        if let Some(keyword) = self.parse_one_of_keywords(keywords) {
            Ok(keyword)
        } else {
            self.expected(
                self.peek_pos(),
                &format!("one of {}", keywords.iter().join(" or ")),
                self.peek_token(),
            )
        }
    }
fn expect_one_of_keywords ( & mut self , keywords : & [ Keyword ] ) -> Result < Keyword , ParserError > { if let Some ( keyword ) = self . parse_one_of_keywords ( keywords ) { Ok ( keyword ) } else { self . expected ( self . peek_pos ( ) , & format ! ( " " keywords iter ( ) join ( " " ) ) , self . peek_token ( ) , ) } }
Bail out if the current token is not one of the expected keywords, or consume it if it is
Bail out if the current token is not one of the expected keywords or consume it if it is
&mut self
keywords
&[Keyword]