pub fn parse_seq<T, F>(&mut self,
                           bra: &token::Token,
                           ket: &token::Token,
                           sep: SeqSep,
                           f: F)
                           -> PResult<'a, Spanned<Vec<T>>> where
        F: FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    {
        let lo = self.span.lo;
        try!(self.expect(bra));
        let result = self.parse_seq_to_before_end(ket, sep, f);
        let hi = self.span.hi;
        self.bump();
        Ok(spanned(lo, hi, result))
    }
// NB: Do not use this function unless you actually plan to place the
// spanned list in the AST.
Do not use this function unless you actually plan to place the
spanned list in the AST.
Do not use this function unless you actually plan to place the spanned list in the AST .
pub fn parse_seq<T, F>(&mut self,
                           bra: &token::Token,
                           ket: &token::Token,
                           sep: SeqSep,
                           f: F)
                           -> PResult<'a, Spanned<Vec<T>>> where
        F: FnMut(&mut Parser<'a>) -> PResult<'a,  T>,
    {
        let lo = self.span.lo;
        try!(self.expect(bra));
        let result = self.parse_seq_to_before_end(ket, sep, f);
        let hi = self.span.hi;
        self.bump();
        Ok(spanned(lo, hi, result))
    }
pub fn parse_seq < T , F > ( & mut self , bra : & token :: Token , ket : & token :: Token , sep : SeqSep , f : F ) -> PResult < ' a , Spanned < Vec < T > > > where F : FnMut ( & mut Parser < ' a > ) -> PResult < ' a , T > , { let lo = self . span . lo ; try ! ( self expect ( bra ) ) ; let result = self . parse_seq_to_before_end ( ket , sep , f ) ; let hi = self . span . hi ; self . bump ( ) ; Ok ( spanned ( lo , hi , result ) ) }
NB: Do not use this function unless you actually plan to place the
spanned list in the AST.
NB : Do not use this function unless you actually plan to place the spanned list in the AST .
&mut self
bra
&token::Token
ket
&token::Token
sep
SeqSep
f
F
&mut self
bra
&token::Token
ket
&token::Token
sep
SeqSep
f
F