pub fn parse_range(input: KconfigInput<'_>) -> IResult<KconfigInput<'_>, Range>Expand description
Parses the 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 {
lower_bound: Symbol::Constant("1".to_string()),
upper_bound: Symbol::Constant("5".to_string()),
r#if: None
}
))
)