pub fn expect_keyword(&mut self, s: &'static str) -> ParseResult<()> {
        if !self.is_keyword(s) {
            expected!(self, Keyword(s));
        }
        self.bump();
        Ok(())
    }
/// Consumes the current token if it matches the
/// given keyword, otherwise it returns an error.
Consumes the current token if it matches the
given keyword, otherwise it returns an error.
Consumes the current token if it matches the given keyword otherwise it returns an error .
pub fn expect_keyword(&mut self, s: &'static str) -> ParseResult<()> {
        if !self.is_keyword(s) {
            expected!(self, Keyword(s));
        }
        self.bump();
        Ok(())
    }
pub fn expect_keyword ( & mut self , s : & ' static str ) -> ParseResult < ( ) > { if ! self . is_keyword ( s ) { expected ! ( self Keyword ( s ) ) ; } self . bump ( ) ; Ok ( ( ) ) }
Consumes the current token if it matches the
given keyword, otherwise it returns an error.
Consumes the current token if it matches the given keyword otherwise it returns an error .
&mut self
s
&'static str
&mut self
s
&'static str