forked from gentoo-utils/gentoo-utils
impl DEPEND parser
This commit is contained in:
18
src/depend/mod.rs
Normal file
18
src/depend/mod.rs
Normal 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>),
|
||||
}
|
||||
Reference in New Issue
Block a user