impl profile evaluation

This commit is contained in:
John Turner
2025-11-29 20:43:28 +00:00
parent 94f3397d19
commit d1127df296
16 changed files with 1365 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
use mon::{Parser, tag};
use crate::{Parseable, atom::Atom, repo::profile::package::Package};
impl<'a> Parseable<'a, &'a str> for Package {
type Parser = impl Parser<&'a str, Output = Self>;
fn parser() -> Self::Parser {
Atom::parser()
.map(Package::Add)
.or(Atom::parser().preceded_by(tag("-")).map(Package::Remove))
}
}