fn literal(input: &str) -> ParseResult<Literal> {
    let (input, _) = space0(input)?;
    let (input, n) = alt((ch, num))(input)?;
    let (input, _) = space0(input)?;
    Ok((input, n))
}
/// This parses either a character or number literal
This parses either a character or number literal
This parses either a character or number literal
fn literal(input: &str) -> ParseResult<Literal> {
    let (input, _) = space0(input)?;
    let (input, n) = alt((ch, num))(input)?;
    let (input, _) = space0(input)?;
    Ok((input, n))
}
fn literal ( input : & str ) -> ParseResult < Literal > { let ( input , _ ) = space0 ( input ) ? ; let ( input , n ) = alt ( ( ch , num ) ) ( input ) ? ; let ( input , _ ) = space0 ( input ) ? ; Ok ( ( input , n ) ) }
This parses either a character or number literal
This parses either a character or number literal
input
&str
input
&str