pub fn expect(&mut self, t: &token::Token) {
        if self.token == *t {
            self.bump();
        } else {
            let token_str = Parser::token_to_str(t);
            let this_token_str = self.this_token_to_str();
            self.fatal(format!("expected `{}` but found `{}`",
                               token_str,
                               this_token_str))
        }
    }
// expect and consume the token t. Signal an error if
// the next token is not t.
expect and consume the token t. Signal an error if
the next token is not t.
expect and consume the token t . Signal an error if the next token is not t .
pub fn expect(&mut self, t: &token::Token) {
        if self.token == *t {
            self.bump();
        } else {
            let token_str = Parser::token_to_str(t);
            let this_token_str = self.this_token_to_str();
            self.fatal(format!("expected `{}` but found `{}`",
                               token_str,
                               this_token_str))
        }
    }
pub fn expect ( & mut self , t : & token :: Token ) { if self . token == * t { self . bump ( ) ; } else { let token_str = Parser :: token_to_str ( t ) ; let this_token_str = self . this_token_to_str ( ) ; self . fatal ( format ! ( " " token_str this_token_str ) ) } }
expect and consume the token t. Signal an error if
the next token is not t.
expect and consume the token t . Signal an error if the next token is not t .
&mut self
t
&token::Token
&mut self
t
&token::Token