fn parse_flag_bit_scope(input: &str) -> IResult<&str, SymbolScope> {
    let result = one_of("lg !")(input)?;
    match result.1 {
        'l' => Ok((result.0, SymbolScope::Local)),
        'g' => Ok((result.0, SymbolScope::Global)),
        ' ' => Ok((result.0, SymbolScope::Neither)),
        '!' => Ok((result.0, SymbolScope::Both)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
/// Parses the symbol table scope bit out of the bit flags sequence
Parses the symbol table scope bit out of the bit flags sequence
Parses the symbol table scope bit out of the bit flags sequence
fn parse_flag_bit_scope(input: &str) -> IResult<&str, SymbolScope> {
    let result = one_of("lg !")(input)?;
    match result.1 {
        'l' => Ok((result.0, SymbolScope::Local)),
        'g' => Ok((result.0, SymbolScope::Global)),
        ' ' => Ok((result.0, SymbolScope::Neither)),
        '!' => Ok((result.0, SymbolScope::Both)),
        _ => Err(nom::Err::Error(nom::error::Error {
            input,
            code: ErrorKind::Char,
        })),
    }
}
fn parse_flag_bit_scope ( input : & str ) -> IResult < & str , SymbolScope > { let result = one_of ( " " ) ( input ) ? ; match result . 1 { 'l' => Ok ( ( result . 0 , SymbolScope :: Local ) ) , 'g' => Ok ( ( result . 0 , SymbolScope :: Global ) ) , ' ' => Ok ( ( result . 0 , SymbolScope :: Neither ) ) , '!' => Ok ( ( result . 0 , SymbolScope :: Both ) ) , _ => Err ( nom :: Err :: Error ( nom :: error :: Error { input , code : ErrorKind :: Char , } ) ) , } }
Parses the symbol table scope bit out of the bit flags sequence
Parses the symbol table scope bit out of the bit flags sequence
input
&str