pub fn parse_range(input: KconfigInput<'_>) -> IResult<KconfigInput<'_>, Range>
Expand description

Parses a range attribute.

Example

use nom_kconfig::{
    assert_parsing_eq,
    attribute::{parse_range, Range},
    symbol::Symbol,
};

assert_parsing_eq!(
    parse_range,
    "range 1 5",
    Ok((
        "",
        Range {
            lhs: Symbol::Constant("1".to_string()),
            rhs: Symbol::Constant("5".to_string()),
            r#if: None
        }
    ))
)