/// Consume a token if it is present, do nothing otherwise.
Consume a token if it is present, do nothing otherwise.
Consume a token if it is present do nothing otherwise .
pub fn accept<P: Parser>(p: &mut P, expect: Token) -> bool {
    if p.peek(0).value == expect {
        p.bump();
        true
    } else {
        false
    }
}
pub fn accept < P : Parser > ( p : & mut P , expect : Token ) -> bool { if p . peek ( 0 ) . value == expect { p . bump ( ) ; true } else { false } }
Consume a token if it is present, do nothing otherwise.
Consume a token if it is present do nothing otherwise .
p
&mut P
expect
Token