Function awint_macro_internals::parse_range
source · pub fn parse_range(
ast: &mut Ast,
range_txt: PText,
allow_single_bit_range: bool
) -> Result<Usbr, Option<CCMacroError>>
Expand description
Tries to parse raw input
as a range. Looks for the existence of top
level “..” or “..=” punctuation. If allow_single_bit_range
is set, will
return a single bit range if “..” or “..=” does not exist.