use super::PreemptionSpecifier;
use nom::{
branch::alt,
bytes::complete::tag, combinator::map,
error::VerboseError,
IResult,
};
pub fn parse(source: &str) -> IResult<&str, PreemptionSpecifier, VerboseError<&str>> {
alt((
map(tag("dso_local"), |_| PreemptionSpecifier::DsoLocal),
map(tag("dso_preemptable"), |_| {
PreemptionSpecifier::DsoPreemptable
}),
))(source)
}