/// Try to parse an identifier.
Try to parse an identifier.
Try to parse an identifier .
pub fn try_ident<P: Parser>(p: &mut P) -> Option<Spanned<Name>> {
    let Spanned { value, span } = p.peek(0);
    match value {
        Ident(n) => {
            p.bump();
            Some(Spanned::new(n, span))
        }
        _ => None,
    }
}
pub fn try_ident < P : Parser > ( p : & mut P ) -> Option < Spanned < Name > > { let Spanned { value , span } = p . peek ( 0 ) ; match value { Ident ( n ) => { p . bump ( ) ; Some ( Spanned :: new ( n , span ) ) } _ => None , } }
Try to parse an identifier.
Try to parse an identifier .
p
&mut P