impl DEPEND parser

This commit is contained in:
John Turner
2025-10-25 02:02:07 -04:00
parent f854e97577
commit f05c1e92ad
5 changed files with 114 additions and 0 deletions

18
src/depend/mod.rs Normal file
View File

@@ -0,0 +1,18 @@
use crate::{atom::Atom, useflag::UseFlag};
pub mod parsers;
#[derive(Clone, Debug)]
pub enum Conditional {
Negative(UseFlag),
Positive(UseFlag),
}
#[derive(Clone, Debug)]
pub enum Expr {
Atom(Atom),
Conditional(Conditional),
AllOf(Vec<Expr>),
AnyOf(Vec<Expr>),
OneOf(Vec<Expr>),
}