summaryrefslogtreecommitdiff
path: root/src/depend/mod.rs
blob: 9a7fb71b81ba519dd9682ffb9ca186b61576a9bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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),
    AllOf(Vec<Expr>),
    AnyOf(Vec<Expr>),
    OneOf(Vec<Expr>),
    ConditionalGroup(Conditional, Vec<Expr>),
}